Skip to content

Commit a0d63f1

Browse files
committed
chore: bench index map
1 parent 8b415ee commit a0d63f1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

benches/benchmark_repetitive_react_components.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3509,6 +3509,14 @@ pub fn benchmark_repetitive_react_components_map(b: &mut Bencher) {
35093509
});
35103510
}
35113511

3512+
pub fn benchmark_repetitive_react_components_index_map(b: &mut Bencher) {
3513+
let source = REPETITIVE_1K_REACT_COMPONENTS_SOURCE.clone();
3514+
3515+
b.iter(|| {
3516+
black_box(source.index_map(&ObjectPool::default(), &MapOptions::default()));
3517+
});
3518+
}
3519+
35123520
pub fn benchmark_repetitive_react_components_source(b: &mut Bencher) {
35133521
let source = REPETITIVE_1K_REACT_COMPONENTS_SOURCE.clone();
35143522

0 commit comments

Comments
 (0)