Skip to content

Commit

Permalink
debug: test
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Nov 5, 2024
1 parent d37123f commit f20fdf0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ on:
- "**"

env:
BENCHMARK_WITNESS: artifacts/witness_b1000_b1019.json
#BENCHMARK_WITNESS: artifacts/witness_b1000_b1019.json

Check warning on line 16 in .github/workflows/benchmark.yml

View workflow job for this annotation

GitHub Actions / yamllint-check

16:4 [comments] missing starting space in comment
BENCHMARK_WITNESS: artifacts/witness_b19807080.json

jobs:
benchmark_proving:
Expand Down Expand Up @@ -41,14 +42,15 @@ jobs:
if_no_artifact_found: ignore

- name: Run the script
# TODO - run the benchmark with 20 blocks file
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)}'`
cat output.log
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"

Check failure on line 53 in .github/workflows/benchmark.yml

View workflow job for this annotation

GitHub Actions / yamllint-check

53:121 [line-length] line too long (202 > 120 characters)
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 \
Expand Down

0 comments on commit f20fdf0

Please sign in to comment.