Skip to content

Conversation

DiegoCivi
Copy link
Contributor

@DiegoCivi DiegoCivi commented Jul 31, 2025

Adds a way to count the times each declared type is built and then add it to the stats

Checklist

  • Linked to Github Issue
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
    • Documentation has been added/updated.

Copy link

github-actions bot commented Jul 31, 2025

Benchmark results Main vs HEAD.

Base

Command Mean [s] Min [s] Max [s] Relative
base dict_insert.cairo (JIT) 2.530 ± 0.014 2.502 2.547 1.04 ± 0.01
base dict_insert.cairo (AOT) 2.436 ± 0.017 2.399 2.459 1.00

Head

Command Mean [s] Min [s] Max [s] Relative
head dict_insert.cairo (JIT) 2.636 ± 0.022 2.598 2.671 1.07 ± 0.01
head dict_insert.cairo (AOT) 2.462 ± 0.017 2.438 2.496 1.00

Base

Command Mean [s] Min [s] Max [s] Relative
base dict_snapshot.cairo (JIT) 2.227 ± 0.034 2.185 2.293 1.05 ± 0.02
base dict_snapshot.cairo (AOT) 2.123 ± 0.010 2.110 2.142 1.00

Head

Command Mean [s] Min [s] Max [s] Relative
head dict_snapshot.cairo (JIT) 2.284 ± 0.040 2.240 2.357 1.05 ± 0.03
head dict_snapshot.cairo (AOT) 2.186 ± 0.042 2.136 2.250 1.00

Base

Command Mean [s] Min [s] Max [s] Relative
base factorial_2M.cairo (JIT) 2.594 ± 0.018 2.568 2.627 1.02 ± 0.01
base factorial_2M.cairo (AOT) 2.550 ± 0.018 2.529 2.581 1.00

Head

Command Mean [s] Min [s] Max [s] Relative
head factorial_2M.cairo (JIT) 2.686 ± 0.032 2.653 2.768 1.01 ± 0.02
head factorial_2M.cairo (AOT) 2.651 ± 0.024 2.606 2.687 1.00

Base

Command Mean [s] Min [s] Max [s] Relative
base fib_2M.cairo (JIT) 2.141 ± 0.030 2.102 2.198 1.01 ± 0.02
base fib_2M.cairo (AOT) 2.129 ± 0.031 2.071 2.170 1.00

Head

Command Mean [s] Min [s] Max [s] Relative
head fib_2M.cairo (JIT) 2.237 ± 0.025 2.207 2.281 1.03 ± 0.02
head fib_2M.cairo (AOT) 2.170 ± 0.023 2.129 2.203 1.00

Base

Command Mean [s] Min [s] Max [s] Relative
base linear_search.cairo (JIT) 2.331 ± 0.024 2.282 2.366 1.07 ± 0.01
base linear_search.cairo (AOT) 2.183 ± 0.018 2.161 2.219 1.00

Head

Command Mean [s] Min [s] Max [s] Relative
head linear_search.cairo (JIT) 2.408 ± 0.021 2.372 2.455 1.05 ± 0.02
head linear_search.cairo (AOT) 2.304 ± 0.031 2.263 2.350 1.00

Base

Command Mean [s] Min [s] Max [s] Relative
base logistic_map.cairo (JIT) 2.441 ± 0.017 2.410 2.471 1.08 ± 0.02
base logistic_map.cairo (AOT) 2.269 ± 0.030 2.233 2.329 1.00

Head

Command Mean [s] Min [s] Max [s] Relative
head logistic_map.cairo (JIT) 2.560 ± 0.044 2.498 2.624 1.06 ± 0.02
head logistic_map.cairo (AOT) 2.414 ± 0.026 2.378 2.471 1.00

Copy link

github-actions bot commented Jul 31, 2025

Benchmarking results

Benchmark for program dict_insert

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 10.971 ± 0.087 10.896 11.197 4.35 ± 0.04
cairo-native (embedded AOT) 2.522 ± 0.016 2.493 2.541 1.00
cairo-native (embedded JIT using LLVM's ORC Engine) 2.599 ± 0.021 2.574 2.643 1.03 ± 0.01

Benchmark for program dict_snapshot

Open benchmarks
Command Mean [ms] Min [ms] Max [ms] Relative
Cairo-vm (Rust, Cairo 1) 523.3 ± 11.3 508.4 538.0 1.00
cairo-native (embedded AOT) 2157.9 ± 26.3 2125.8 2192.0 4.12 ± 0.10
cairo-native (embedded JIT using LLVM's ORC Engine) 2326.7 ± 13.8 2298.3 2343.3 4.45 ± 0.10

Benchmark for program factorial_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 4.749 ± 0.024 4.725 4.798 1.86 ± 0.02
cairo-native (embedded AOT) 2.547 ± 0.017 2.528 2.571 1.00
cairo-native (embedded JIT using LLVM's ORC Engine) 2.611 ± 0.022 2.580 2.639 1.03 ± 0.01

Benchmark for program fib_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 4.698 ± 0.026 4.676 4.762 2.27 ± 0.01
cairo-native (embedded AOT) 2.067 ± 0.006 2.060 2.075 1.00
cairo-native (embedded JIT using LLVM's ORC Engine) 2.129 ± 0.021 2.095 2.163 1.03 ± 0.01

Benchmark for program linear_search

Open benchmarks
Command Mean [ms] Min [ms] Max [ms] Relative
Cairo-vm (Rust, Cairo 1) 586.0 ± 6.2 580.4 598.8 1.00
cairo-native (embedded AOT) 2232.4 ± 27.1 2197.1 2289.0 3.81 ± 0.06
cairo-native (embedded JIT using LLVM's ORC Engine) 2375.2 ± 36.2 2289.9 2407.9 4.05 ± 0.08

Benchmark for program logistic_map

Open benchmarks
Command Mean [ms] Min [ms] Max [ms] Relative
Cairo-vm (Rust, Cairo 1) 388.3 ± 3.2 383.6 395.2 1.00
cairo-native (embedded AOT) 2327.0 ± 11.7 2310.4 2351.2 5.99 ± 0.06
cairo-native (embedded JIT using LLVM's ORC Engine) 2515.0 ± 31.5 2477.5 2578.4 6.48 ± 0.10

@codecov-commenter
Copy link

codecov-commenter commented Aug 1, 2025

Codecov Report

❌ Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.21%. Comparing base (38106a1) to head (a81179b).

Files with missing lines Patch % Lines
src/metadata.rs 50.00% 3 Missing ⚠️
src/executor/contract.rs 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1343      +/-   ##
==========================================
- Coverage   76.22%   76.21%   -0.01%     
==========================================
  Files         111      111              
  Lines       26520    26530      +10     
==========================================
+ Hits        20214    20220       +6     
- Misses       6306     6310       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants