commit | 1a0a09dafecddf2b63befda53aa5e54d74ce19e1 | [log] [tgz] |
---|---|---|
author | Rémy Oudompheng <oudomphe@phare.normalesup.org> | Wed Jul 04 00:38:01 2012 +0200 |
committer | Rémy Oudompheng <oudomphe@phare.normalesup.org> | Wed Jul 04 00:38:01 2012 +0200 |
tree | 85b14925fc13ff01472dd15fadab0c38b628bca5 | |
parent | 55cc1ff721aaf14b27df31efcf0295c4ff09e35a [diff] |
math/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 #3740. R=dave, golang-dev, r, r CC=golang-dev https://golang.org/cl/6348061