Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Sep 25, 2023
1 parent 3e1455b commit 3586ceb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/torin/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ fn criterion_benchmark(c: &mut Criterion) {
return vec![];
}

let nodes = (level + 1..=(level + 1 * 3))
.map(|i| i + (1000 * level))
let nodes = (0..=(level + 1 * 3))
.map(|i| i + (1000 * (level + 1)))
.into_iter()
.collect::<Vec<usize>>();
for id in nodes.iter() {
Expand Down Expand Up @@ -477,7 +477,7 @@ fn criterion_benchmark(c: &mut Criterion) {
DirectionMode::Vertical,
),
);
layout.invalidate(1001);
layout.invalidate(8013);
layout.find_best_root(&mut mocked_dom);
layout.measure(
0,
Expand Down

0 comments on commit 3586ceb

Please sign in to comment.