Skip to content

Commit c979e15

Browse files
committed
fix(testing): benchTime is already in seconds
1 parent ca2f5f7 commit c979e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/testing/benchmark.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ func (b *B) launch() {
429429
b.codspeed.accumulatedEndTimestamps = make([]uint64, 0)
430430

431431
// Final run:
432-
benchD := time.Second * b.benchTime.d
432+
benchD := b.benchTime.d
433433
benchN := predictN(benchD.Nanoseconds(), int64(b.N), b.duration.Nanoseconds(), warmupN)
434434

435435
// When we have a very slow benchmark (e.g. taking 500ms), we have to:

0 commit comments

Comments
 (0)