Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 14, 2024
1 parent 89413d1 commit 93d9b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/swc_allocator/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ fn bench_alloc(c: &mut Criterion) {
b.iter(|| {
let allocator = Allocator::default();

let mut vec = swc_allocator::vec::Vec::new();

allocator.scope(|| {
let mut vec = swc_allocator::vec::Vec::new();

for i in 0..times {
let item: swc_allocator::boxed::Box<usize> =
black_box(swc_allocator::boxed::Box::new(black_box(i)));
Expand Down

0 comments on commit 93d9b1e

Please sign in to comment.