-
Notifications
You must be signed in to change notification settings - Fork 49
[2.11.1] Implement blake libfunc #1160
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
base: main
Are you sure you want to change the base?
Conversation
Benchmark results Main vs HEAD.Base
Head
Base
Head
Base
Head
Base
Head
Base
Head
Base
Head
Base
Head
|
Benchmarking resultsBenchmark for program
|
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
11.005 ± 0.073 | 10.888 | 11.101 | 4.34 ± 0.08 |
cairo-native (embedded AOT) |
2.535 ± 0.040 | 2.480 | 2.620 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2.613 ± 0.024 | 2.576 | 2.657 | 1.03 ± 0.02 |
Benchmark for program dict_snapshot
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
525.5 ± 4.2 | 519.4 | 531.1 | 1.00 |
cairo-native (embedded AOT) |
2180.3 ± 21.8 | 2139.6 | 2200.8 | 4.15 ± 0.05 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2271.6 ± 15.5 | 2242.4 | 2300.8 | 4.32 ± 0.05 |
Benchmark for program factorial_2M
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
4.816 ± 0.041 | 4.770 | 4.891 | 1.85 ± 0.03 |
cairo-native (embedded AOT) |
2.609 ± 0.032 | 2.572 | 2.657 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2.625 ± 0.015 | 2.604 | 2.656 | 1.01 ± 0.01 |
Benchmark for program fib_2M
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
4.765 ± 0.038 | 4.731 | 4.843 | 2.29 ± 0.05 |
cairo-native (embedded AOT) |
2.085 ± 0.039 | 2.047 | 2.163 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2.141 ± 0.013 | 2.128 | 2.169 | 1.03 ± 0.02 |
Benchmark for program heavy_circuit
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
9.743 ± 0.169 | 9.529 | 9.988 | 1.00 |
cairo-native (embedded AOT) |
15.014 ± 0.098 | 14.903 | 15.246 | 1.54 ± 0.03 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
15.226 ± 0.093 | 15.123 | 15.431 | 1.56 ± 0.03 |
Benchmark for program linear_search
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
578.8 ± 8.0 | 567.1 | 595.0 | 1.00 |
cairo-native (embedded AOT) |
2292.7 ± 39.6 | 2229.9 | 2370.2 | 3.96 ± 0.09 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2383.9 ± 30.8 | 2331.2 | 2432.2 | 4.12 ± 0.08 |
Benchmark for program logistic_map
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
378.0 ± 3.9 | 374.5 | 387.9 | 1.00 |
cairo-native (embedded AOT) |
2331.5 ± 44.8 | 2269.2 | 2400.1 | 6.17 ± 0.13 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2492.2 ± 21.4 | 2461.5 | 2522.4 | 6.59 ± 0.09 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1160 +/- ##
==========================================
+ Coverage 81.46% 81.60% +0.13%
==========================================
Files 105 107 +2
Lines 25875 26082 +207
==========================================
+ Hits 21079 21284 +205
- Misses 4796 4798 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
JulianGCalderon
left a comment
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.
Hi @FrancoGiachetta! Left you some comments.
…ive into impl-blake-libfunc
|
✅ Code is now correctly formatted. |
JulianGCalderon
left a comment
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.
I think this PR is OK, but I'm not sure adding the blake utils to Native is the right choice:
- Can we import them from the Cairo VM
- Can we move them to a math-specific crate?
This PR implements both blake related libfuncs
Closes #1148, #1149
Checklist