Skip to content

Conversation

JulianGCalderon
Copy link
Contributor

@JulianGCalderon JulianGCalderon commented Sep 11, 2025

Prepare for 2.5.0

This PR includes only #2191.

BREAKING CHANGES

This PR is BREAKING, as it changes the signature of the hint processor definition.

  • Instead of receiving constants on execute_hint, now the constants are received on compile_hint:
    // Identifiers stored in the hint's program.
    constants: Rc<HashMap<String, Felt252>>,
  • When compiling hints, we now need to extract the program's constants and pass them in a Rc:
    let constants = Rc::new(self.program.constants.clone());
    self.program
    .shared_program_data
    .hints_collection
    .iter_hints()
    .map(|hint| {
    hint_executor
    .compile_hint(
    &hint.code,
    &hint.flow_tracking_data.ap_tracking,
    &hint.flow_tracking_data.reference_ids,
    references,
    constants.clone(),

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.

@JulianGCalderon JulianGCalderon changed the title Prepare for 2.5.1 Prepare for 2.5.0 Sep 11, 2025
Copy link

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base big_factorial 2.142 ± 0.024 2.122 2.206 1.01 ± 0.02
head big_factorial 2.130 ± 0.029 2.104 2.208 1.00
Command Mean [s] Min [s] Max [s] Relative
base big_fibonacci 2.057 ± 0.010 2.042 2.074 1.00
head big_fibonacci 2.064 ± 0.008 2.053 2.075 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 7.650 ± 0.030 7.604 7.681 1.00
head blake2s_integration_benchmark 7.673 ± 0.028 7.625 7.709 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 2.189 ± 0.024 2.166 2.236 1.00
head compare_arrays_200000 2.199 ± 0.021 2.175 2.242 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 1.438 ± 0.007 1.428 1.448 1.01 ± 0.01
head dict_integration_benchmark 1.418 ± 0.004 1.412 1.423 1.00
Command Mean [s] Min [s] Max [s] Relative
base field_arithmetic_get_square_benchmark 1.225 ± 0.006 1.218 1.233 1.00 ± 0.01
head field_arithmetic_get_square_benchmark 1.225 ± 0.006 1.217 1.239 1.00
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 7.804 ± 0.039 7.778 7.899 1.00
head integration_builtins 7.835 ± 0.162 7.738 8.291 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 7.981 ± 0.074 7.931 8.186 1.00
head keccak_integration_benchmark 8.037 ± 0.135 7.946 8.354 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base linear_search 2.180 ± 0.008 2.166 2.195 1.00 ± 0.00
head linear_search 2.174 ± 0.006 2.161 2.183 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 1.515 ± 0.005 1.508 1.526 1.00 ± 0.01
head math_cmp_and_pow_integration_benchmark 1.510 ± 0.020 1.500 1.565 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 1.473 ± 0.020 1.459 1.525 1.01 ± 0.01
head math_integration_benchmark 1.453 ± 0.005 1.446 1.462 1.00
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 1.225 ± 0.005 1.213 1.231 1.00 ± 0.01
head memory_integration_benchmark 1.220 ± 0.009 1.210 1.238 1.00
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 1.588 ± 0.014 1.578 1.619 1.01 ± 0.01
head operations_with_data_structures_benchmarks 1.574 ± 0.004 1.570 1.583 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 533.7 ± 6.7 528.3 550.6 1.01 ± 0.01
head pedersen 530.6 ± 1.5 528.6 533.5 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base poseidon_integration_benchmark 628.4 ± 5.2 624.4 640.5 1.00
head poseidon_integration_benchmark 631.1 ± 4.5 626.8 642.2 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 1.847 ± 0.011 1.835 1.868 1.00 ± 0.01
head secp_integration_benchmark 1.844 ± 0.021 1.829 1.898 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base set_integration_benchmark 680.5 ± 5.8 671.0 689.7 1.07 ± 0.01
head set_integration_benchmark 634.1 ± 1.8 631.4 636.6 1.00
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 4.273 ± 0.019 4.240 4.310 1.00
head uint256_integration_benchmark 4.299 ± 0.084 4.228 4.457 1.01 ± 0.02

Copy link

codecov bot commented Sep 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.66%. Comparing base (fec5af0) to head (ba4d334).
⚠️ Report is 1 commits behind head on 2.x.y.

Additional details and impacted files
@@           Coverage Diff           @@
##            2.x.y    #2198   +/-   ##
=======================================
  Coverage   96.66%   96.66%           
=======================================
  Files         103      103           
  Lines       43646    43646           
=======================================
  Hits        42191    42191           
  Misses       1455     1455           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gabrielbosio gabrielbosio added this pull request to the merge queue Sep 11, 2025
Merged via the queue into 2.x.y with commit 3af7999 Sep 11, 2025
92 checks passed
@gabrielbosio gabrielbosio deleted the prepare-2.5.1 branch September 11, 2025 15:58
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.

4 participants