run (uses all cores, does some basic arithmetics) the purpose was to test speed of my laptops. When i compile and run it on my linux machine it runs for 49s. Then on my linux machine i compile for windows with GOOS=windows GOARCH=386 go build -o mult.exe mult.go. I transfer it onto my windows machine (which btw is much more powerfull) and run the program. It runs in around 3mins!!! Then i compile the program straight on the windows machine and run it again. Now it is suddenly 19s
So my question is: is cross-compile THAT bad? or am i missing something? thanks
that is crazy. maybe it just needed a warmup? if u re-run the cross compiled does it still take 3 min?
set goarch to amd64
Обсуждают сегодня