-
Notifications
You must be signed in to change notification settings - Fork 93
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
simple merkle benchmark #527
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @spapinistarkware and the rest of your teammates on Graphite |
3119d84
to
6120a30
Compare
c12eaf0
to
8224e9a
Compare
6120a30
to
36068f0
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## spapini/03-22-use_simple_merkle_tree #527 +/- ##
======================================================================
Coverage 95.19% 95.19%
======================================================================
Files 66 66
Lines 10327 10062 -265
Branches 10327 10062 -265
======================================================================
- Hits 9831 9579 -252
+ Misses 427 416 -11
+ Partials 69 67 -2 ☔ View full report in Codecov by Sentry. |
8224e9a
to
b0c69c9
Compare
36068f0
to
f596373
Compare
b0c69c9
to
8cc9919
Compare
f596373
to
12ea9d7
Compare
8cc9919
to
98e4d7a
Compare
12ea9d7
to
a551a09
Compare
98e4d7a
to
05397c7
Compare
a551a09
to
86f7c62
Compare
b8935cc
to
16ee392
Compare
86f7c62
to
1a950fc
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.
Reviewed 1 of 4 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: 3 of 4 files reviewed, 3 unresolved discussions (waiting on @spapinistarkware)
Cargo.toml
line 16 at r2 (raw file):
merging-iterator = "1.3.0" bytemuck = { version = "1.14.3", features = ["derive"] } blake2 = "0.10.6"
Suggestion:
[dependencies]
blake2 = "0.10.6"
blake3 = "1.5.0"
hex = "0.4.3"
itertools = "0.12.0"
num-traits = "0.2.17"
thiserror = "1.0.56"
merging-iterator = "1.3.0"
bytemuck = { version = "1.14.3", features = ["derive"] }
Cargo.toml
line 60 at r2 (raw file):
[[bench]] name = "merkle"
What is the difference?
Rename or put them together
Code quote:
[[bench]]
name = "merkle_bench"
harness = false
[[bench]]
name = "merkle"
benches/merkle_bench.rs
line 97 at r2 (raw file):
) }); }
Why did you remove this?
Do we need any benches from this file?
Code quote:
fn single_blake2s_hash_benchmark(c: &mut Criterion) {
let input = [0u8; 1];
c.bench_function("Single blake2s hash", |b| {
b.iter_batched(
|| -> Blake2s256 { Blake2s256::new() },
|mut h| {
h.update(&input[..]);
h.finalize()
},
BatchSize::SmallInput,
)
});
}
16ee392
to
67cf290
Compare
01bea4e
to
e5f2229
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: 3 of 4 files reviewed, 3 unresolved discussions (waiting on @shaharsamocha7)
Cargo.toml
line 16 at r2 (raw file):
merging-iterator = "1.3.0" bytemuck = { version = "1.14.3", features = ["derive"] } blake2 = "0.10.6"
Done.
Cargo.toml
line 60 at r2 (raw file):
Previously, shaharsamocha7 wrote…
What is the difference?
Rename or put them together
merkle_bench will be removed soon
benches/merkle_bench.rs
line 97 at r2 (raw file):
Previously, shaharsamocha7 wrote…
Why did you remove this?
Do we need any benches from this file?
Done.
67cf290
to
1e5694b
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.
Reviewed 2 of 2 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @spapinistarkware)
benches/merkle_bench.rs
line 2 at r3 (raw file):
use blake2::{Blake2s256, Digest}; // TODO(Ohad): write better benchmarks. Reduce the variance in sample size.
Revert change
Suggestion:
// TODO(Ohad): write better benchmarks. Reduce the variance in sample size.
use blake2::{Blake2s256, Digest};
1e5694b
to
a0261dc
Compare
e5f2229
to
ce2ef61
Compare
a0261dc
to
58af368
Compare
ce2ef61
to
1e46394
Compare
58af368
to
1f258dc
Compare
1e46394
to
80898a7
Compare
1f258dc
to
80d5e43
Compare
80898a7
to
5f2a9e6
Compare
80d5e43
to
41a66ec
Compare
5f2a9e6
to
f76f6e5
Compare
f76f6e5
to
1c7e4a0
Compare
Merge activity
|
This change is