-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into type2_merge_linda
- Loading branch information
Showing
54 changed files
with
94,933 additions
and
356 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- # Proof generation benchmarking workflow | ||
|
||
name: Benchmark proving | ||
|
||
on: | ||
schedule: | ||
- cron: "0 4 * * *" | ||
workflow_dispatch: | ||
branches: | ||
- "**" | ||
|
||
env: | ||
BENCHMARK_WITNESS: artifacts/witness_b1000_b1019.json | ||
|
||
jobs: | ||
benchmark_proving: | ||
name: Benchmark proving for representative blocks | ||
runs-on: zero-reg | ||
timeout-minutes: 300 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
- name: Build the project | ||
run: | | ||
RUSTFLAGS='-C target-cpu=native -Zlinker-features=-lld' cargo build --release | ||
sudo sysctl kernel.perf_event_paranoid=0 | ||
- name: Download previous results | ||
uses: dawidd6/action-download-artifact@v6 | ||
with: | ||
workflow: benchmark.yml | ||
workflow_conclusion: success | ||
name: proving_benchmark | ||
path: ./ | ||
if_no_artifact_found: ignore | ||
|
||
- name: Run the script | ||
run: | | ||
echo "Benchmarking proving with $BENCHMARK_WITNESS" | ||
./scripts/benchmark_input.sh $BENCHMARK_WITNESS | tee benchmark_output.log | ||
MEASURED_PROVING_TIME_SEC=`cat benchmark_output.log | grep 'Proving duration:' | tail -1 | awk '{ print $3}'` | ||
PERF_TIME=`cat output.log | grep "seconds time elapsed" | tail -1 | awk '{ print ($1)}'` | ||
PERF_USER_TIME=`cat output.log | grep "seconds user" | tail -1 | awk '{ print ($1)}'` | ||
PERF_SYS_TIME=`cat output.log | grep "seconds sys" | tail -1 | awk '{ print ($1)}'` | ||
echo "RUN_ID=${{ github.run_id }} MEASURED_PROVING_TIME_SEC=$MEASURED_PROVING_TIME_SEC \ | ||
PERF_TIME=$PERF_TIME PERF_USER_TIME=$PERF_USER_TIME \ | ||
PERF_SYS_TIME=$PERF_SYS_TIME FILE=$BENCHMARK_WITNESS" | ||
printf '%12s %-12s %-24s %-20s %-20s %-20s %-s\n' \ | ||
`date --utc +%y-%m-%d-%H:%M:%S` ${{ github.run_id }} \ | ||
$MEASURED_PROVING_TIME_SEC $PERF_TIME $PERF_USER_TIME \ | ||
$PERF_SYS_TIME $BENCHMARK_WITNESS >> proving_benchmark_results.txt | ||
- name: Upload new results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: proving_benchmark | ||
path: | | ||
./proving_benchmark_results.txt | ||
./output.log | ||
retention-days: 90 | ||
overwrite: true |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.