Skip to content

Commit

Permalink
no need for black_box inside the setup
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Nov 23, 2023
1 parent 46c7461 commit 500aba9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/primitives/benches/integer_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ pub fn rank_select(c: &mut Criterion) {
|| {
let (index, element) =
integers_usize.iter().enumerate().choose(&mut thread_rng()).unwrap();
(
elias_fano::IntegerList::new_pre_sorted(black_box(&integers_usize)).0,
index,
*element,
)
(elias_fano::IntegerList::new_pre_sorted(&integers_usize).0, index, *element)
},
|(list, index, element)| {
let list = list.enable_rank();
Expand All @@ -57,7 +53,7 @@ pub fn rank_select(c: &mut Criterion) {
let (index, element) =
integers_u64.iter().enumerate().choose(&mut thread_rng()).unwrap();
(
reth_primitives::IntegerList::new_pre_sorted(black_box(&integers_u64)),
reth_primitives::IntegerList::new_pre_sorted(&integers_u64),
index as u64,
*element,
)
Expand Down

0 comments on commit 500aba9

Please sign in to comment.