cairo_native icon indicating copy to clipboard operation
cairo_native copied to clipboard

Add test for Bravos transfer

Open FrancoGiachetta opened this issue 1 year ago • 2 comments

Refers to #717 The purpose of the PR is to add tests which reproduce similar cases of the tx.

Checklist

  • [x] Linked to Github Issue
  • [x] Unit tests added
  • [ ] Integration tests added.
  • [ ] This change requires new documentation.
    • [ ] Documentation has been added/updated.

FrancoGiachetta avatar Jul 05 '24 15:07 FrancoGiachetta

Benchmark results Main vs HEAD.

Command Mean [s] Min [s] Max [s] Relative
head factorial_2M.cairo (JIT) 3.167 ± 0.022 3.135 3.197 1.01 ± 0.01
base factorial_2M.cairo (JIT) 3.196 ± 0.028 3.156 3.241 1.02 ± 0.01
head factorial_2M.cairo (AOT) 3.127 ± 0.020 3.095 3.162 1.00
base factorial_2M.cairo (AOT) 3.202 ± 0.043 3.131 3.257 1.02 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
head fib_2M.cairo (JIT) 2.807 ± 0.043 2.747 2.888 1.04 ± 0.02
base fib_2M.cairo (JIT) 2.855 ± 0.032 2.778 2.890 1.06 ± 0.01
head fib_2M.cairo (AOT) 2.854 ± 0.053 2.776 2.907 1.06 ± 0.02
base fib_2M.cairo (AOT) 2.694 ± 0.022 2.663 2.730 1.00
Command Mean [s] Min [s] Max [s] Relative
head logistic_map.cairo (JIT) 3.020 ± 0.022 2.988 3.049 1.05 ± 0.01
base logistic_map.cairo (JIT) 3.060 ± 0.032 3.028 3.131 1.06 ± 0.02
head logistic_map.cairo (AOT) 2.902 ± 0.026 2.864 2.933 1.01 ± 0.01
base logistic_map.cairo (AOT) 2.877 ± 0.030 2.820 2.915 1.00

github-actions[bot] avatar Jul 05 '24 15:07 github-actions[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.15%. Comparing base (c866fbf) to head (9ba1c94).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #721      +/-   ##
==========================================
+ Coverage   87.98%   88.15%   +0.16%     
==========================================
  Files         122      122              
  Lines       34289    34289              
==========================================
+ Hits        30169    30226      +57     
+ Misses       4120     4063      -57     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Jul 05 '24 16:07 codecov-commenter

Benchmarking results

Benchmark for program factorial_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 10.634 ± 0.240 10.430 11.152 23.68 ± 0.55
cairo-native (embedded AOT) 3.135 ± 0.046 3.095 3.251 6.98 ± 0.11
cairo-native (embedded JIT using LLVM's ORC Engine) 3.171 ± 0.018 3.150 3.204 7.06 ± 0.05
cairo-native (standalone AOT) 0.674 ± 0.001 0.672 0.676 1.50 ± 0.01
cairo-native (standalone AOT with -march=native) 0.449 ± 0.002 0.448 0.455 1.00

Benchmark for program fib_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 10.759 ± 0.325 10.312 11.111 1292.03 ± 40.20
cairo-native (embedded AOT) 2.655 ± 0.017 2.633 2.681 318.78 ± 3.15
cairo-native (embedded JIT using LLVM's ORC Engine) 2.673 ± 0.013 2.649 2.693 321.04 ± 2.88
cairo-native (standalone AOT) 0.008 ± 0.000 0.008 0.009 1.00
cairo-native (standalone AOT with -march=native) 0.008 ± 0.002 0.008 0.027 1.01 ± 0.24

Benchmark for program logistic_map

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 4.257 ± 0.036 4.209 4.318 59.66 ± 2.88
cairo-native (embedded AOT) 2.810 ± 0.017 2.781 2.829 39.37 ± 1.89
cairo-native (embedded JIT using LLVM's ORC Engine) 2.977 ± 0.018 2.946 3.006 41.72 ± 2.00
cairo-native (standalone AOT) 0.115 ± 0.000 0.114 0.115 1.60 ± 0.08
cairo-native (standalone AOT with -march=native) 0.071 ± 0.003 0.070 0.092 1.00

github-actions[bot] avatar Oct 28 '24 14:10 github-actions[bot]

The deserialization failure which this was related to is solved and this test is stale.

igaray avatar Feb 06 '25 14:02 igaray