-
Notifications
You must be signed in to change notification settings - Fork 49
Fix sierra emu eval_trim and add int range to trace dump #1459
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1459 +/- ##
=======================================
Coverage 81.69% 81.69%
=======================================
Files 105 105
Lines 26047 26047
=======================================
Hits 21279 21279
Misses 4768 4768 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.035 ± 0.065 | 10.958 | 11.154 | 4.20 ± 0.08 |
cairo-native (embedded AOT) |
2.629 ± 0.046 | 2.566 | 2.712 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2.684 ± 0.034 | 2.634 | 2.753 | 1.02 ± 0.02 |
Benchmark for program dict_snapshot
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
532.5 ± 7.6 | 519.2 | 542.2 | 1.00 |
cairo-native (embedded AOT) |
2177.4 ± 28.1 | 2148.1 | 2245.7 | 4.09 ± 0.08 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2298.1 ± 43.4 | 2249.3 | 2401.0 | 4.32 ± 0.10 |
Benchmark for program factorial_2M
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
4.752 ± 0.033 | 4.712 | 4.827 | 1.84 ± 0.02 |
cairo-native (embedded AOT) |
2.587 ± 0.025 | 2.545 | 2.634 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2.652 ± 0.051 | 2.575 | 2.739 | 1.03 ± 0.02 |
Benchmark for program fib_2M
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
4.705 ± 0.033 | 4.672 | 4.792 | 2.19 ± 0.05 |
cairo-native (embedded AOT) |
2.148 ± 0.048 | 2.101 | 2.233 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2.234 ± 0.048 | 2.170 | 2.325 | 1.04 ± 0.03 |
Benchmark for program heavy_circuit
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
9.728 ± 0.130 | 9.541 | 9.957 | 1.00 |
cairo-native (embedded AOT) |
13.700 ± 0.085 | 13.613 | 13.842 | 1.41 ± 0.02 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
14.119 ± 0.137 | 13.940 | 14.350 | 1.45 ± 0.02 |
Benchmark for program linear_search
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
576.9 ± 15.7 | 559.3 | 602.3 | 1.00 |
cairo-native (embedded AOT) |
2223.4 ± 42.2 | 2162.3 | 2315.0 | 3.85 ± 0.13 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2341.4 ± 18.8 | 2304.0 | 2365.2 | 4.06 ± 0.12 |
Benchmark for program logistic_map
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
380.4 ± 6.1 | 371.1 | 389.9 | 1.00 |
cairo-native (embedded AOT) |
2333.4 ± 29.7 | 2290.3 | 2385.7 | 6.13 ± 0.13 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2504.3 ± 31.0 | 2467.2 | 2560.3 | 6.58 ± 0.13 |
| CoreTypeConcrete::IntRange(info) => { | ||
| let type_info = registry.get_type(&info.ty).unwrap(); | ||
|
|
||
| match type_info { |
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.
Don´t we need in this match to handle the case of a BoundedInt?
Fix sierra emu eval_trim and add int range to trace dump
Closes #NA
This PR fixes
bounded_int_trimlibfuncs in sierra-emu. The issue was that the implementation was not taking into account that it could receiveBoundedInts as inputs.This PR also implements dumping
IntRanges with the trace dump.Introduces Breaking Changes?
No.
starknet-blocks.ymlworkflow to use these PRs.These PRs should be merged after this one right away, in that order.
Checklist