Skip to content

Commit

Permalink
scripts: update benchmarking script to use dev
Browse files Browse the repository at this point in the history
Fixes #80407. Usage:

    BENCHES=BenchmarkTracing/1node/scan/trace=off \
      PKG=./pkg/bench \
      scripts/bench HEAD HEAD~1

Invokes the following underneath the hood:

    dev bench ./pkg/bench --timeout=5m \
      --filter=BenchmarkTracing/1node/scan/trace=off --count=10 \
      --bench-mem -v --ignore-cache

Release note: None
  • Loading branch information
irfansharif committed Aug 7, 2022
1 parent a7c91f0 commit 973c5a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/bench
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ for (( i=0; i<${#shas[@]}; i+=1 )); do
sha=${shas[i]}
echo "Switching to $name"
git checkout -q "$sha"
(set -x; make bench PKG="${PKG}" BENCHTIMEOUT="${BENCHTIMEOUT:-5m}" BENCHES="${BENCHES}" TESTFLAGS="-count 10 -benchmem" > "${dest}/bench.${name}" 2> "${dest}/log.txt")
(set -x; ./dev bench ${PKG} --timeout=${BENCHTIMEOUT:-5m} --filter=${BENCHES} --count=10 --bench-mem -v --ignore-cache > "${dest}/bench.${name}" 2> "${dest}/log.txt")
done

benchstat "${dest}/bench.$OLDNAME" "${dest}/bench.$NEWNAME"

git checkout "$ORIG"

0 comments on commit 973c5a8

Please sign in to comment.