1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:34:51 -07:00
go/src/regexp
Brad Fitzpatrick f09d0458d3 regexp: don't run slow benchmarks on race builders
Shave 6.5 minutes off the *-race build time.

The *-race builders run:

    go test -short -race -run=^$ -benchtime=.1s -cpu=4 $PKG

... for each package with benchmarks.

The point isn't to measure the speed of the packages, but rather to
see if there are any races. (which is why a benchtime of 0.1 seconds
is used)

But running in race mode makes things slower and our benchmarks aren't
all very fast to begin with.

The regexp benchmarks in race were taking over 6.5 minutes. With this
CL, it's now 8 seconds.

Updates #17104

Change-Id: I054528d09b1568d37aac9f9b515d6ed90a5cf5b0
Reviewed-on: https://go-review.googlesource.com/29156
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-09-14 18:17:06 +00:00
..
syntax unicode: upgrade to version 9.0.0 2016-06-28 15:08:11 +00:00
testdata
all_test.go regexp: reduce mallocs in Regexp.Find* and Regexp.ReplaceAll*. 2016-09-06 17:04:31 +00:00
backtrack.go all: delete dead non-test code 2016-03-25 06:28:13 +00:00
example_test.go
exec2_test.go
exec_test.go regexp: don't run slow benchmarks on race builders 2016-09-14 18:17:06 +00:00
exec.go regexp: reduce mallocs in Regexp.Find* and Regexp.ReplaceAll*. 2016-09-06 17:04:31 +00:00
find_test.go
onepass_test.go
onepass.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
regexp.go regexp: reduce mallocs in Regexp.Find* and Regexp.ReplaceAll*. 2016-09-06 17:04:31 +00:00