-
Notifications
You must be signed in to change notification settings - Fork 46
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
Fix circuit implementation #1079
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1079 +/- ##
==========================================
+ Coverage 80.81% 80.85% +0.04%
==========================================
Files 108 108
Lines 29558 29558
==========================================
+ Hits 23886 23899 +13
+ Misses 5672 5659 -13 ☔ View full report in Codecov by Sentry. |
Benchmark results Main vs 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) |
20.777 ± 0.086 | 20.654 | 20.903 | 5.40 ± 0.10 |
cairo-native (embedded AOT) |
3.848 ± 0.071 | 3.756 | 3.983 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
3.998 ± 0.055 | 3.923 | 4.078 | 1.04 ± 0.02 |
Benchmark for program dict_snapshot
Open benchmarks
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
5.978 ± 0.049 | 5.910 | 6.068 | 1.57 ± 0.02 |
cairo-native (embedded AOT) |
3.803 ± 0.039 | 3.759 | 3.875 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
3.828 ± 0.029 | 3.786 | 3.865 | 1.01 ± 0.01 |
Benchmark for program factorial_2M
Open benchmarks
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
14.409 ± 0.109 | 14.143 | 14.538 | 3.53 ± 0.04 |
cairo-native (embedded AOT) |
4.087 ± 0.030 | 4.039 | 4.131 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
4.091 ± 0.015 | 4.069 | 4.111 | 1.00 ± 0.01 |
Benchmark for program fib_2M
Open benchmarks
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
14.408 ± 0.080 | 14.296 | 14.558 | 3.99 ± 0.04 |
cairo-native (embedded AOT) |
3.610 ± 0.025 | 3.572 | 3.646 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
3.689 ± 0.048 | 3.632 | 3.764 | 1.02 ± 0.02 |
Benchmark for program linear_search
Open benchmarks
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
5.866 ± 0.039 | 5.818 | 5.939 | 1.57 ± 0.02 |
cairo-native (embedded AOT) |
3.735 ± 0.049 | 3.668 | 3.824 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
3.818 ± 0.022 | 3.776 | 3.843 | 1.02 ± 0.01 |
Benchmark for program logistic_map
Open benchmarks
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
5.992 ± 0.048 | 5.934 | 6.079 | 1.48 ± 0.03 |
cairo-native (embedded AOT) |
4.043 ± 0.077 | 3.873 | 4.130 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
4.173 ± 0.015 | 4.150 | 4.195 | 1.03 ± 0.02 |
Have you checked if the bug was really in native instead of the Sierra emu? |
nvm i did it |
The gas issue has been fixed with this, so I assumed that this is the correct implementation. |
Superseded by #1084 |
We were returning the failing case of a noop libfunc (
build_u96_limbs_less_than_guarantee_verify
). We were returning branch 1, instead of branch 0.This PR should fix the gas issue in #1076.
Checklist