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

Add Sierra test generator. #1050

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

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.

@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 87.13137% with 48 lines in your changes missing coverage. Please review.

Project coverage is 81.03%. Comparing base (3f74466) to head (029e67e).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/utils/sierra_gen.rs 87.13% 48 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1050      +/-   ##
==========================================
+ Coverage   80.95%   81.03%   +0.07%     
==========================================
  Files         108      109       +1     
  Lines       29938    30311     +373     
==========================================
+ Hits        24237    24562     +325     
- Misses       5701     5749      +48     

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

Copy link

github-actions bot commented Jan 14, 2025

Benchmark results Main vs HEAD.

Command Mean [s] Min [s] Max [s] Relative
base dict_insert.cairo (JIT) 3.933 ± 0.068 3.867 4.068 1.00
base dict_insert.cairo (AOT) 4.176 ± 0.071 4.090 4.306 1.06 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head dict_insert.cairo (JIT) 3.777 ± 0.019 3.750 3.815 1.00
head dict_insert.cairo (AOT) 3.939 ± 0.015 3.922 3.960 1.04 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base dict_snapshot.cairo (JIT) 3.893 ± 0.070 3.791 3.977 1.00
base dict_snapshot.cairo (AOT) 4.071 ± 0.069 3.953 4.141 1.05 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head dict_snapshot.cairo (JIT) 3.668 ± 0.017 3.641 3.687 1.00
head dict_snapshot.cairo (AOT) 3.808 ± 0.013 3.793 3.829 1.04 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base factorial_2M.cairo (JIT) 4.194 ± 0.091 4.044 4.334 1.00
base factorial_2M.cairo (AOT) 4.453 ± 0.084 4.363 4.618 1.06 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head factorial_2M.cairo (JIT) 4.014 ± 0.015 3.999 4.045 1.00
head factorial_2M.cairo (AOT) 4.220 ± 0.019 4.176 4.239 1.05 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base fib_2M.cairo (JIT) 3.755 ± 0.079 3.653 3.919 1.00
base fib_2M.cairo (AOT) 3.993 ± 0.085 3.885 4.114 1.06 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head fib_2M.cairo (JIT) 3.545 ± 0.016 3.523 3.572 1.00
head fib_2M.cairo (AOT) 3.769 ± 0.019 3.749 3.795 1.06 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base linear_search.cairo (JIT) 3.939 ± 0.071 3.803 4.044 1.00
base linear_search.cairo (AOT) 4.071 ± 0.066 3.970 4.151 1.03 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head linear_search.cairo (JIT) 3.738 ± 0.014 3.716 3.758 1.00
head linear_search.cairo (AOT) 3.871 ± 0.033 3.836 3.952 1.04 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base logistic_map.cairo (JIT) 4.113 ± 0.100 3.957 4.216 1.00
base logistic_map.cairo (AOT) 4.176 ± 0.061 4.075 4.250 1.02 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head logistic_map.cairo (JIT) 3.844 ± 0.019 3.809 3.872 1.00
head logistic_map.cairo (AOT) 3.925 ± 0.025 3.884 3.960 1.02 ± 0.01

Copy link

github-actions bot commented Jan 14, 2025

Benchmarking results

Benchmark for program dict_insert

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 21.046 ± 0.177 20.800 21.329 97.63 ± 2.10
cairo-native (embedded AOT) 4.079 ± 0.032 4.033 4.123 18.92 ± 0.40
cairo-native (embedded JIT using LLVM's ORC Engine) 3.981 ± 0.054 3.908 4.058 18.47 ± 0.44
cairo-native (standalone AOT with -march=native) 0.216 ± 0.004 0.209 0.226 1.00

Benchmark for program dict_snapshot

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 5.762 ± 0.028 5.722 5.828 2954.55 ± 64.90
cairo-native (embedded AOT) 3.846 ± 0.027 3.792 3.889 1971.89 ± 44.45
cairo-native (embedded JIT using LLVM's ORC Engine) 3.677 ± 0.021 3.645 3.712 1885.53 ± 41.77
cairo-native (standalone AOT with -march=native) 0.002 ± 0.000 0.002 0.002 1.00

Benchmark for program factorial_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 14.926 ± 0.067 14.793 15.011 11.01 ± 0.05
cairo-native (embedded AOT) 4.264 ± 0.027 4.230 4.311 3.15 ± 0.02
cairo-native (embedded JIT using LLVM's ORC Engine) 4.035 ± 0.027 3.992 4.093 2.98 ± 0.02
cairo-native (standalone AOT with -march=native) 1.356 ± 0.001 1.354 1.358 1.00

Benchmark for program fib_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 14.848 ± 0.080 14.697 14.944 184.98 ± 2.55
cairo-native (embedded AOT) 3.790 ± 0.023 3.751 3.824 47.22 ± 0.67
cairo-native (embedded JIT using LLVM's ORC Engine) 3.594 ± 0.030 3.561 3.639 44.78 ± 0.68
cairo-native (standalone AOT with -march=native) 0.080 ± 0.001 0.080 0.086 1.00

Benchmark for program linear_search

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 5.766 ± 0.030 5.718 5.824 2834.20 ± 64.46
cairo-native (embedded AOT) 3.878 ± 0.027 3.849 3.942 1906.28 ± 44.19
cairo-native (embedded JIT using LLVM's ORC Engine) 3.782 ± 0.073 3.713 3.971 1859.14 ± 54.72
cairo-native (standalone AOT with -march=native) 0.002 ± 0.000 0.002 0.002 1.00

Benchmark for program logistic_map

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 5.755 ± 0.068 5.643 5.848 23.74 ± 0.28
cairo-native (embedded AOT) 3.994 ± 0.022 3.966 4.038 16.48 ± 0.09
cairo-native (embedded JIT using LLVM's ORC Engine) 3.907 ± 0.059 3.858 4.023 16.12 ± 0.25
cairo-native (standalone AOT with -march=native) 0.242 ± 0.000 0.242 0.243 1.00

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