diff --git a/bench.sh b/bench.sh index 3fb19e6a0b..1575aca4b2 100755 --- a/bench.sh +++ b/bench.sh @@ -1,7 +1,9 @@ branch="alex/benching" -echo $(git rev-list --since="1 week ago" $branch) -for commit in $(git rev-list --since="1 week ago" $branch) -do - echo "benching commit" . $commit - cargo criterion --history-id $commit -done +commit_one_week_ago=$(git rev-list -n 1 --before="1 week ago" $branch) +latest_commit=$(git rev-list -n 1 HEAD) + +echo "benching commit $commit_one_week_ago" +cargo criterion --history-id $commit_one_week_ago + +echo "benching commit $latest_commit" +cargo criterion --history-id $latest_commit