-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
script/benchstat: introduce interleave mode when running benchmark (#583
) Currently, all iterations of the benchmark for old commit run before the one for new commit. This can make the noise not evenly distributed across 2 benchmark runs (e.g. the machine heats up too much after running all iterations the old benchmark). This commit introduces interleave mode when running benchmark where each iteration of benchmark for old commit is followed by an iteration of benchmark for new one then back to an iteration of benchmark for old one.
- Loading branch information
Showing
2 changed files
with
44 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,9 +44,9 @@ jobs: | |
go install golang.org/x/perf/cmd/[email protected] | ||
cd core/vm | ||
if [[ ${{ github.event_name }} = "pull_request" ]]; then | ||
../../script/benchstat.sh -c "go test -test.v -run=^$ -bench=BenchmarkEvm -count=10" \ | ||
-o $(git rev-parse --short origin/master) -n ${{ github.sha }} | ||
../../script/benchstat.sh -c "-test.v -test.run=^$ -test.bench=BenchmarkEvm" \ | ||
-o $(git rev-parse --short origin/master) -n ${{ github.sha }} -c 10 -i | ||
else | ||
../../script/benchstat.sh -c "go test -test.v -run=^$ -bench=BenchmarkEvm -count=10" \ | ||
-o "$OLD_COMMIT" -n "$NEW_COMMIT" | ||
../../script/benchstat.sh -c "-test.v -test.run=^$ -test.bench=BenchmarkEvm" \ | ||
-o "$OLD_COMMIT" -n "$NEW_COMMIT" -c 10 -i | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters