• Trevor Strohman's avatar
    Adds benchmark support to gotest. · 61660adc
    Trevor Strohman authored
    No benchmarks are run unless the --benchmarks=<regexp> flag
    is specified on the gotest command line.  This change includes
    sample benchmarks for regexp.
    
    % gotest --benchmarks=.*
    (standard test output redacted)
    testing.BenchmarkSimpleMatch	200000	      7799 ns/op
    testing.BenchmarkUngroupedMatch	20000	     76898 ns/op
    testing.BenchmarkGroupedMatch	50000	     38148 ns/op
    
    R=r, rsc
    https://golang.org/cl/154173
    61660adc
Name
Last commit
Last update
..
iotest Loading commit data...
quick Loading commit data...
script Loading commit data...
Makefile Loading commit data...
benchmark.go Loading commit data...
regexp.go Loading commit data...
regexp_test.go Loading commit data...
testing.go Loading commit data...