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#58 #1054

Merged
merged 6 commits into from
Apr 26, 2023
Merged

feat(hints): add NewHint#58 #1054

merged 6 commits into from
Apr 26, 2023

Conversation

MegaRedHand
Copy link
Contributor

Description

This PR adds the missing hint NewHint#58, now known as EC_NEGATE_EMBEDDED_SECP.

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

github-actions bot commented Apr 25, 2023

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 2.517 ± 0.028 2.486 2.566 1.00
head blake2s_integration_benchmark 2.517 ± 0.046 2.483 2.634 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 3.057 ± 0.057 3.022 3.209 1.00
head compare_arrays_200000 3.063 ± 0.035 3.044 3.162 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 2.403 ± 0.008 2.391 2.413 1.00
head dict_integration_benchmark 2.434 ± 0.034 2.403 2.519 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base factorial_multirun 3.751 ± 0.053 3.718 3.897 1.00
head factorial_multirun 3.753 ± 0.035 3.719 3.831 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base fibonacci_1000_multirun 3.000 ± 0.014 2.983 3.033 1.00
head fibonacci_1000_multirun 3.004 ± 0.014 2.993 3.038 1.00 ± 0.01
Command Mean [ms] Min [ms] Max [ms] Relative
base field_arithmetic_get_square_benchmark 128.8 ± 1.0 127.4 130.0 1.00
head field_arithmetic_get_square_benchmark 129.1 ± 0.7 128.1 129.8 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 2.952 ± 0.012 2.937 2.970 1.00
head integration_builtins 2.986 ± 0.025 2.957 3.049 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 2.690 ± 0.010 2.678 2.706 1.00 ± 0.01
head keccak_integration_benchmark 2.683 ± 0.015 2.660 2.709 1.00
Command Mean [s] Min [s] Max [s] Relative
base linear_search 3.169 ± 0.065 3.133 3.351 1.00
head linear_search 3.187 ± 0.034 3.150 3.245 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 2.692 ± 0.015 2.671 2.712 1.00
head math_cmp_and_pow_integration_benchmark 2.704 ± 0.018 2.679 2.747 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 2.491 ± 0.031 2.465 2.572 1.00
head math_integration_benchmark 2.516 ± 0.033 2.484 2.594 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 2.148 ± 0.045 2.121 2.272 1.00
head memory_integration_benchmark 2.189 ± 0.065 2.136 2.337 1.02 ± 0.04
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 2.213 ± 0.009 2.200 2.233 1.00
head operations_with_data_structures_benchmarks 2.232 ± 0.010 2.222 2.254 1.01 ± 0.01
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 785.4 ± 10.0 778.3 808.6 1.00 ± 0.01
head pedersen 782.9 ± 2.4 779.7 787.8 1.00
Command Mean [s] Min [s] Max [s] Relative
base poseidon_integration_benchmark 1.514 ± 0.015 1.502 1.544 1.00
head poseidon_integration_benchmark 1.518 ± 0.008 1.509 1.538 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 2.379 ± 0.017 2.362 2.422 1.00 ± 0.01
head secp_integration_benchmark 2.376 ± 0.008 2.365 2.391 1.00
Command Mean [s] Min [s] Max [s] Relative
base set_integration_benchmark 1.682 ± 0.006 1.673 1.690 1.00
head set_integration_benchmark 1.693 ± 0.010 1.685 1.720 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 3.918 ± 0.019 3.900 3.950 1.00 ± 0.01
head uint256_integration_benchmark 3.917 ± 0.013 3.901 3.939 1.00

Co-authored-by: Mario Rugiero <mario.rugiero@lambdaclass.com>
@codecov
Copy link

codecov bot commented Apr 25, 2023

Codecov Report

Merging #1054 (4e8036d) into main (f92e167) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1054   +/-   ##
=======================================
  Coverage   98.09%   98.09%           
=======================================
  Files          84       84           
  Lines       33522    33570   +48     
=======================================
+ Hits        32882    32930   +48     
  Misses        640      640           
Impacted Files Coverage Δ
...int_processor/builtin_hint_processor_definition.rs 98.94% <100.00%> (+0.01%) ⬆️
..._processor/builtin_hint_processor/secp/ec_utils.rs 99.47% <100.00%> (+0.02%) ⬆️

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

@Oppen Oppen enabled auto-merge April 26, 2023 01:25
@Oppen Oppen disabled auto-merge April 26, 2023 02:45
@Oppen Oppen enabled auto-merge April 26, 2023 02:45
@Oppen Oppen added this pull request to the merge queue Apr 26, 2023
Merged via the queue into main with commit 5ff1a1d Apr 26, 2023
15 checks passed
@Oppen Oppen deleted the newhint58-ec_negate_embedded_secp_p branch April 26, 2023 03:53
kariy pushed a commit to dojoengine/cairo-rs that referenced this pull request Jun 23, 2023
* Add NewHint#58

* Update changelog

* Remove `dbg!`

Co-authored-by: Mario Rugiero <mario.rugiero@lambdaclass.com>

---------

Co-authored-by: Mario Rugiero <mario.rugiero@lambdaclass.com>
Co-authored-by: Juan Bono <juanbono94@gmail.com>
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.

None yet

3 participants