Hacker News new | ask | show | jobs
by shp0ngle 1486 days ago
For fun, I tried this in go on M1 Mac (basically because benchmarking in go is so easy)

And... the two codes runs with exactly the same speed, on M1 Mac, with go.

edit: of course, with go, you can manually parallelize the faster option with goroutines... but that does something else, doesn't it. (and it's 500x faster.)

1 comments

Does the Go compiler auto-vectorise? Vectorisation appears to have been the cause of the weird performance.
No, I don't think so.