summaryrefslogtreecommitdiff
path: root/benchmarks/benches/selfhosted.rs
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/benches/selfhosted.rs')
-rw-r--r--benchmarks/benches/selfhosted.rs14
1 files changed, 7 insertions, 7 deletions
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))));
}
}