-
Notifications
You must be signed in to change notification settings - Fork 48
Implement Squashed Felt252 Dict Entries libfunc #1446
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
Draft
DiegoCivi
wants to merge
31
commits into
main
Choose a base branch
from
squashed_dict_entry-libfunc
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or 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
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1446 +/- ##
==========================================
+ Coverage 81.47% 81.64% +0.17%
==========================================
Files 105 106 +1
Lines 25759 26053 +294
==========================================
+ Hits 20987 21272 +285
- Misses 4772 4781 +9 ☔ 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.517 ± 0.094 | 11.400 | 11.682 | 6.13 ± 0.09 |
cairo-native (embedded AOT) |
1.878 ± 0.024 | 1.854 | 1.920 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1.979 ± 0.009 | 1.969 | 1.994 | 1.05 ± 0.01 |
Benchmark for program dict_snapshot
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
548.3 ± 4.1 | 542.3 | 553.6 | 1.00 |
cairo-native (embedded AOT) |
1549.3 ± 16.7 | 1519.4 | 1567.2 | 2.83 ± 0.04 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1655.2 ± 17.0 | 1633.1 | 1674.6 | 3.02 ± 0.04 |
Benchmark for program factorial_2M
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
5.272 ± 0.022 | 5.249 | 5.326 | 2.65 ± 0.02 |
cairo-native (embedded AOT) |
1.993 ± 0.009 | 1.981 | 2.008 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
2.029 ± 0.011 | 2.013 | 2.045 | 1.02 ± 0.01 |
Benchmark for program fib_2M
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
5.118 ± 0.015 | 5.101 | 5.150 | 3.37 ± 0.03 |
cairo-native (embedded AOT) |
1.518 ± 0.015 | 1.501 | 1.543 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1.575 ± 0.017 | 1.554 | 1.604 | 1.04 ± 0.01 |
Benchmark for program heavy_circuit
Open benchmarks
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
9.728 ± 0.083 | 9.609 | 9.883 | 1.00 |
cairo-native (embedded AOT) |
12.526 ± 0.055 | 12.432 | 12.599 | 1.29 ± 0.01 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
12.995 ± 0.077 | 12.858 | 13.140 | 1.34 ± 0.01 |
Benchmark for program linear_search
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
586.4 ± 2.4 | 583.3 | 589.6 | 1.00 |
cairo-native (embedded AOT) |
1589.8 ± 15.9 | 1562.0 | 1608.2 | 2.71 ± 0.03 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1728.5 ± 12.2 | 1703.5 | 1746.3 | 2.95 ± 0.02 |
Benchmark for program logistic_map
Open benchmarks
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
498.6 ± 4.8 | 491.9 | 510.3 | 1.00 |
cairo-native (embedded AOT) |
1683.6 ± 14.8 | 1663.5 | 1702.2 | 3.38 ± 0.04 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
1850.5 ± 15.0 | 1821.2 | 1871.1 | 3.71 ± 0.05 |
We were creating the array in mlir and the passing it to runtime so it could be modified. This commit deletes the mlir creation of the array and creates in runtime. This reduces a lot of code and complexity of the libfunc.
|
✅ Code is now correctly formatted. |
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.
Implement Squashed Felt252 Dict Entries libfunc
Implements the SquashedFelt252Dict libfunc:
Closes #1151
Introduces Breaking Changes?
No.
Checklist