Descriptionregexp: 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 issue 5837.
Patch Set 1 #Patch Set 2 : diff -r 353ca41927f1 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 353ca41927f1 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 353ca41927f1 https://go.googlecode.com/hg/ #
Total comments: 1
Patch Set 5 : diff -r 353ca41927f1 https://go.googlecode.com/hg/ #
Total comments: 1
Patch Set 6 : diff -r ee11148d2255 https://go.googlecode.com/hg/ #MessagesTotal messages: 11
|