diff --git a/crates/benches/wasm_opcodes.rs b/crates/benches/wasm_opcodes.rs index add5d4dd14..d0481adfcf 100644 --- a/crates/benches/wasm_opcodes.rs +++ b/crates/benches/wasm_opcodes.rs @@ -553,8 +553,26 @@ fn bench_functions() -> Vec { ), instruction, }, - GetLocal(_) | GetGlobal(_) | CurrentMemory(_) | I32Const(_) - | I64Const(_) | F32Const(_) | F64Const(_) => WatBuilder { + GetLocal(var) => WatBuilder { + wat: format!( + r#" + local.get {var} + drop + "# + ), + instruction, + }, + GetGlobal(var) => WatBuilder { + wat: format!( + r#" + global.get {var} + drop + "# + ), + instruction, + }, + CurrentMemory(_) | I32Const(_) | I64Const(_) | F32Const(_) + | F64Const(_) => WatBuilder { wat: format!( r#" {instruction} @@ -563,11 +581,20 @@ fn bench_functions() -> Vec { ), instruction, }, - SetLocal(_) | SetGlobal(_) => WatBuilder { + SetLocal(var) => WatBuilder { wat: format!( r#" i32.const 10 - {instruction} + local.set {var} + "# + ), + instruction, + }, + SetGlobal(var) => WatBuilder { + wat: format!( + r#" + i32.const 10 + global.set {var} "# ), instruction,