Skip to content

Commit

Permalink
fix another benchmark test
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Feb 15, 2023
1 parent b44e2fe commit c26b680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wasmi/benches/benches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <Linker<()>>::default();
let linker = <Linker<()>>::new(module.engine());
b.iter(|| {
let mut store = Store::new(module.engine(), ());
let _instance = linker.instantiate(&mut store, &module).unwrap();
Expand Down

0 comments on commit c26b680

Please sign in to comment.