-
Notifications
You must be signed in to change notification settings - Fork 44
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
Basic Stress Test #683
Merged
Merged
Basic Stress Test #683
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JulianGCalderon
changed the title
Cairo Native Stress Test Binary
Cairo Native Stress Binary
Jun 10, 2024
Benchmarking resultsBenchmark for program
|
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
11.371 ± 0.075 | 11.290 | 11.514 | 23.68 ± 0.16 |
cairo-native (embedded AOT) |
1.525 ± 0.011 | 1.512 | 1.542 | 3.18 ± 0.02 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1.613 ± 0.013 | 1.596 | 1.634 | 3.36 ± 0.03 |
cairo-native (standalone AOT) |
0.653 ± 0.001 | 0.652 | 0.655 | 1.36 ± 0.00 |
cairo-native (standalone AOT with -march=native) |
0.480 ± 0.001 | 0.479 | 0.482 | 1.00 |
Benchmark for program fib_2M
Open benchmarks
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
10.893 ± 0.064 | 10.782 | 10.997 | 1340.35 ± 16.81 |
cairo-native (embedded AOT) |
1.151 ± 0.017 | 1.121 | 1.173 | 141.69 ± 2.60 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1.133 ± 0.013 | 1.116 | 1.151 | 139.44 ± 2.19 |
cairo-native (standalone AOT) |
0.008 ± 0.000 | 0.008 | 0.009 | 1.04 ± 0.02 |
cairo-native (standalone AOT with -march=native) |
0.008 ± 0.000 | 0.008 | 0.009 | 1.00 |
Benchmark for program logistic_map
Open benchmarks
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
1.916 ± 0.022 | 1.880 | 1.938 | 28.94 ± 0.36 |
cairo-native (embedded AOT) |
1.258 ± 0.014 | 1.237 | 1.278 | 19.00 ± 0.23 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1.442 ± 0.020 | 1.419 | 1.490 | 21.78 ± 0.32 |
cairo-native (standalone AOT) |
0.107 ± 0.000 | 0.107 | 0.107 | 1.62 ± 0.01 |
cairo-native (standalone AOT with -march=native) |
0.066 ± 0.000 | 0.066 | 0.068 | 1.00 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #683 +/- ##
==========================================
- Coverage 91.53% 90.97% -0.56%
==========================================
Files 116 117 +1
Lines 33202 33406 +204
==========================================
Hits 30391 30391
- Misses 2811 3015 +204 ☔ View full report in Codecov by Sentry. |
JulianGCalderon
force-pushed
the
stress-binary
branch
from
June 11, 2024 17:39
636b938
to
29da5bd
Compare
JulianGCalderon
requested review from
edg-l,
igaray,
azteca1998 and
jrchatruc
as code owners
June 11, 2024 20:38
JulianGCalderon
requested review from
fmoletta,
Oppen and
pefontana
as code owners
June 11, 2024 20:38
JulianGCalderon
force-pushed
the
stress-binary
branch
from
June 12, 2024 16:18
833fd08
to
f3fe41d
Compare
JulianGCalderon
force-pushed
the
stress-binary
branch
from
June 12, 2024 16:40
eac3f56
to
ce650ed
Compare
JulianGCalderon
force-pushed
the
stress-binary
branch
from
June 12, 2024 18:05
7a18e90
to
034805e
Compare
fmoletta
reviewed
Jun 14, 2024
Co-authored-by: fmoletta <[email protected]>
Oppen
approved these changes
Jun 15, 2024
edg-l
approved these changes
Jun 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
related to #682
Adds
cairo-native-stress
that generates, compiles, caches, and runs contracts in order to stress test cairo native.Program Generation
At the start of the program, a dummy program is generated with a hardcoded value (835 in this case) in the return value:
At the start of each round, the program is traversed to find the hardcoded value and is replaced with a new one. This allows to generate a new valid program with a different return value each round
Examples
With info logging (20 rounds):
With debug logging (5 rounds):
Next Steps
Checklist