These benchmarks have many flaws. Consider this thread: https://www.reddit.com/r/golang/comments/51mhzv/on_the_binar... The binary-trees benchmark would fare significantly better in Go if it were allowed to use an arena allocator like other implementations. But its not. This despite the fact that the Rust version literally uses one: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... . I guess because its…
Go is allowed to use an arena allocator.
>> I guess because its not in the stdlib in Go?
A popular third-party library implementation would be fine.
For example, couchbase/go-slab except that it doesn't seem to be a live project and there's no indication that it is actually used by the Go community.
>> so does C use malloc?
C using malloc -- https://benchmarksgame-team.pages.debian.net/benchmarksgame/...