File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,8 @@ func (b *B) runN(n int) {
227
227
b .previousN = n
228
228
b .previousDuration = b .duration
229
229
230
+ b .codspeedItersPerRound = append (b .codspeedItersPerRound , int64 (n ))
231
+
230
232
if b .loop .n > 0 && ! b .loop .done && ! b .failed {
231
233
b .Error ("benchmark function returned without B.Loop() == false (break or return in loop?)" )
232
234
}
@@ -280,7 +282,8 @@ var labelsOnce sync.Once
280
282
// subbenchmarks. b must not have subbenchmarks.
281
283
func (b * B ) run () {
282
284
labelsOnce .Do (func () {
283
- fmt .Fprintf (b .w , "Running with codspeed instrumentation\n " )
285
+ fmt .Fprintf (b .w , "Running with CodSpeed instrumentation\n " )
286
+
284
287
fmt .Fprintf (b .w , "goos: %s\n " , runtime .GOOS )
285
288
fmt .Fprintf (b .w , "goarch: %s\n " , runtime .GOARCH )
286
289
if b .importPath != "" {
@@ -375,7 +378,6 @@ func (b *B) launch() {
375
378
376
379
for range rounds {
377
380
b .runN (int (roundN ))
378
- b .codspeedItersPerRound = append (b .codspeedItersPerRound , int64 (roundN ))
379
381
}
380
382
}
381
383
}
You can’t perform that action at this time.
0 commit comments