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 NewHint#22 #1003

Merged
merged 8 commits into from
Apr 19, 2023
Merged

Conversation

MegaRedHand
Copy link
Contributor

Description

This PR adds the missing hint NewHint#22, now known as IS_ZERO_PACK_EXTERNAL_SECP.

@MegaRedHand MegaRedHand added the whitelisted-hint Implementation of hint on whitelist directory label Apr 17, 2023
@github-actions
Copy link

github-actions bot commented Apr 17, 2023

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 3.950 ± 0.111 3.810 4.071 1.01 ± 0.04
head blake2s_integration_benchmark 3.925 ± 0.113 3.827 4.223 1.00
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 4.778 ± 0.136 4.528 5.028 1.04 ± 0.03
head compare_arrays_200000 4.609 ± 0.042 4.555 4.670 1.00
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 3.514 ± 0.064 3.451 3.626 1.00
head dict_integration_benchmark 3.524 ± 0.088 3.415 3.715 1.00 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base factorial_multirun 5.683 ± 0.144 5.577 6.041 1.01 ± 0.03
head factorial_multirun 5.640 ± 0.072 5.543 5.785 1.00
Command Mean [s] Min [s] Max [s] Relative
base fibonacci_1000_multirun 4.515 ± 0.070 4.374 4.617 1.02 ± 0.02
head fibonacci_1000_multirun 4.411 ± 0.083 4.329 4.592 1.00
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 4.456 ± 0.056 4.386 4.528 1.00
head integration_builtins 4.527 ± 0.105 4.370 4.711 1.02 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 4.131 ± 0.144 3.984 4.477 1.00
head keccak_integration_benchmark 4.159 ± 0.071 4.085 4.294 1.01 ± 0.04
Command Mean [s] Min [s] Max [s] Relative
base linear_search 4.722 ± 0.086 4.630 4.879 1.00
head linear_search 4.736 ± 0.056 4.654 4.821 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 3.800 ± 0.055 3.749 3.929 1.00
head math_cmp_and_pow_integration_benchmark 3.806 ± 0.052 3.710 3.890 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 3.569 ± 0.061 3.467 3.655 1.00
head math_integration_benchmark 3.583 ± 0.051 3.525 3.650 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 3.197 ± 0.062 3.111 3.344 1.00 ± 0.03
head memory_integration_benchmark 3.192 ± 0.056 3.129 3.331 1.00
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 3.119 ± 0.035 3.066 3.173 1.00
head operations_with_data_structures_benchmarks 3.121 ± 0.033 3.061 3.166 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base pedersen 4.494 ± 0.043 4.428 4.546 1.02 ± 0.02
head pedersen 4.401 ± 0.073 4.322 4.494 1.00
Command Mean [s] Min [s] Max [s] Relative
base poseidon_integration_benchmark 1.887 ± 0.037 1.844 1.965 1.00
head poseidon_integration_benchmark 1.904 ± 0.036 1.853 1.967 1.01 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 3.556 ± 0.033 3.518 3.633 1.00
head secp_integration_benchmark 3.669 ± 0.080 3.561 3.826 1.03 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base set_integration_benchmark 2.601 ± 0.026 2.569 2.652 1.00
head set_integration_benchmark 2.609 ± 0.032 2.557 2.646 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 5.321 ± 0.110 5.185 5.553 1.01 ± 0.03
head uint256_integration_benchmark 5.292 ± 0.087 5.152 5.452 1.00

@codecov
Copy link

codecov bot commented Apr 17, 2023

Codecov Report

Merging #1003 (f145f83) into main (d545372) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1003   +/-   ##
=======================================
  Coverage   98.02%   98.02%           
=======================================
  Files          76       76           
  Lines       31643    31667   +24     
=======================================
+ Hits        31019    31043   +24     
  Misses        624      624           
Impacted Files Coverage Δ
...int_processor/builtin_hint_processor_definition.rs 98.80% <100.00%> (+0.01%) ⬆️
..._processor/builtin_hint_processor/secp/ec_utils.rs 99.46% <100.00%> (ø)
...ocessor/builtin_hint_processor/secp/field_utils.rs 99.20% <100.00%> (+0.03%) ⬆️
...processor/builtin_hint_processor/secp/signature.rs 99.01% <100.00%> (ø)

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

@fmoletta fmoletta added this pull request to the merge queue Apr 19, 2023
Merged via the queue into main with commit a199589 Apr 19, 2023
@fmoletta fmoletta deleted the newhint22-is_zero-external-secp_p branch April 19, 2023 19:09
kariy pushed a commit to dojoengine/cairo-rs that referenced this pull request Jun 23, 2023
* Add NewHint#22

* Update changelog

* Remove unused import

* Use constant and add NOTE comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
whitelisted-hint Implementation of hint on whitelist directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants