Skip to content
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

Make arrays shared cow v2 #897

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open

Make arrays shared cow v2 #897

wants to merge 32 commits into from

Conversation

azteca1998
Copy link
Collaborator

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 Nov 4, 2024

Benchmarking results

Benchmark for program factorial_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 11.595 ± 0.215 10.998 11.710 8.60 ± 0.16
cairo-native (embedded AOT) 3.600 ± 0.023 3.568 3.634 2.67 ± 0.02
cairo-native (embedded JIT using LLVM's ORC Engine) 3.338 ± 0.019 3.308 3.360 2.47 ± 0.02
cairo-native (standalone AOT with -march=native) 1.349 ± 0.005 1.345 1.361 1.00

Benchmark for program fib_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 11.073 ± 0.323 10.739 11.610 141.63 ± 4.14
cairo-native (embedded AOT) 3.076 ± 0.037 3.040 3.146 39.34 ± 0.48
cairo-native (embedded JIT using LLVM's ORC Engine) 2.852 ± 0.020 2.823 2.882 36.48 ± 0.28
cairo-native (standalone AOT with -march=native) 0.078 ± 0.000 0.078 0.079 1.00

Benchmark for program logistic_map

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 4.283 ± 0.022 4.249 4.318 17.61 ± 0.09
cairo-native (embedded AOT) 3.186 ± 0.025 3.136 3.216 13.10 ± 0.10
cairo-native (embedded JIT using LLVM's ORC Engine) 3.135 ± 0.034 3.072 3.181 12.89 ± 0.14
cairo-native (standalone AOT with -march=native) 0.243 ± 0.000 0.243 0.244 1.00

Copy link

github-actions bot commented Nov 4, 2024

Benchmark results Main vs HEAD.

Command Mean [s] Min [s] Max [s] Relative
base factorial_2M.cairo (JIT) 3.272 ± 0.053 3.221 3.350 1.00
base factorial_2M.cairo (AOT) 3.462 ± 0.040 3.380 3.526 1.06 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head factorial_2M.cairo (JIT) 3.205 ± 0.033 3.165 3.262 1.00
head factorial_2M.cairo (AOT) 3.397 ± 0.026 3.342 3.428 1.06 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base fib_2M.cairo (JIT) 2.906 ± 0.069 2.810 3.010 1.00
base fib_2M.cairo (AOT) 2.991 ± 0.050 2.927 3.075 1.03 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head fib_2M.cairo (JIT) 2.747 ± 0.020 2.725 2.797 1.00
head fib_2M.cairo (AOT) 2.938 ± 0.021 2.909 2.975 1.07 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base logistic_map.cairo (JIT) 3.086 ± 0.075 3.018 3.210 1.00
base logistic_map.cairo (AOT) 3.126 ± 0.054 3.069 3.231 1.01 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head logistic_map.cairo (JIT) 3.029 ± 0.017 3.002 3.054 1.00
head logistic_map.cairo (AOT) 3.094 ± 0.011 3.080 3.117 1.02 ± 0.01

@codecov-commenter
Copy link

codecov-commenter commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 88.85794% with 40 lines in your changes missing coverage. Please review.

Project coverage is 82.54%. Comparing base (2b945fc) to head (1ae56d6).

Files with missing lines Patch % Lines
src/starknet.rs 44.11% 19 Missing ⚠️
src/executor/contract.rs 80.00% 7 Missing ⚠️
src/values.rs 94.04% 5 Missing ⚠️
src/types/array.rs 97.84% 4 Missing ⚠️
src/libfuncs.rs 0.00% 3 Missing ⚠️
src/executor.rs 77.77% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #897      +/-   ##
==========================================
- Coverage   82.63%   82.54%   -0.10%     
==========================================
  Files         117      117              
  Lines       33505    34061     +556     
==========================================
+ Hits        27687    28114     +427     
- Misses       5818     5947     +129     

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

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