• Marcel van Lohuizen's avatar
    testing: probe with N=1 · 31e5d835
    Marcel van Lohuizen authored
    Change control flow to probe with N=1. This calls benchFunc
    the same number of times as the old implementation in the
    absence of subbenchmarks.
    
    To be compatible with existing tools, benchmarking only
    prints a line for "leaf" benchmarks. This means, though, that
    the name of a benchmark can only be printed after the first
    iteration.
    
    Issue #14863
    
    Change-Id: Ic7b9b89b058f8ebb5287755f24f9e47df8c9537c
    Reviewed-on: https://go-review.googlesource.com/21043
    Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    31e5d835
sub_test.go 10.2 KB