]> Cypherpunks repositories - gostls13.git/commit
Adds benchmark support to gotest.
authorTrevor Strohman <trevor.strohman@gmail.com>
Fri, 20 Nov 2009 00:35:34 +0000 (16:35 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 20 Nov 2009 00:35:34 +0000 (16:35 -0800)
commit61660adc6345f21ecd39f29985d13579963579d2
treeb1a6abab59e14f2f1f45065b4755cc7211568c5b
parent69039e5a5acc8415c05cf57eead75bb7a90bafdd
Adds benchmark support to gotest.

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
src/cmd/gotest/doc.go
src/cmd/gotest/gotest
src/pkg/testing/Makefile
src/pkg/testing/benchmark.go [new file with mode: 0644]
src/pkg/testing/regexp_test.go
src/pkg/testing/testing.go