-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
math/rand: rand tests take a long time to run on arm5 #9732
Comments
Actually it's very slow on all arm platforms
|
The regression is pretty extreme, actually: ~30x slower. Numbers from an RPi. 1.4:
tip
Running a quick CPU profile shows lots of the new time being spent in Based on that, I wonder whether someone (GC?) is doing lots of floating point work where it wasn't before, and it's contending for the system stack in order to run floating point routines. I'll start doing a bisection to find the relevant commit. It'll take a while. :) |
stepflt is the floating point emulation routine. Is your Go compiled with
GOARM=5 somehow?
If it is, that might explain the huge performance regression.
|
oh, this issue is about the GOARM=5 case.
Always running software FP on system stack is definitely one of the reasons
for the performance regression.
|
GOARM=6 and GOARM=7 are also horribly slow. On Fri, Feb 6, 2015 at 8:34 AM, Minux Ma [email protected] wrote:
|
I think that in the switch to On Fri, Feb 6, 2015 at 8:34 AM, Dave Cheney [email protected] wrote:
|
Yes,
|
@davecheney yep. My bisection finally finished and pointed the finger at one of these commits: Do you think that there is a separate |
@josharian i'll fix the vfp detection in With
|
CL https://golang.org/cl/3973 mentions this issue. |
cmd/dist will re-exec itself to detect VFP support at run-time. Fixes #9732, #12548. Change-Id: I9ad0c5c7fa3e97bd79a32da372e1a962565bb3af Reviewed-on: https://go-review.googlesource.com/3973 Reviewed-by: Brad Fitzpatrick <[email protected]>
The
math/rand
tests take a very long time to run on platforms without an FPU. We've fixed the run time of this package a few times, however this package may have regressed while the arm5 builder was offlinelinux-arm-arm5:
The text was updated successfully, but these errors were encountered: