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#45 #1024

Merged
merged 3 commits into from
Apr 20, 2023
Merged

feat(hints): add NewHint#45 #1024

merged 3 commits into from
Apr 20, 2023

Conversation

MegaRedHand
Copy link
Contributor

@MegaRedHand MegaRedHand commented Apr 20, 2023

Depends: #1016

Description

This PR adds the missing hint NewHint#45, now known as UINT128_ADD.

@github-actions
Copy link

github-actions bot commented Apr 20, 2023

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 3.722 ± 0.090 3.616 3.921 1.00
head blake2s_integration_benchmark 3.735 ± 0.079 3.617 3.840 1.00 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 4.392 ± 0.067 4.315 4.500 1.00
head compare_arrays_200000 4.448 ± 0.083 4.350 4.581 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 3.381 ± 0.066 3.265 3.461 1.00 ± 0.02
head dict_integration_benchmark 3.364 ± 0.046 3.307 3.439 1.00
Command Mean [s] Min [s] Max [s] Relative
base factorial_multirun 5.423 ± 0.102 5.313 5.648 1.01 ± 0.02
head factorial_multirun 5.345 ± 0.076 5.226 5.450 1.00
Command Mean [s] Min [s] Max [s] Relative
base fibonacci_1000_multirun 4.315 ± 0.084 4.202 4.461 1.00
head fibonacci_1000_multirun 4.329 ± 0.080 4.225 4.484 1.00 ± 0.03
Command Mean [ms] Min [ms] Max [ms] Relative
base field_arithmetic_get_square_benchmark 148.2 ± 5.1 141.6 156.9 1.00
head field_arithmetic_get_square_benchmark 150.6 ± 4.1 146.4 159.6 1.02 ± 0.04
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 4.406 ± 0.073 4.302 4.535 1.01 ± 0.02
head integration_builtins 4.357 ± 0.043 4.280 4.414 1.00
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 4.122 ± 0.044 4.066 4.199 1.00
head keccak_integration_benchmark 4.130 ± 0.130 4.043 4.463 1.00 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base linear_search 4.708 ± 0.202 4.496 5.034 1.03 ± 0.05
head linear_search 4.565 ± 0.111 4.417 4.707 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 3.864 ± 0.153 3.639 4.113 1.01 ± 0.05
head math_cmp_and_pow_integration_benchmark 3.824 ± 0.089 3.682 3.934 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 3.472 ± 0.050 3.401 3.545 1.02 ± 0.02
head math_integration_benchmark 3.405 ± 0.042 3.364 3.499 1.00
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 3.059 ± 0.052 3.000 3.133 1.01 ± 0.02
head memory_integration_benchmark 3.043 ± 0.039 2.972 3.103 1.00
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 3.012 ± 0.131 2.900 3.289 1.02 ± 0.05
head operations_with_data_structures_benchmarks 2.946 ± 0.039 2.885 3.018 1.00
Command Mean [s] Min [s] Max [s] Relative
base pedersen 4.431 ± 0.324 4.218 5.250 1.02 ± 0.08
head pedersen 4.334 ± 0.064 4.251 4.442 1.00
Command Mean [s] Min [s] Max [s] Relative
base poseidon_integration_benchmark 1.912 ± 0.054 1.847 2.002 1.01 ± 0.03
head poseidon_integration_benchmark 1.895 ± 0.037 1.858 1.972 1.00
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 3.500 ± 0.044 3.429 3.572 1.01 ± 0.02
head secp_integration_benchmark 3.454 ± 0.053 3.370 3.534 1.00
Command Mean [s] Min [s] Max [s] Relative
base set_integration_benchmark 2.545 ± 0.038 2.481 2.599 1.01 ± 0.02
head set_integration_benchmark 2.512 ± 0.041 2.442 2.566 1.00
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 5.022 ± 0.107 4.904 5.196 1.02 ± 0.02
head uint256_integration_benchmark 4.928 ± 0.050 4.860 5.014 1.00

@MegaRedHand MegaRedHand self-assigned this Apr 20, 2023
@MegaRedHand MegaRedHand added the whitelisted-hint Implementation of hint on whitelist directory label Apr 20, 2023
Base automatically changed from newhint43-u256_sub to main April 20, 2023 18:21
@codecov
Copy link

codecov bot commented Apr 20, 2023

Codecov Report

Merging #1024 (70178ab) into main (6ca401a) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1024   +/-   ##
=======================================
  Coverage   98.07%   98.07%           
=======================================
  Files          78       78           
  Lines       32448    32482   +34     
=======================================
+ Hits        31823    31857   +34     
  Misses        625      625           
Impacted Files Coverage Δ
...int_processor/builtin_hint_processor_definition.rs 98.82% <100.00%> (+<0.01%) ⬆️
..._processor/builtin_hint_processor/uint256_utils.rs 99.56% <100.00%> (+0.02%) ⬆️

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

@MegaRedHand MegaRedHand added this pull request to the merge queue Apr 20, 2023
Merged via the queue into main with commit 375373d Apr 20, 2023
15 checks passed
@MegaRedHand MegaRedHand deleted the newhint45-u128_add branch April 20, 2023 23:18
kariy pushed a commit to dojoengine/cairo-rs that referenced this pull request Jun 23, 2023
* Add NewHint#45

* Update changelog
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