Skip to content

Commit

Permalink
fix bench
Browse files Browse the repository at this point in the history
  • Loading branch information
2501babe committed Jan 7, 2025
1 parent 0cb7002 commit 2fb8527
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion accounts-db/benches/bench_lock_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ fn bench_entry_lock_accounts(c: &mut Criterion) {
group.bench_function(name.as_str(), move |b| {
b.iter(|| {
for batch in &transaction_batches {
// HANA TODO bench both. but ideally in a way where we can compare them? idk
let results =
accounts.lock_accounts(black_box(batch.iter()), MAX_TX_ACCOUNT_LOCKS);
accounts.lock_accounts(black_box(batch.iter()), MAX_TX_ACCOUNT_LOCKS, true);
accounts.unlock_accounts(batch.iter().zip(&results));
}
})
Expand Down

0 comments on commit 2fb8527

Please sign in to comment.