-
Notifications
You must be signed in to change notification settings - Fork 48
Implement StructBoxedDeconstruct libfunc #1491
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1491 +/- ##
==========================================
+ Coverage 79.52% 79.58% +0.05%
==========================================
Files 108 108
Lines 26667 26739 +72
==========================================
+ Hits 21208 21280 +72
Misses 5459 5459 ☔ 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
|
Benchmarking resultsBenchmark for program
|
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
10.746 ± 0.110 | 10.615 | 10.917 | 5.53 ± 0.13 |
cairo-native (embedded AOT) |
1.942 ± 0.041 | 1.874 | 1.982 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2.058 ± 0.045 | 2.002 | 2.137 | 1.06 ± 0.03 |
Benchmark for program dict_snapshot
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
556.4 ± 6.4 | 547.9 | 565.2 | 1.00 |
cairo-native (embedded AOT) |
1649.6 ± 32.1 | 1604.2 | 1712.9 | 2.97 ± 0.07 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1792.5 ± 25.7 | 1755.8 | 1834.6 | 3.22 ± 0.06 |
Benchmark for program factorial_2M
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
4.852 ± 0.034 | 4.817 | 4.940 | 2.31 ± 0.03 |
cairo-native (embedded AOT) |
2.103 ± 0.021 | 2.073 | 2.134 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2.149 ± 0.029 | 2.114 | 2.215 | 1.02 ± 0.02 |
Benchmark for program fib_2M
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
4.738 ± 0.016 | 4.711 | 4.759 | 2.87 ± 0.04 |
cairo-native (embedded AOT) |
1.650 ± 0.021 | 1.624 | 1.676 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1.714 ± 0.036 | 1.680 | 1.792 | 1.04 ± 0.03 |
Benchmark for program linear_search
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
606.4 ± 7.1 | 597.3 | 616.9 | 1.00 |
cairo-native (embedded AOT) |
1681.2 ± 13.0 | 1661.3 | 1698.3 | 2.77 ± 0.04 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1816.1 ± 21.5 | 1790.1 | 1863.3 | 2.99 ± 0.05 |
Benchmark for program logistic_map
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
503.8 ± 13.3 | 494.8 | 538.8 | 1.00 |
cairo-native (embedded AOT) |
1803.4 ± 17.1 | 1774.4 | 1834.2 | 3.58 ± 0.10 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1980.6 ± 19.5 | 1943.4 | 2003.5 | 3.93 ± 0.11 |
…cairo_native into struct_boxed_decons-libfunc
FrancoGiachetta
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.
We should check if the patch affects corelib's tests related to this libfunc. If so, we should change the patch.
This reverts commit 1544ac0.
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.
This libfunc unboxes the input, and the deconstructs it. Is it possible to reuse the logic from build_deconstruct?
Now that I think of it, |
@DiegoCivi does this change affect corelib tests? |
|
There are no mentions of this libfunc on our patch. The corelib does not mention the libfunc since its 'extern'. |
This reverts commit 62cd108.
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.
Looks good!
Implement StructBoxedDeconstruct libfunc
Implements the new Struct libfunc:
Closes #1475
Introduces Breaking Changes?
No.
Checklist