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 runtime tests #857

Merged
merged 10 commits into from
Oct 18, 2024
Merged

Add runtime tests #857

merged 10 commits into from
Oct 18, 2024

Conversation

edg-l
Copy link
Member

@edg-l edg-l commented Oct 17, 2024

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 Oct 17, 2024

Benchmarking results

Benchmark for program factorial_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 10.488 ± 0.049 10.429 10.601 22.31 ± 0.11
cairo-native (embedded AOT) 3.162 ± 0.020 3.122 3.196 6.73 ± 0.04
cairo-native (embedded JIT using LLVM's ORC Engine) 3.200 ± 0.019 3.173 3.244 6.81 ± 0.04
cairo-native (standalone AOT) 0.680 ± 0.001 0.678 0.682 1.45 ± 0.00
cairo-native (standalone AOT with -march=native) 0.470 ± 0.001 0.469 0.472 1.00

Benchmark for program fib_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 10.863 ± 0.291 10.476 11.177 1348.65 ± 40.59
cairo-native (embedded AOT) 2.692 ± 0.013 2.671 2.716 334.25 ± 4.88
cairo-native (embedded JIT using LLVM's ORC Engine) 2.743 ± 0.018 2.720 2.770 340.55 ± 5.17
cairo-native (standalone AOT) 0.009 ± 0.000 0.009 0.009 1.08 ± 0.02
cairo-native (standalone AOT with -march=native) 0.008 ± 0.000 0.008 0.010 1.00

Benchmark for program logistic_map

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 4.425 ± 0.018 4.397 4.448 60.92 ± 0.35
cairo-native (embedded AOT) 2.890 ± 0.021 2.860 2.932 39.79 ± 0.33
cairo-native (embedded JIT using LLVM's ORC Engine) 3.097 ± 0.042 3.015 3.157 42.63 ± 0.61
cairo-native (standalone AOT) 0.112 ± 0.000 0.112 0.113 1.55 ± 0.01
cairo-native (standalone AOT with -march=native) 0.073 ± 0.000 0.072 0.074 1.00

Copy link

github-actions bot commented Oct 17, 2024

Benchmark results Main vs HEAD.

Command Mean [s] Min [s] Max [s] Relative
head factorial_2M.cairo (JIT) 3.230 ± 0.046 3.160 3.295 1.02 ± 0.02
base factorial_2M.cairo (JIT) 3.213 ± 0.030 3.164 3.260 1.02 ± 0.01
head factorial_2M.cairo (AOT) 3.250 ± 0.043 3.203 3.318 1.03 ± 0.02
base factorial_2M.cairo (AOT) 3.157 ± 0.029 3.126 3.208 1.00
Command Mean [s] Min [s] Max [s] Relative
head fib_2M.cairo (JIT) 2.734 ± 0.031 2.696 2.776 1.02 ± 0.02
base fib_2M.cairo (JIT) 2.699 ± 0.016 2.674 2.724 1.01 ± 0.01
head fib_2M.cairo (AOT) 2.671 ± 0.035 2.628 2.731 1.00
base fib_2M.cairo (AOT) 2.672 ± 0.015 2.655 2.701 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
head logistic_map.cairo (JIT) 3.008 ± 0.018 2.973 3.035 1.07 ± 0.01
base logistic_map.cairo (JIT) 2.997 ± 0.039 2.948 3.085 1.06 ± 0.02
head logistic_map.cairo (AOT) 2.819 ± 0.016 2.794 2.846 1.00 ± 0.01
base logistic_map.cairo (AOT) 2.815 ± 0.027 2.791 2.882 1.00

@edg-l edg-l linked an issue Oct 17, 2024 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.82%. Comparing base (0e251c5) to head (62d0089).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #857      +/-   ##
==========================================
+ Coverage   82.73%   82.82%   +0.09%     
==========================================
  Files         120      120              
  Lines       34937    35122     +185     
==========================================
+ Hits        28905    29090     +185     
  Misses       6032     6032              

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

@edg-l edg-l marked this pull request as ready for review October 18, 2024 12:43
@edg-l edg-l added the review-ready A PR that is ready for review label Oct 18, 2024
@edg-l edg-l added this pull request to the merge queue Oct 18, 2024
Merged via the queue into main with commit 530d1e9 Oct 18, 2024
15 checks passed
@edg-l edg-l deleted the runtime_tests branch October 18, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review-ready A PR that is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add cairo-native-runtime unit tests
4 participants