Re:Go performance from version 1.2 to 1.18
by peakaboo on Friday February 04, 2022 @02:02AM
(#30203673)
Rust gives many times more performance than go but is harder to learn:
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
[ Parent
| on HN ]
Re:Go performance from version 1.2 to 1.18
by usrbinbash on Friday February 04, 2022 @02:28AM
(#30203833)
Yeah, about such benchmarks:
Re:Go performance from version 1.2 to 1.18
by marcus_cemes on Friday February 04, 2022 @04:32AM
(#30204660)
I kind of have to agree with the guy there, it would be kind of trash if everyone just inlined assembly instructions. Manual SIMD already feels a bit like cheating. Ideally, there should be two solution categories, idiomatic solutions and optimised solutions. I would prefer if the idiomatic solutions matched what the average programmer would write.
I think we worry about performance far too much when choosing a language. However, when performance is important, it's important to recognise the different classes of languages, say {Go, Rust, C} vs {Python, JS, Ruby} in terms of speed and memory footprint vs productivity.
Re:Go performance from version 1.2 to 1.18
by usrbinbash on Friday February 04, 2022 @05:12AM
(#30204919)
No inlining of assembly is required to vastly improve the performance of Go in many such benchmarks. Pool or Arena Allocation are commonly used techniques and whether or not they are "idiomatic" isn't even up for discussion any more since the stdlib includes the former.
Re:Go performance from version 1.2 to 1.18
by igouy on Friday February 04, 2022 @01:45PM
(#30211141)
> … stdlib includes the former.
sync.Pool — binary-trees Go #6 program
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
----
Go does provide GC