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

feat(hints): Add alternative string for hint IS_ZERO_PACK #1081

Merged
merged 5 commits into from
Apr 27, 2023

Conversation

fmoletta
Copy link
Member

@fmoletta fmoletta commented Apr 27, 2023

TITLE

Description

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.

@fmoletta fmoletta linked an issue Apr 27, 2023 that may be closed by this pull request
@fmoletta fmoletta marked this pull request as ready for review April 27, 2023 13:38
@fmoletta fmoletta linked an issue Apr 27, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Merging #1081 (5df8deb) into main (514bd83) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1081   +/-   ##
=======================================
  Coverage   98.10%   98.10%           
=======================================
  Files          84       84           
  Lines       34149    34150    +1     
=======================================
+ Hits        33503    33504    +1     
  Misses        646      646           
Impacted Files Coverage Δ
...int_processor/builtin_hint_processor_definition.rs 99.01% <100.00%> (ø)
...ocessor/builtin_hint_processor/secp/field_utils.rs 99.70% <100.00%> (+<0.01%) ⬆️

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

@github-actions
Copy link

github-actions bot commented Apr 27, 2023

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 3.641 ± 0.054 3.572 3.745 1.01 ± 0.04
head blake2s_integration_benchmark 3.606 ± 0.124 3.498 3.887 1.00
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 4.239 ± 0.056 4.133 4.348 1.00 ± 0.02
head compare_arrays_200000 4.235 ± 0.075 4.110 4.364 1.00
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 3.218 ± 0.046 3.157 3.308 1.00 ± 0.02
head dict_integration_benchmark 3.203 ± 0.053 3.151 3.292 1.00
Command Mean [s] Min [s] Max [s] Relative
base factorial_multirun 5.256 ± 0.076 5.153 5.396 1.00
head factorial_multirun 5.330 ± 0.086 5.238 5.482 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base fibonacci_1000_multirun 4.173 ± 0.097 4.021 4.326 1.01 ± 0.03
head fibonacci_1000_multirun 4.126 ± 0.047 4.050 4.199 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base field_arithmetic_get_square_benchmark 154.5 ± 11.5 142.1 178.5 1.02 ± 0.15
head field_arithmetic_get_square_benchmark 151.7 ± 19.6 139.7 204.9 1.00
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 4.172 ± 0.060 4.070 4.267 1.00
head integration_builtins 4.176 ± 0.057 4.105 4.293 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 3.908 ± 0.039 3.853 3.978 1.00
head keccak_integration_benchmark 3.919 ± 0.080 3.823 4.055 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base linear_search 4.391 ± 0.055 4.311 4.483 1.01 ± 0.02
head linear_search 4.363 ± 0.069 4.275 4.474 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 3.579 ± 0.056 3.506 3.671 1.00
head math_cmp_and_pow_integration_benchmark 3.621 ± 0.108 3.506 3.905 1.01 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 3.360 ± 0.097 3.252 3.581 1.00 ± 0.03
head math_integration_benchmark 3.343 ± 0.059 3.223 3.407 1.00
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 2.957 ± 0.053 2.896 3.057 1.01 ± 0.03
head memory_integration_benchmark 2.921 ± 0.059 2.841 3.060 1.00
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 2.882 ± 0.043 2.833 2.938 1.00
head operations_with_data_structures_benchmarks 2.911 ± 0.076 2.807 3.095 1.01 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base pedersen 1.046 ± 0.034 1.012 1.112 1.00 ± 0.04
head pedersen 1.043 ± 0.028 1.000 1.090 1.00
Command Mean [s] Min [s] Max [s] Relative
base poseidon_integration_benchmark 1.942 ± 0.068 1.866 2.105 1.01 ± 0.04
head poseidon_integration_benchmark 1.925 ± 0.032 1.881 1.977 1.00
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 3.390 ± 0.060 3.298 3.486 1.00
head secp_integration_benchmark 3.408 ± 0.041 3.342 3.475 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base set_integration_benchmark 2.678 ± 0.055 2.606 2.806 1.00
head set_integration_benchmark 2.693 ± 0.056 2.630 2.819 1.01 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 4.888 ± 0.052 4.810 4.971 1.00
head uint256_integration_benchmark 4.943 ± 0.057 4.863 5.057 1.01 ± 0.02

@pefontana pefontana added this pull request to the merge queue Apr 27, 2023
Merged via the queue into main with commit eb24d89 Apr 27, 2023
30 checks passed
@pefontana pefontana deleted the is-zero-pack-v2 branch April 27, 2023 19:09
kariy pushed a commit to dojoengine/cairo-rs that referenced this pull request Jun 23, 2023
…s#1081)

* Add alternative hint code IS_ZERO_PACK_V2

* Integrate into existing tests

* Add changelog entry

* Update is_zero.cairo

---------

Co-authored-by: Pedro Fontana <fontana.pedro93@gmail.com>
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.

IS_ZERO_PACK hint shouldn't appear in issue #1031
3 participants