regexp: use a very fast random generator for benchmarks.
Calls into math/rand are very slow, especially under race detector because of heap accesses. go test -bench . -run none -benchtime .1s Before: 23.0s After: 17.4s Fixes #5837. R=golang-dev, dave, r CC=golang-dev https://golang.org/cl/11564044
Showing
Please register or sign in to comment