Skip to content

Conversation

@DiegoCivi
Copy link
Contributor

@DiegoCivi DiegoCivi commented Jun 19, 2025

Removes ignore tags from Rust code examples in the documentation, making them compilable and verifiable. It also fixes mislabeled Cairo code blocks that were incorrectly marked as Rust.

@github-actions
Copy link

github-actions bot commented Jun 19, 2025

Benchmark results Main vs HEAD.

Base

Command Mean [s] Min [s] Max [s] Relative
base dict_insert.cairo (JIT) 2.021 ± 0.017 1.997 2.056 1.05 ± 0.01
base dict_insert.cairo (AOT) 1.933 ± 0.017 1.905 1.953 1.00

Head

Command Mean [s] Min [s] Max [s] Relative
head dict_insert.cairo (JIT) 2.067 ± 0.021 2.029 2.102 1.03 ± 0.02
head dict_insert.cairo (AOT) 2.012 ± 0.027 1.961 2.044 1.00

Base

Command Mean [s] Min [s] Max [s] Relative
base dict_snapshot.cairo (JIT) 1.743 ± 0.017 1.722 1.771 1.07 ± 0.02
base dict_snapshot.cairo (AOT) 1.630 ± 0.018 1.609 1.658 1.00

Head

Command Mean [s] Min [s] Max [s] Relative
head dict_snapshot.cairo (JIT) 1.788 ± 0.019 1.766 1.825 1.06 ± 0.01
head dict_snapshot.cairo (AOT) 1.680 ± 0.014 1.656 1.704 1.00

Base

Command Mean [s] Min [s] Max [s] Relative
base factorial_2M.cairo (JIT) 2.135 ± 0.019 2.113 2.178 1.02 ± 0.01
base factorial_2M.cairo (AOT) 2.093 ± 0.020 2.049 2.122 1.00

Head

Command Mean [s] Min [s] Max [s] Relative
head factorial_2M.cairo (JIT) 2.168 ± 0.016 2.148 2.199 1.02 ± 0.01
head factorial_2M.cairo (AOT) 2.129 ± 0.014 2.102 2.147 1.00

Base

Command Mean [s] Min [s] Max [s] Relative
base fib_2M.cairo (JIT) 1.688 ± 0.015 1.663 1.708 1.03 ± 0.01
base fib_2M.cairo (AOT) 1.633 ± 0.009 1.619 1.645 1.00

Head

Command Mean [s] Min [s] Max [s] Relative
head fib_2M.cairo (JIT) 1.740 ± 0.021 1.699 1.769 1.04 ± 0.01
head fib_2M.cairo (AOT) 1.679 ± 0.010 1.666 1.694 1.00

Base

Command Mean [s] Min [s] Max [s] Relative
base linear_search.cairo (JIT) 1.815 ± 0.011 1.795 1.832 1.09 ± 0.01
base linear_search.cairo (AOT) 1.672 ± 0.020 1.645 1.699 1.00

Head

Command Mean [s] Min [s] Max [s] Relative
head linear_search.cairo (JIT) 1.847 ± 0.019 1.811 1.885 1.09 ± 0.01
head linear_search.cairo (AOT) 1.699 ± 0.015 1.680 1.718 1.00

Base

Command Mean [s] Min [s] Max [s] Relative
base logistic_map.cairo (JIT) 1.963 ± 0.019 1.925 1.985 1.09 ± 0.01
base logistic_map.cairo (AOT) 1.796 ± 0.014 1.774 1.820 1.00

Head

Command Mean [s] Min [s] Max [s] Relative
head logistic_map.cairo (JIT) 2.012 ± 0.019 1.981 2.046 1.10 ± 0.02
head logistic_map.cairo (AOT) 1.831 ± 0.021 1.803 1.876 1.00

@github-actions
Copy link

github-actions bot commented Jun 19, 2025

Benchmarking results

Benchmark for program dict_insert

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 11.187 ± 0.107 11.035 11.347 5.56 ± 0.08
cairo-native (embedded AOT) 2.011 ± 0.020 1.969 2.034 1.00
cairo-native (embedded JIT using LLVM's ORC Engine) 2.073 ± 0.024 2.042 2.113 1.03 ± 0.02

Benchmark for program dict_snapshot

Open benchmarks
Command Mean [ms] Min [ms] Max [ms] Relative
Cairo-vm (Rust, Cairo 1) 584.3 ± 4.0 579.3 593.1 1.00
cairo-native (embedded AOT) 1716.9 ± 27.8 1681.8 1752.3 2.94 ± 0.05
cairo-native (embedded JIT using LLVM's ORC Engine) 1843.9 ± 25.4 1811.0 1881.5 3.16 ± 0.05

Benchmark for program factorial_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 4.980 ± 0.015 4.953 5.009 2.27 ± 0.03
cairo-native (embedded AOT) 2.203 ± 0.032 2.156 2.252 1.00 ± 0.02
cairo-native (embedded JIT using LLVM's ORC Engine) 2.196 ± 0.026 2.173 2.261 1.00

Benchmark for program fib_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 4.912 ± 0.027 4.883 4.977 2.86 ± 0.06
cairo-native (embedded AOT) 1.717 ± 0.036 1.668 1.787 1.00
cairo-native (embedded JIT using LLVM's ORC Engine) 1.772 ± 0.033 1.737 1.834 1.03 ± 0.03

Benchmark for program linear_search

Open benchmarks
Command Mean [ms] Min [ms] Max [ms] Relative
Cairo-vm (Rust, Cairo 1) 649.8 ± 14.8 628.2 670.6 1.00
cairo-native (embedded AOT) 1712.7 ± 25.2 1680.2 1754.8 2.64 ± 0.07
cairo-native (embedded JIT using LLVM's ORC Engine) 1890.4 ± 24.4 1865.1 1934.6 2.91 ± 0.08

Benchmark for program logistic_map

Open benchmarks
Command Mean [ms] Min [ms] Max [ms] Relative
Cairo-vm (Rust, Cairo 1) 527.4 ± 7.2 517.1 537.4 1.00
cairo-native (embedded AOT) 1873.6 ± 41.9 1802.0 1935.0 3.55 ± 0.09
cairo-native (embedded JIT using LLVM's ORC Engine) 2085.9 ± 39.5 2038.2 2159.7 3.96 ± 0.09

@codecov-commenter
Copy link

codecov-commenter commented Jun 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.88%. Comparing base (26d2cab) to head (392528a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1258      +/-   ##
==========================================
- Coverage   72.88%   72.88%   -0.01%     
==========================================
  Files         110      110              
  Lines       27137    27137              
==========================================
- Hits        19780    19779       -1     
- Misses       7357     7358       +1     

☔ 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.

4 participants