From f11fbfbd9fb90a84aaec9cc354bbbde0c20cdc25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Sun, 14 Jul 2024 15:21:20 +0900 Subject: [PATCH] Make benchmark more reliable --- crates/swc_allocator/benches/bench.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/swc_allocator/benches/bench.rs b/crates/swc_allocator/benches/bench.rs index 9c692c6e2a14..6b27b4bf26d7 100644 --- a/crates/swc_allocator/benches/bench.rs +++ b/crates/swc_allocator/benches/bench.rs @@ -70,21 +70,21 @@ fn bench_alloc(c: &mut Criterion) { }) } - c.bench_function("common/allocator/alloc/std/100000", |b| { - direct_alloc_std(b, 100000) + c.bench_function("common/allocator/alloc/std/1000000", |b| { + direct_alloc_std(b, 1000000) }); - c.bench_function("common/allocator/alloc/no-scope/100000", |b| { - direct_alloc_no_scope(b, 100000) + c.bench_function("common/allocator/alloc/no-scope/1000000", |b| { + direct_alloc_no_scope(b, 1000000) }); - c.bench_function("common/allocator/alloc/scoped/100000", |b| { - direct_alloc_scoped(b, 100000) + c.bench_function("common/allocator/alloc/scoped/1000000", |b| { + direct_alloc_scoped(b, 1000000) }); - c.bench_function("common/allocator/alloc/cached-no-scope/100000", |b| { - fast_alloc_no_scope(b, 100000) + c.bench_function("common/allocator/alloc/cached-no-scope/1000000", |b| { + fast_alloc_no_scope(b, 1000000) }); - c.bench_function("common/allocator/alloc/cached-scoped/100000", |b| { - fast_alloc_scoped(b, 100000) + c.bench_function("common/allocator/alloc/cached-scoped/1000000", |b| { + fast_alloc_scoped(b, 1000000) }); }