-
Notifications
You must be signed in to change notification settings - Fork 48
Implement libfunc profiling #1253
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
Merged
Merged
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
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) |
11.428 ± 0.089 | 11.360 | 11.640 | 2.27 ± 0.02 |
cairo-native (embedded AOT) |
5.046 ± 0.040 | 4.979 | 5.088 | 1.00 ± 0.01 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
5.038 ± 0.032 | 4.997 | 5.088 | 1.00 |
Benchmark for program dict_snapshot
Open benchmarks
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
791.9 ± 5.7 | 783.3 | 802.9 | 1.00 |
cairo-native (embedded AOT) |
4823.0 ± 26.7 | 4781.9 | 4864.6 | 6.09 ± 0.06 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
4989.4 ± 25.0 | 4956.4 | 5032.3 | 6.30 ± 0.06 |
Benchmark for program factorial_2M
Open benchmarks
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
5.248 ± 0.032 | 5.208 | 5.302 | 1.00 ± 0.01 |
cairo-native (embedded AOT) |
5.235 ± 0.035 | 5.187 | 5.289 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
5.311 ± 0.039 | 5.231 | 5.364 | 1.01 ± 0.01 |
Benchmark for program fib_2M
Open benchmarks
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
5.052 ± 0.041 | 5.004 | 5.132 | 1.06 ± 0.01 |
cairo-native (embedded AOT) |
4.783 ± 0.029 | 4.734 | 4.823 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
4.816 ± 0.036 | 4.753 | 4.856 | 1.01 ± 0.01 |
Benchmark for program linear_search
Open benchmarks
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
820.3 ± 8.6 | 809.9 | 835.0 | 1.00 |
cairo-native (embedded AOT) |
4883.2 ± 20.2 | 4856.6 | 4919.4 | 5.95 ± 0.07 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
5034.6 ± 58.3 | 4966.4 | 5131.6 | 6.14 ± 0.10 |
Benchmark for program logistic_map
Open benchmarks
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
537.9 ± 8.1 | 530.6 | 558.1 | 1.00 |
cairo-native (embedded AOT) |
4973.0 ± 64.6 | 4889.7 | 5083.4 | 9.25 ± 0.18 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
5142.0 ± 38.3 | 5100.6 | 5204.8 | 9.56 ± 0.16 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1253 +/- ##
=======================================
Coverage ? 80.21%
=======================================
Files ? 112
Lines ? 29880
Branches ? 0
=======================================
Hits ? 23967
Misses ? 5913
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
gabrielbosio
approved these changes
Jun 17, 2025
FrancoGiachetta
approved these changes
Jun 17, 2025
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.
Implementation of a libfunc profiler.
This PR is a squash of the whole #946 PR. We cannot merge the original PR directly as it has unsigned commits.
There should be no difference between this PR and the original one. You can compare both branches here.
Description
For each executed libfunc, generates:
Note: The x86_64 architecture handles context switches between cores correctly, but in aarch64 this is impossible. Results may not be reliable in aarch64.
Output Example:
Where [2] refers to the libfunc id.