Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
marc2332 committed Sep 24, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
marc2332 Marc Espin
1 parent ef8c373 commit 8c14d75
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions crates/torin/benches/bench.rs
Original file line number Diff line number Diff line change
@@ -103,10 +103,12 @@ fn criterion_benchmark(c: &mut Criterion) {
let id = (level * size) + *i;
let children = if level == depth - 1 {
vec![]
} else {
} else if *i == size_per_layer - 1 {
(1..101)
.map(move |i| i + ((level + 1) * size))
.collect::<Vec<usize>>()
} else {
vec![]
};

mocked_dom.add(
@@ -170,10 +172,12 @@ fn criterion_benchmark(c: &mut Criterion) {
let id = (level * 1000) + *i;
let children = if level == levels - 1 {
vec![]
} else {
} else if *i == 101 {
(1..101)
.map(move |i| i + ((level + 1) * 1000))
.collect::<Vec<usize>>()
} else {
vec![]
};

mocked_dom.add(
@@ -253,10 +257,12 @@ fn criterion_benchmark(c: &mut Criterion) {
let id = (level * 1000) + *i;
let children = if level == levels - 1 {
vec![]
} else {
} else if *i == 101 {
(1..101)
.map(move |i| i + ((level + 1) * 1000))
.collect::<Vec<usize>>()
} else {
vec![]
};

mocked_dom.add(
@@ -336,10 +342,12 @@ fn criterion_benchmark(c: &mut Criterion) {
let id = (level * 1000) + *i;
let children = if level == levels - 1 {
vec![]
} else {
} else if *i == 101 {
(1..101)
.map(move |i| i + ((level + 1) * 1000))
.collect::<Vec<usize>>()
} else {
vec![]
};

mocked_dom.add(

0 comments on commit 8c14d75

Please sign in to comment.