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

Remove panics in arch.rs #926

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

Remove panics in arch.rs #926

wants to merge 4 commits into from

Conversation

FrancoGiachetta
Copy link
Contributor

@FrancoGiachetta FrancoGiachetta commented Nov 15, 2024

  • src/arch.rs

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 15, 2024

✅ Code is now correctly formatted.

Copy link

Benchmarking results

Benchmark for program factorial_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 11.085 ± 0.332 10.631 11.703 8.17 ± 0.25
cairo-native (embedded AOT) 3.424 ± 0.095 3.322 3.560 2.52 ± 0.07
cairo-native (embedded JIT using LLVM's ORC Engine) 3.181 ± 0.022 3.133 3.206 2.34 ± 0.02
cairo-native (standalone AOT with -march=native) 1.357 ± 0.005 1.352 1.372 1.00

Benchmark for program fib_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 11.157 ± 0.147 10.940 11.351 137.29 ± 1.86
cairo-native (embedded AOT) 2.989 ± 0.038 2.947 3.079 36.78 ± 0.48
cairo-native (embedded JIT using LLVM's ORC Engine) 2.821 ± 0.057 2.719 2.895 34.71 ± 0.71
cairo-native (standalone AOT with -march=native) 0.081 ± 0.000 0.081 0.082 1.00

Benchmark for program logistic_map

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 4.501 ± 0.044 4.439 4.584 18.52 ± 0.18
cairo-native (embedded AOT) 3.215 ± 0.060 3.109 3.286 13.23 ± 0.25
cairo-native (embedded JIT using LLVM's ORC Engine) 3.178 ± 0.026 3.138 3.216 13.08 ± 0.11
cairo-native (standalone AOT with -march=native) 0.243 ± 0.000 0.243 0.244 1.00

Copy link

Benchmark results Main vs HEAD.

Command Mean [s] Min [s] Max [s] Relative
head factorial_2M.cairo (JIT) 3.277 ± 0.079 3.195 3.417 1.01 ± 0.03
base factorial_2M.cairo (JIT) 3.231 ± 0.049 3.172 3.307 1.00
head factorial_2M.cairo (AOT) 3.412 ± 0.043 3.367 3.494 1.06 ± 0.02
base factorial_2M.cairo (AOT) 3.399 ± 0.019 3.377 3.440 1.05 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
head fib_2M.cairo (JIT) 2.802 ± 0.054 2.728 2.882 1.02 ± 0.02
base fib_2M.cairo (JIT) 2.744 ± 0.021 2.715 2.784 1.00
head fib_2M.cairo (AOT) 2.965 ± 0.031 2.922 3.034 1.08 ± 0.01
base fib_2M.cairo (AOT) 2.943 ± 0.026 2.916 2.999 1.07 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
head logistic_map.cairo (JIT) 3.087 ± 0.048 3.027 3.159 1.00
base logistic_map.cairo (JIT) 3.105 ± 0.029 3.072 3.157 1.01 ± 0.02
head logistic_map.cairo (AOT) 3.194 ± 0.024 3.158 3.237 1.03 ± 0.02
base logistic_map.cairo (AOT) 3.164 ± 0.035 3.116 3.200 1.03 ± 0.02

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.

1 participant