Skip to content

Commit 471e1da

Browse files
committed
save
1 parent 7528af1 commit 471e1da

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

execution/commitment/commitment_bench_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ func BenchmarkReplacePlainKeys_BufferReuse(b *testing.B) {
147147
b.Run("reuse-clone", func(b *testing.B) {
148148
var buf []byte
149149
for b.Loop() {
150-
result, newBuf, _ := enc.ReplacePlainKeys(buf[:0], replacer)
151-
buf = newBuf
152-
_ = common.Copy(result) // bytes.Clone equivalent
150+
_, buf, _ = enc.ReplacePlainKeys(buf[:0], replacer)
153151
}
154152
})
155153
}

0 commit comments

Comments
 (0)