We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f2c82 commit e866beeCopy full SHA for e866bee
testing/testing/benchmark.go
@@ -243,6 +243,9 @@ func (b *B) submitAccumulatedTimestamps() {
243
b.codspeed.accumulatedEndTimestamps[i],
244
)
245
}
246
+ // Clear the accumulated timestamps after submitting
247
+ b.codspeed.accumulatedStartTimestamps = b.codspeed.accumulatedStartTimestamps[:0]
248
+ b.codspeed.accumulatedEndTimestamps = b.codspeed.accumulatedEndTimestamps[:0]
249
250
251
// SetBytes records the number of bytes processed in a single operation.
0 commit comments