Skip to content

Commit 98e6fd1

Browse files
committed
fix(testing): benchTime is already in seconds
1 parent ee0a6bd commit 98e6fd1

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
@@ -389,7 +389,7 @@ func (b *B) launch() {
389389
b.codspeedTimePerRoundNs = make([]time.Duration, 0)
390390

391391
// Final run:
392-
benchD := time.Second * b.benchTime.d
392+
benchD := b.benchTime.d
393393
benchN := predictN(benchD.Nanoseconds(), int64(b.N), b.duration.Nanoseconds(), warmupN)
394394

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

0 commit comments

Comments
 (0)