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

initial contract test framework #314

Merged
merged 3 commits into from
Oct 10, 2023
Merged

initial contract test framework #314

merged 3 commits into from
Oct 10, 2023

Conversation

edg-l
Copy link
Member

@edg-l edg-l commented Oct 6, 2023

This will help greatly the development of the syscalls in starknet_in_rust

@edg-l edg-l changed the title initial contract test framework2 initial contract test framework Oct 6, 2023
@edg-l edg-l marked this pull request as ready for review October 6, 2023 15:12
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

Benchmarking results

Benchmark for program factorial_100

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
cairo-run --available-gas 18446744073709551615 -s programs/benches/factorial_100.cairo 1.934 ± 0.012 1.918 1.947 2818.18 ± 232.44
echo '[null, 18446744073709551615]' | ./target/release/cairo-native-run programs/benches/factorial_100.cairo factorial_100::factorial_100::main --inputs - 0.001 ± 0.000 0.001 0.002 1.84 ± 0.20
./target/bench-outputs/factorial_100 0.001 ± 0.000 0.001 0.002 1.01 ± 0.14
./target/bench-outputs/factorial_100-march-native 0.001 ± 0.000 0.001 0.001 1.00

Benchmark for program fib_1k

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
cairo-run --available-gas 18446744073709551615 -s programs/benches/fib_1k.cairo 1.895 ± 0.008 1.879 1.905 2721.79 ± 239.03
echo '[null, 18446744073709551615]' | ./target/release/cairo-native-run programs/benches/fib_1k.cairo fib_1k::fib_1k::main --inputs - 0.001 ± 0.000 0.001 0.009 1.81 ± 0.40
./target/bench-outputs/fib_1k 0.001 ± 0.000 0.001 0.004 1.01 ± 0.15
./target/bench-outputs/fib_1k-march-native 0.001 ± 0.000 0.001 0.002 1.00

Benchmark for program map

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
cairo-run --available-gas 18446744073709551615 -s programs/benches/map.cairo 2.096 ± 0.037 2.075 2.199 1673.92 ± 117.86
echo '[null, 18446744073709551615]' | ./target/release/cairo-native-run programs/benches/map.cairo map::map::main --inputs - 0.001 ± 0.000 0.001 0.002 1.00
./target/bench-outputs/map 0.059 ± 0.000 0.058 0.059 46.84 ± 3.20
./target/bench-outputs/map-march-native 0.055 ± 0.000 0.055 0.057 43.92 ± 3.00

@codecov-commenter
Copy link

Codecov Report

Merging #314 (bf3a3a0) into main (1bc99f7) will increase coverage by 3.24%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #314      +/-   ##
==========================================
+ Coverage   68.37%   71.62%   +3.24%     
==========================================
  Files         116      116              
  Lines       20607    20617      +10     
==========================================
+ Hits        14091    14767     +676     
+ Misses       6516     5850     -666     
Files Coverage Δ
src/utils.rs 73.62% <100.00%> (+2.73%) ⬆️

... and 13 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@edg-l edg-l force-pushed the contract_test_framework branch from bf3a3a0 to 8d8fb89 Compare October 9, 2023 11:11
@edg-l edg-l merged commit b2a2574 into main Oct 10, 2023
@edg-l edg-l deleted the contract_test_framework branch October 10, 2023 10:55
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.

3 participants