Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add wasm memory benchmark to bench.json #11551

Merged
merged 13 commits into from
Feb 21, 2025
Merged

Conversation

lucasxia01
Copy link
Contributor

@lucasxia01 lucasxia01 commented Jan 28, 2025

Modify our benchmarking flow in CI for our bench json so that we include wasm benchmark on an acir test.

"iterations": 1,
"real_time": last_memory,
"cpu_time": last_memory,
"time_unit": "ns"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea how this info is converted to the value in the data.js in the gh-pages branch. I tried looking for it in the github-action-benchmark repo but couldn't

@lucasxia01 lucasxia01 self-assigned this Feb 10, 2025
@lucasxia01 lucasxia01 requested a review from ludamad February 21, 2025 14:23
export -f ultra_honk_wasm_memory run_benchmark
local num_cpus=$(get_num_cpus)
local jobs=$((num_cpus / HARDWARE_CONCURRENCY))
parallel -v --line-buffer --tag --jobs "$jobs" run_benchmark {#} {} ::: \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why parallel with one job

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I anticipate adding more

@@ -64,6 +64,9 @@ case "$cmd" in
"hash")
echo "$hash"
;;
"bench")
echo "ts/bootstrap.sh bench is empty"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have just printed nothing, the user will try and act on this maybe

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair

@lucasxia01 lucasxia01 merged commit 79eb709 into master Feb 21, 2025
9 checks passed
@lucasxia01 lucasxia01 deleted the lx/wasm-memory-bench branch February 21, 2025 22:24
ludamad added a commit that referenced this pull request Feb 21, 2025
@lucasxia01 lucasxia01 restored the lx/wasm-memory-bench branch February 21, 2025 23:27
@lucasxia01 lucasxia01 deleted the lx/wasm-memory-bench branch February 21, 2025 23:58
ludamad added a commit that referenced this pull request Feb 22, 2025
Reinstates #11551 with e2e-all flag to test bench running.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants