cmd/compile: simple integer computation loop is relatively slow #59366
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Build and run them:
$ go run main.go
$ clang -O3 main.c -o main && ./main
$ zig build-exe -O ReleaseFast main.zig && ./main
What did you expect to see?
Go should run as fast as C and Zig.
What did you see instead?
Go spent over 9 seconds, C (clang 14) and Zig (0.10.1) spent about 4 seconds.
The text was updated successfully, but these errors were encountered: