-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add benchmarks for SIMD merkle #610
Conversation
7bfe80c
to
a29f2e4
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #610 +/- ##
=======================================
Coverage 93.41% 93.41%
=======================================
Files 84 84
Lines 11909 11909
Branches 11909 11909
=======================================
Hits 11125 11125
Misses 702 702
Partials 82 82 ☔ View full report in Codecov by Sentry. |
0eca8d2
to
2f5f389
Compare
23f39d6
to
f92868b
Compare
7e001e1
to
8d0653c
Compare
f92868b
to
8028b66
Compare
8d0653c
to
27851cb
Compare
8028b66
to
99d646a
Compare
27851cb
to
df625de
Compare
99d646a
to
9f9d708
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simd merkle benchmarks seems slower than avx.
Reviewable status: 0 of 1 files reviewed, all discussions resolved
9f9d708
to
f4e45d8
Compare
a3208d3
to
aaa48c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, all discussions resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
Reviewed 1 of 1 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @andrewmilson)
crates/prover/benches/merkle.rs
line 22 at r2 (raw file):
let mut group = c.benchmark_group("merkle throughput"); group.throughput(Throughput::Elements(1 << (LOG_N_COLS + LOG_N_ROWS))); group.throughput(Throughput::Bytes(4 << (LOG_N_COLS + LOG_N_ROWS)));
I think that we have n_bytes_per_felt const.
Code quote:
4
crates/prover/src/core/backend/simd/blake2s.rs
line 114 at r2 (raw file):
// `inline(always)` can cause code parsing errors for wasm: "locals exceed maximum". #[cfg_attr(not(target_arch = "wasm32"), inline(always))]
Can you separate this change from the benchmark pr?
Code quote:
// `inline(always)` can cause code parsing errors for wasm: "locals exceed maximum".
#[cfg_attr(not(target_arch = "wasm32"), inline(always))]
aaa48c8
to
8da054d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @shaharsamocha7)
crates/prover/src/core/backend/simd/blake2s.rs
line 114 at r2 (raw file):
Previously, shaharsamocha7 wrote…
Can you separate this change from the benchmark pr?
8da054d
to
87eafcb
Compare
This change is