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#51 #1049

Merged
merged 8 commits into from
Apr 25, 2023
Merged

feat(hints): add NewHint#51 #1049

merged 8 commits into from
Apr 25, 2023

Conversation

MegaRedHand
Copy link
Contributor

Description

This PR adds the missing hint NewHint#51, now known as UNSIGNED_DIV_REM_UINT768_BY_UINT384_STRIPPED.
NOTE: this hint is a copy of NewHint#6 but with less spaces.

@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 3.999 ± 0.052 3.919 4.063 1.00
head blake2s_integration_benchmark 4.029 ± 0.057 3.964 4.131 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 4.876 ± 0.087 4.767 5.014 1.01 ± 0.02
head compare_arrays_200000 4.825 ± 0.067 4.740 4.936 1.00
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 3.712 ± 0.093 3.623 3.896 1.03 ± 0.03
head dict_integration_benchmark 3.614 ± 0.048 3.518 3.669 1.00
Command Mean [s] Min [s] Max [s] Relative
base factorial_multirun 5.939 ± 0.154 5.769 6.311 1.00 ± 0.03
head factorial_multirun 5.917 ± 0.099 5.784 6.112 1.00
Command Mean [s] Min [s] Max [s] Relative
base fibonacci_1000_multirun 4.758 ± 0.039 4.693 4.837 1.00
head fibonacci_1000_multirun 4.799 ± 0.238 4.654 5.445 1.01 ± 0.05
Command Mean [ms] Min [ms] Max [ms] Relative
base field_arithmetic_get_square_benchmark 167.4 ± 9.1 155.7 188.3 1.05 ± 0.07
head field_arithmetic_get_square_benchmark 158.9 ± 5.4 153.4 168.7 1.00
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 4.705 ± 0.139 4.574 4.967 1.02 ± 0.03
head integration_builtins 4.606 ± 0.056 4.547 4.714 1.00
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 4.501 ± 0.142 4.338 4.866 1.01 ± 0.03
head keccak_integration_benchmark 4.450 ± 0.038 4.392 4.498 1.00
Command Mean [s] Min [s] Max [s] Relative
base linear_search 4.955 ± 0.034 4.915 5.010 1.01 ± 0.01
head linear_search 4.889 ± 0.043 4.820 4.955 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 4.074 ± 0.048 3.990 4.155 1.01 ± 0.02
head math_cmp_and_pow_integration_benchmark 4.038 ± 0.038 3.984 4.114 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 3.682 ± 0.018 3.652 3.716 1.00
head math_integration_benchmark 3.703 ± 0.036 3.660 3.761 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 3.319 ± 0.020 3.293 3.353 1.00
head memory_integration_benchmark 3.323 ± 0.041 3.271 3.385 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 3.263 ± 0.035 3.197 3.305 1.02 ± 0.02
head operations_with_data_structures_benchmarks 3.210 ± 0.042 3.157 3.298 1.00
Command Mean [s] Min [s] Max [s] Relative
base pedersen 1.123 ± 0.015 1.099 1.159 1.00
head pedersen 1.128 ± 0.029 1.082 1.171 1.00 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base poseidon_integration_benchmark 2.074 ± 0.036 2.041 2.154 1.02 ± 0.02
head poseidon_integration_benchmark 2.041 ± 0.021 2.016 2.068 1.00
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 3.720 ± 0.026 3.687 3.776 1.00
head secp_integration_benchmark 3.729 ± 0.032 3.658 3.767 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base set_integration_benchmark 2.666 ± 0.021 2.635 2.698 1.00
head set_integration_benchmark 2.693 ± 0.026 2.644 2.729 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 5.523 ± 0.060 5.436 5.599 1.02 ± 0.02
head uint256_integration_benchmark 5.419 ± 0.076 5.346 5.577 1.00

@codecov
Copy link

codecov bot commented Apr 25, 2023

Codecov Report

Merging #1049 (338b26b) into main (62682a9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1049   +/-   ##
=======================================
  Coverage   98.08%   98.08%           
=======================================
  Files          84       84           
  Lines       33537    33452   -85     
=======================================
- Hits        32895    32812   -83     
+ Misses        642      640    -2     
Impacted Files Coverage Δ
...int_processor/builtin_hint_processor_definition.rs 98.92% <100.00%> (+<0.01%) ⬆️
...cessor/builtin_hint_processor/uint384_extension.rs 99.48% <100.00%> (+0.55%) ⬆️

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

@MegaRedHand MegaRedHand mentioned this pull request Apr 25, 2023
CHANGELOG.md Show resolved Hide resolved
@juanbono juanbono added this pull request to the merge queue Apr 25, 2023
Merged via the queue into main with commit 33690df Apr 25, 2023
15 checks passed
@juanbono juanbono deleted the newhint51-udiv_rem_u768_stripped branch April 25, 2023 23:47
kariy pushed a commit to dojoengine/cairo-rs that referenced this pull request Jun 23, 2023
* Add NewHint#51

* Update changelog

* Add tests

* Add comment in 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