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

Serialize and Deserialize CairoPie struct #1438

Merged
merged 4 commits into from
Sep 6, 2023

Conversation

pefontana
Copy link
Collaborator

@pefontana pefontana commented Sep 5, 2023

Serialize and Deserialize CairoPie struct

Derive the Serialize and Deserialize traits for the CairoPie struct

Description of the pull request changes and motivation.

Checklist

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

@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Merging #1438 (1525d6d) into main (d120c9b) will increase coverage by 0.00%.
The diff coverage is 87.50%.

@@           Coverage Diff           @@
##             main    #1438   +/-   ##
=======================================
  Coverage   96.98%   96.99%           
=======================================
  Files          93       93           
  Lines       38544    38544           
=======================================
+ Hits        37382    37385    +3     
+ Misses       1162     1159    -3     
Files Changed Coverage Δ
vm/src/vm/runners/cairo_pie.rs 91.66% <83.33%> (+16.66%) ⬆️
vm/src/types/program.rs 99.42% <100.00%> (+0.09%) ⬆️
vm/src/vm/runners/cairo_runner.rs 98.04% <100.00%> (ø)

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

@github-actions
Copy link

github-actions bot commented Sep 5, 2023

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base big_factorial 4.058 ± 0.006 4.052 4.069 1.00
head big_factorial 4.099 ± 0.141 4.043 4.501 1.01 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base big_fibonacci 3.425 ± 0.013 3.411 3.455 1.00
head big_fibonacci 3.434 ± 0.009 3.422 3.452 1.00 ± 0.00
Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 9.609 ± 0.122 9.547 9.941 1.00 ± 0.01
head blake2s_integration_benchmark 9.595 ± 0.037 9.559 9.688 1.00
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 3.514 ± 0.023 3.489 3.546 1.00 ± 0.01
head compare_arrays_200000 3.504 ± 0.009 3.493 3.525 1.00
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 2.333 ± 0.009 2.323 2.351 1.00
head dict_integration_benchmark 2.334 ± 0.017 2.318 2.377 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base field_arithmetic_get_square_benchmark 1.715 ± 0.004 1.710 1.721 1.00
head field_arithmetic_get_square_benchmark 1.721 ± 0.007 1.713 1.734 1.00 ± 0.00
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 9.431 ± 0.019 9.407 9.465 1.00
head integration_builtins 9.483 ± 0.049 9.428 9.582 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 9.735 ± 0.029 9.705 9.797 1.00
head keccak_integration_benchmark 9.749 ± 0.058 9.715 9.909 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base linear_search 3.486 ± 0.005 3.479 3.495 1.00
head linear_search 3.519 ± 0.018 3.500 3.557 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 2.568 ± 0.013 2.553 2.595 1.00
head math_cmp_and_pow_integration_benchmark 2.571 ± 0.010 2.554 2.589 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 2.296 ± 0.014 2.274 2.314 1.00
head math_integration_benchmark 2.320 ± 0.019 2.290 2.344 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 2.047 ± 0.008 2.040 2.065 1.00
head memory_integration_benchmark 2.060 ± 0.008 2.049 2.071 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 2.241 ± 0.018 2.226 2.270 1.00 ± 0.01
head operations_with_data_structures_benchmarks 2.237 ± 0.003 2.232 2.243 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 796.5 ± 1.4 794.6 799.4 1.00
head pedersen 797.4 ± 1.5 795.5 800.0 1.00 ± 0.00
Command Mean [s] Min [s] Max [s] Relative
base poseidon_integration_benchmark 1.487 ± 0.004 1.481 1.497 1.01 ± 0.01
head poseidon_integration_benchmark 1.472 ± 0.010 1.459 1.490 1.00
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 2.835 ± 0.005 2.828 2.843 1.00
head secp_integration_benchmark 2.838 ± 0.005 2.831 2.846 1.00 ± 0.00
Command Mean [s] Min [s] Max [s] Relative
base set_integration_benchmark 1.641 ± 0.009 1.617 1.650 1.01 ± 0.01
head set_integration_benchmark 1.628 ± 0.007 1.623 1.646 1.00
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 6.275 ± 0.011 6.263 6.300 1.00
head uint256_integration_benchmark 6.285 ± 0.044 6.261 6.408 1.00 ± 0.01

@Oppen Oppen added this pull request to the merge queue Sep 6, 2023
Merged via the queue into main with commit f7aae3d Sep 6, 2023
@Oppen Oppen deleted the serialize-and-deserialize-cairopie branch September 6, 2023 15:05
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