From c26b680f1821fa99ac11aadbe7065873f6d6be54 Mon Sep 17 00:00:00 2001 From: Robin Freyler Date: Wed, 15 Feb 2023 17:03:51 +0100 Subject: [PATCH] fix another benchmark test --- crates/wasmi/benches/benches.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/wasmi/benches/benches.rs b/crates/wasmi/benches/benches.rs index 023b1870e7..2e92d97722 100644 --- a/crates/wasmi/benches/benches.rs +++ b/crates/wasmi/benches/benches.rs @@ -113,7 +113,7 @@ fn bench_translate_erc1155(c: &mut Criterion) { fn bench_instantiate_wasm_kernel(c: &mut Criterion) { c.bench_function("instantiate/wasm_kernel", |b| { let module = load_module_from_file(WASM_KERNEL); - let linker = >::default(); + let linker = >::new(module.engine()); b.iter(|| { let mut store = Store::new(module.engine(), ()); let _instance = linker.instantiate(&mut store, &module).unwrap();