forked from starkware-libs/blockifier
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from reilabs/bench_script
chore: added benchmark comparison script
- Loading branch information
Showing
2 changed files
with
18 additions
and
46 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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# This script analyses the peformance changes of commit $2 with respect to $1. | ||
|
||
cd "$(dirname "$0")" | ||
|
||
BEFORE_CHANGES_COMMIT=$1 | ||
AFTER_CHANGES_COMMIT=$2 | ||
|
||
git checkout -q $BEFORE_CHANGES_COMMIT | ||
echo "Running bechmark on commit $BEFORE_CHANGES_COMMIT" | ||
cargo bench --quiet --locked --bench blockifier_bench -- --save-baseline before_changes --noplot > /dev/null 2>&1 | ||
|
||
git checkout -q $AFTER_CHANGES_COMMIT | ||
echo "Running bechmark on commit $AFTER_CHANGES_COMMIT" | ||
cargo bench --quiet --locked --bench blockifier_bench -- --save-baseline after_changes --noplot > /dev/null 2>&1 | ||
|
||
cargo bench --quiet --bench blockifier_bench -- --load-baseline after_changes --baseline before_changes --noplot --verbose |