]> Cypherpunks repositories - gostls13.git/commit
regexp: skip long-running benchmarks if -short is specified
authorKeith Randall <khr@google.com>
Thu, 17 Oct 2019 19:31:53 +0000 (12:31 -0700)
committerKeith Randall <khr@golang.org>
Thu, 17 Oct 2019 19:53:52 +0000 (19:53 +0000)
commit9b8079158488120a0586d79ec57e0505fe0ec3eb
tree4273b97d39e5f78feadfde009c7ed5e93f3a5ea8
parentdc72a2f95feebcfe5ccbd50636b8f8db05587d5f
regexp: skip long-running benchmarks if -short is specified

This CL helps race.bash finish in a reasonable amount of
time. Otherwise the Match/Hard1/32M benchmark takes over 1200 seconds
to finish on arm64, triggering a timeout.  With this change the regexp
benchmarks as a whole take only about a minute.

Change-Id: Ie2260ef9f5709e32a74bd76f135bc384b2d9853f
Reviewed-on: https://go-review.googlesource.com/c/go/+/201742
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/regexp/exec_test.go