Skip to content

Conversation

gabrielbosio
Copy link
Collaborator

Pull Request type

  • Refactoring (no functional changes, no API changes)
  • Performance improvement

What is the current behavior?

Pedersen benchmarks show the following results (ran on MacOS, Apple M3 Pro, 18 GB of RAM):

  • Pedersen/hash: ~19.4 µs
  • Pedersen/hash_array/10: ~277.2 µs
  • Pedersen/hash_array/100: ~2.7 ms
  • Pedersen/hash_array/1000: ~27.8 ms
  • Pedersen/hash_array/1000: ~279.3 ms

Resolves: #NA

What is the new behavior?

Pedersen benchmarks show different results:

  • Pedersen/hash: ~8.9 µs
  • Pedersen/hash_array/10: ~122.6 µs
  • Pedersen/hash_array/100: ~1.2 ms
  • Pedersen/hash_array/1000: ~12 ms
  • Pedersen/hash_array/1000: ~122 ms

General speedup: ~2.2x

Does this introduce a breaking change?

Yes
It implies bumping Rust to 1.87.0 to accept is_multiple_of as a stable function.

It implies bumping Rust to 1.87.0 to accept `is_multiple_of` as a
stable function.
@gabrielbosio gabrielbosio marked this pull request as ready for review September 29, 2025 20:20
@tdelabro tdelabro merged commit 5254aa2 into main Sep 30, 2025
5 checks passed
@tdelabro tdelabro deleted the lambdaworks_0.13.0 branch September 30, 2025 13:48
gabrielbosio added a commit that referenced this pull request Oct 1, 2025
@tdelabro tdelabro mentioned this pull request Oct 6, 2025
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.

3 participants