Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Sep 24, 2023
1 parent 8c14d75 commit 1ead9af
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions crates/torin/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,7 @@ fn criterion_benchmark(c: &mut Criterion) {
for level in 0..levels {
for i in &children_ids {
let id = (level * 1000) + *i;
let children = if level == levels - 1 {
vec![]
} else if *i == 101 {
let children = if *i == 101 && level < levels - 1 {
(1..101)
.map(move |i| i + ((level + 1) * 1000))
.collect::<Vec<usize>>()
Expand Down Expand Up @@ -255,9 +253,7 @@ fn criterion_benchmark(c: &mut Criterion) {
for level in 0..levels {
for i in &children_ids {
let id = (level * 1000) + *i;
let children = if level == levels - 1 {
vec![]
} else if *i == 101 {
let children = if *i == 101 && level < levels - 1 {
(1..101)
.map(move |i| i + ((level + 1) * 1000))
.collect::<Vec<usize>>()
Expand Down Expand Up @@ -340,9 +336,7 @@ fn criterion_benchmark(c: &mut Criterion) {
for level in 0..levels {
for i in &children_ids {
let id = (level * 1000) + *i;
let children = if level == levels - 1 {
vec![]
} else if *i == 101 {
let children = if *i == 101 && level < levels - 1 {
(1..101)
.map(move |i| i + ((level + 1) * 1000))
.collect::<Vec<usize>>()
Expand Down

0 comments on commit 1ead9af

Please sign in to comment.