News for hackers. Stuff that matters.
Re:Go 1.18 by jjtheblunt on Tuesday March 15, 2022 @07:41PM (#30693422)
> In fact kotlin/java has better peak performance than Go.

Says what benchmark?

Re:Go 1.18 by kitd on Wednesday March 16, 2022 @07:10AM (#30697399)
There are many benchmarks showing Java faster than Go. The trick is picking one that people agree is representative.

It shouldn't be surprising though. "Peak performance" doesn't include start-up time, and ignores memory. If you discount both those, there's no reason that JITted native code wouldn't be faster than a runtime that includes goroutine scheduling.

Re:Go 1.18 by jjtheblunt on Wednesday March 16, 2022 @04:12PM (#30703441)
unless goroutines aren't in use, which means the generated code probably matches what llvm and C would generate.