3 ms·
In slide #28 it is claimed that Go is as fast as Java. I don't use Java extensively but I always had the impression that was quite performant with the highly tu
by spystath 12y ago
In slide #28 it is claimed that Go is as fast as Java. I don't use Java extensively but I always had the impression that was quite performant with the highly tuned HotSpot and all even more so than Go. Are there any comparative benchmarks between Go and Java for similar-ish tasks? I get it that Go probably handles concurrency in a more elegant way but I have some doubts regarding raw performance. I am talking about the standard compiler implementation, not gccgo.
- NateDad 12y agohttp://benchmarksgame.alioth.debian.org/u64q/benchmark.php?test=all&lang=go&lang2=java&data=u64q http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t... Go is pretty close to java's speed. Generally slower, but not by a lot.
- NateDad 12y agoOh yeah, Java's garbage collector is a lot better than Go's, though Go's is improving. That being said, it's way easier to simply not create garbage in Go than it is in Java, so you can avoid the garbage collector entirely.
- igouy 12y agoslide #6 "Fake, fun numbers"