Descriptionmath/rand: avoid use of math.Pow in tests.
The use of math.Pow for mere squaring can be extremely
slow on soft-float ARM. Even on systems with hardware
floating-point, a speedup in test duration is observed.
On amd64
Before: ok math/rand 2.009s
After: ok math/rand 0.340s
Fixes issue 3740.
Patch Set 1 #Patch Set 2 : diff -r 3909e0071e70 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 3909e0071e70 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 6e5762cf9a29 https://go.googlecode.com/hg/ #MessagesTotal messages: 6
|