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 d8b88b1 commit d9457eaCopy full SHA for d9457ea
testing/patches/benchmark.patch
@@ -181,7 +181,7 @@ index 882859b..668e674 100644
181
} else {
182
- d := b.benchTime.d
183
- for n := int64(1); !b.failed && b.duration < d && n < 1e9; {
184
-+ warmupD := time.Millisecond * 500
++ warmupD := b.benchTime.d / 10
185
+ warmupN := int64(1)
186
+ for n := int64(1); !b.failed && b.duration < warmupD && n < 1e9; {
187
last := n
testing/testing/benchmark.go
@@ -425,7 +425,7 @@ func (b *B) launch() {
425
b.runN(b.benchTime.n)
426
}
427
428
- warmupD := time.Millisecond * 500
+ warmupD := b.benchTime.d / 10
429
warmupN := int64(1)
430
for n := int64(1); !b.failed && b.duration < warmupD && n < 1e9; {
431
0 commit comments