From fc76c1eeddc3b0e0be6a1cc0490fdd2b178c8875 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Thu, 13 Jun 2024 20:59:51 +0200 Subject: chore: update deps Signed-off-by: Henry Gressmann --- benchmarks/benches/selfhosted.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'benchmarks/benches/selfhosted.rs') diff --git a/benchmarks/benches/selfhosted.rs b/benchmarks/benches/selfhosted.rs index adac85a..16269b8 100644 --- a/benchmarks/benches/selfhosted.rs +++ b/benchmarks/benches/selfhosted.rs @@ -53,18 +53,18 @@ fn run_wasmer(wasm: &[u8]) { static TINYWASM: &[u8] = include_bytes!("../../examples/rust/out/tinywasm.opt.wasm"); fn criterion_benchmark(c: &mut Criterion) { { - let group = c.benchmark_group("selfhosted-parse"); - // group.bench_function("tinywasm", |b| { - // b.iter(|| tinywasm::Module::parse_bytes(black_box(TINYWASM)).expect("parse")) - // }); + let mut group = c.benchmark_group("selfhosted-parse"); + group.bench_function("tinywasm", |b| { + b.iter(|| tinywasm::Module::parse_bytes(black_box(TINYWASM)).expect("parse")) + }); } { let mut group = c.benchmark_group("selfhosted"); - // group.bench_function("native", |b| b.iter(run_native)); + group.bench_function("native", |b| b.iter(run_native)); group.bench_function("tinywasm", |b| b.iter(|| run_tinywasm(black_box(TINYWASM)))); - // group.bench_function("wasmi", |b| b.iter(|| run_wasmi(black_box(TINYWASM)))); - // group.bench_function("wasmer", |b| b.iter(|| run_wasmer(black_box(TINYWASM)))); + group.bench_function("wasmi", |b| b.iter(|| run_wasmi(black_box(TINYWASM)))); + group.bench_function("wasmer", |b| b.iter(|| run_wasmer(black_box(TINYWASM)))); } } -- cgit v1.3.1