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

Cache RPC calls in Daily Block Run #1048

Merged
merged 3 commits into from
Jan 16, 2025
Merged

Conversation

JulianGCalderon
Copy link
Contributor

No description provided.

@JulianGCalderon JulianGCalderon mentioned this pull request Jan 13, 2025
5 tasks
Copy link

github-actions bot commented Jan 13, 2025

Benchmark results Main vs HEAD.

Command Mean [s] Min [s] Max [s] Relative
base dict_insert.cairo (JIT) 3.990 ± 0.067 3.877 4.094 1.00
base dict_insert.cairo (AOT) 4.077 ± 0.069 3.971 4.150 1.02 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head dict_insert.cairo (JIT) 3.898 ± 0.016 3.861 3.913 1.00
head dict_insert.cairo (AOT) 4.088 ± 0.029 4.048 4.153 1.05 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base dict_snapshot.cairo (JIT) 3.809 ± 0.053 3.705 3.888 1.00
base dict_snapshot.cairo (AOT) 4.030 ± 0.027 3.992 4.072 1.06 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head dict_snapshot.cairo (JIT) 3.815 ± 0.039 3.730 3.878 1.00
head dict_snapshot.cairo (AOT) 3.955 ± 0.022 3.905 3.985 1.04 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base factorial_2M.cairo (JIT) 4.182 ± 0.019 4.137 4.205 1.00
base factorial_2M.cairo (AOT) 4.394 ± 0.030 4.349 4.436 1.05 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head factorial_2M.cairo (JIT) 4.149 ± 0.037 4.088 4.212 1.00
head factorial_2M.cairo (AOT) 4.369 ± 0.038 4.293 4.423 1.05 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base fib_2M.cairo (JIT) 3.714 ± 0.017 3.684 3.740 1.00
base fib_2M.cairo (AOT) 3.982 ± 0.053 3.927 4.078 1.07 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head fib_2M.cairo (JIT) 3.701 ± 0.050 3.634 3.819 1.00
head fib_2M.cairo (AOT) 3.886 ± 0.030 3.834 3.928 1.05 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base linear_search.cairo (JIT) 3.901 ± 0.035 3.853 3.948 1.00
base linear_search.cairo (AOT) 4.016 ± 0.027 3.954 4.056 1.03 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head linear_search.cairo (JIT) 3.853 ± 0.021 3.825 3.883 1.00
head linear_search.cairo (AOT) 4.004 ± 0.029 3.958 4.050 1.04 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base logistic_map.cairo (JIT) 4.007 ± 0.038 3.943 4.057 1.00
base logistic_map.cairo (AOT) 4.120 ± 0.044 4.081 4.228 1.03 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
:--- ---: ---: ---: ---:
head logistic_map.cairo (JIT) 3.999 ± 0.050 3.922 4.067 1.00
head logistic_map.cairo (AOT) 4.032 ± 0.046 3.979 4.114 1.01 ± 0.02

@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.95%. Comparing base (1d6a099) to head (50656be).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1048   +/-   ##
=======================================
  Coverage   80.95%   80.95%           
=======================================
  Files         108      108           
  Lines       29938    29938           
=======================================
  Hits        24237    24237           
  Misses       5701     5701           

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

Copy link

github-actions bot commented Jan 13, 2025

Benchmarking results

Benchmark for program dict_insert

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 20.793 ± 0.091 20.685 20.983 103.16 ± 4.23
cairo-native (embedded AOT) 3.959 ± 0.019 3.930 3.983 19.64 ± 0.81
cairo-native (embedded JIT using LLVM's ORC Engine) 3.784 ± 0.019 3.762 3.812 18.77 ± 0.77
cairo-native (standalone AOT with -march=native) 0.202 ± 0.008 0.192 0.213 1.00

Benchmark for program dict_snapshot

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 5.737 ± 0.033 5.697 5.776 2937.05 ± 72.60
cairo-native (embedded AOT) 3.818 ± 0.018 3.788 3.844 1954.73 ± 47.87
cairo-native (embedded JIT using LLVM's ORC Engine) 3.685 ± 0.056 3.654 3.842 1886.44 ± 53.79
cairo-native (standalone AOT with -march=native) 0.002 ± 0.000 0.002 0.003 1.00

Benchmark for program factorial_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 14.725 ± 0.089 14.621 14.940 10.86 ± 0.07
cairo-native (embedded AOT) 4.229 ± 0.013 4.214 4.249 3.12 ± 0.01
cairo-native (embedded JIT using LLVM's ORC Engine) 4.046 ± 0.085 4.008 4.286 2.98 ± 0.06
cairo-native (standalone AOT with -march=native) 1.356 ± 0.001 1.354 1.357 1.00

Benchmark for program fib_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 14.572 ± 0.036 14.530 14.639 182.11 ± 0.81
cairo-native (embedded AOT) 3.778 ± 0.021 3.737 3.816 47.22 ± 0.32
cairo-native (embedded JIT using LLVM's ORC Engine) 3.564 ± 0.022 3.523 3.596 44.54 ± 0.32
cairo-native (standalone AOT with -march=native) 0.080 ± 0.000 0.080 0.081 1.00

Benchmark for program linear_search

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 5.740 ± 0.031 5.689 5.773 2816.64 ± 57.34
cairo-native (embedded AOT) 3.862 ± 0.026 3.836 3.923 1895.22 ± 39.39
cairo-native (embedded JIT using LLVM's ORC Engine) 3.739 ± 0.014 3.720 3.756 1834.93 ± 36.70
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.652 ± 0.031 5.584 5.691 23.35 ± 0.13
cairo-native (embedded AOT) 3.947 ± 0.024 3.910 3.980 16.31 ± 0.10
cairo-native (embedded JIT using LLVM's ORC Engine) 3.861 ± 0.022 3.840 3.909 15.95 ± 0.09
cairo-native (standalone AOT with -march=native) 0.242 ± 0.000 0.242 0.242 1.00

@edg-l edg-l enabled auto-merge January 16, 2025 11:17
@edg-l edg-l added this pull request to the merge queue Jan 16, 2025
Merged via the queue into main with commit 1191808 Jan 16, 2025
28 checks passed
@edg-l edg-l deleted the add-rpc-cache-to-daily-workflow branch January 16, 2025 12:46
azteca1998 pushed a commit that referenced this pull request Feb 4, 2025
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.

5 participants