Skip to content

fix(bench): Update benchmarks for new BonsaiStorage::new API#45

Draft
Mohiiit wants to merge 1 commit intoupdate-starknet-types-corefrom
fix/benchmark-api-update
Draft

fix(bench): Update benchmarks for new BonsaiStorage::new API#45
Mohiiit wants to merge 1 commit intoupdate-starknet-types-corefrom
fix/benchmark-api-update

Conversation

@Mohiiit
Copy link
Copy Markdown
Member

@Mohiiit Mohiiit commented Jan 17, 2026

Summary

  • Fix benchmark compilation by updating to new BonsaiStorage::new API
  • Add max_height parameter to all BonsaiStorage::new calls
  • Remove .unwrap() as new() no longer returns Result
  • Add BitVec import and BENCH_KEY_HEIGHT constant

Background

The BonsaiStorage::new API was changed to require a max_height parameter, but the benchmarks were not updated, causing compilation failures when running cargo bench.

Test plan

  • cargo bench --features "bench std rocksdb" compiles and runs successfully

Generated with Claude Code

- Add max_height parameter to all BonsaiStorage::new calls
- Remove .unwrap() as new() no longer returns Result
- Add BitVec import
- Add BENCH_KEY_HEIGHT constant (48 bits for 6-byte keys)

The BonsaiStorage::new API was changed to require a max_height parameter,
but the benchmarks were not updated, causing compilation failures.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Mohiiit Mohiiit force-pushed the fix/benchmark-api-update branch from 2920902 to 0a9ce22 Compare January 18, 2026 10:28
@Mohiiit Mohiiit changed the base branch from oss to update-starknet-types-core January 18, 2026 10:28
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.

1 participant