diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-02-27 00:17:09 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-02-27 00:17:09 +0100 |
| commit | 5e573f0765570e0aaf6c9415b652b25d5bddebd9 (patch) | |
| tree | 5027b5c53413db89d40e6e87d30e09d07d5c2cc4 /crates/benchmarks/benches/fibonacci.rs | |
| parent | 0fa1bca956229fa49509524aa7edd087439ea39a (diff) | |
no more simd
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/benchmarks/benches/fibonacci.rs')
| -rw-r--r-- | crates/benchmarks/benches/fibonacci.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/benchmarks/benches/fibonacci.rs b/crates/benchmarks/benches/fibonacci.rs index 38bbde9..8a4dab2 100644 --- a/crates/benchmarks/benches/fibonacci.rs +++ b/crates/benchmarks/benches/fibonacci.rs @@ -17,10 +17,10 @@ fn run_wasmi(wasm: &[u8], iterations: i32, name: &str) { fn run_wasmer(wasm: &[u8], iterations: i32, name: &str) { use wasmer::*; - let engine: Engine = wasmer::Singlepass::default().into(); - let mut store = Store::default(); + let compiler = wasmer::Singlepass::default(); + let mut store = Store::new(compiler); let import_object = imports! {}; - let module = wasmer::Module::from_binary(&engine, wasm).expect("wasmer::Module::from_binary"); + let module = wasmer::Module::from_binary(&store, wasm).expect("wasmer::Module::from_binary"); let instance = Instance::new(&mut store, &module, &import_object).expect("Instance::new"); let fib = instance.exports.get_typed_function::<i32, i32>(&store, name).expect("get_function"); fib.call(&mut store, iterations).expect("call"); |
