diff --git a/common/crypto/benchmark_test.go b/common/crypto/benchmark_test.go index ba52d789..054e6c1b 100644 --- a/common/crypto/benchmark_test.go +++ b/common/crypto/benchmark_test.go @@ -13,6 +13,7 @@ func benchmarkStream(b *testing.B, c cipher.Stream) { b.SetBytes(benchSize) input := make([]byte, benchSize) output := make([]byte, benchSize) + b.ResetTimer() for i := 0; i < b.N; i++ { c.XORKeyStream(output, input) }