-
Notifications
You must be signed in to change notification settings - Fork 29
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
chore(starknet_gateway): create bench file for benchmark test #2404
Conversation
The insparation is |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2404 +/- ##
===========================================
+ Coverage 40.10% 77.49% +37.38%
===========================================
Files 26 387 +361
Lines 1895 40863 +38968
Branches 1895 40863 +38968
===========================================
+ Hits 760 31667 +30907
- Misses 1100 6941 +5841
- Partials 35 2255 +2220 ☔ View full report in Codecov by Sentry. |
ae752f9
to
456c83f
Compare
456c83f
to
b6d6af6
Compare
Benchmark movements: |
b6d6af6
to
cdc7718
Compare
98bed5b
to
63a13ec
Compare
17f602a
to
165237b
Compare
2a139c3
to
7cdfc96
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 3 files reviewed, 1 unresolved discussion (waiting on @ArniStarkware)
crates/starknet_gateway/bench/gateway_bench.rs
line 14 at r4 (raw file):
use criterion::{criterion_group, criterion_main, Criterion}; pub fn declare_benchmark(c: &mut Criterion) {
Can you explain these? What are they running?
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 3 files at r2, 1 of 1 files at r4, all commit messages.
Reviewable status: 2 of 3 files reviewed, 2 unresolved discussions (waiting on @ArniStarkware)
crates/starknet_gateway/Cargo.toml
line 42 at r4 (raw file):
assert_matches.workspace = true cairo-lang-sierra-to-casm.workspace = true criterion = { workspace = true, features = ["html_reports"] }
What is this feature for?
Code quote:
"html_reports"
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 3 files at r2.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ArniStarkware)
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: all files reviewed, 2 unresolved discussions (waiting on @alonh5)
crates/starknet_gateway/bench/gateway_bench.rs
line 14 at r4 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
Can you explain these? What are they running?
These = declare_benchmark
etc?
These are the tests that are going to be run.
Should I have just one function for now? (just invoke_benchmark
- which is being filled in the next PR: #2911)?
I wrote a comment on this PR demonstrating how the printed report of the test looks like.
416c277
to
f191cec
Compare
7cdfc96
to
0d28f81
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: 2 of 3 files reviewed, 2 unresolved discussions (waiting on @alonh5)
crates/starknet_gateway/Cargo.toml
line 42 at r4 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
What is this feature for?
Removed. Done.
f191cec
to
2a1b6aa
Compare
0d28f81
to
d46eac5
Compare
2a1b6aa
to
9f138f5
Compare
952b87c
to
12457a7
Compare
9f138f5
to
4dc42d6
Compare
12457a7
to
351dacc
Compare
4dc42d6
to
a3070b8
Compare
351dacc
to
6686f4c
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 r5, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArniStarkware)
crates/starknet_gateway/bench/gateway_bench.rs
line 14 at r4 (raw file):
Previously, ArniStarkware (Arnon Hod) wrote…
These =
declare_benchmark
etc?
These are the tests that are going to be run.Should I have just one function for now? (just
invoke_benchmark
- which is being filled in the next PR: #2911)?I wrote a comment on this PR demonstrating how the printed report of the test looks like.
Yes, let's just have one. We can add more later easily.
a3070b8
to
e87e6f4
Compare
6686f4c
to
08feed4
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 3 files reviewed, 1 unresolved discussion (waiting on @alonh5)
crates/starknet_gateway/bench/gateway_bench.rs
line 14 at r4 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
Yes, let's just have one. We can add more later easily.
Done.
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 r6, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware)
We can later discuss the details of the test cases we want to benchmark exactly.
Running the benchmarking action:
cargo bench --bench gateway_bench
Prints: