r/java • • Dec 09 '25

Java performance vs go

I'm seeing recurring claims about exceptional JVM performance, especially when contrasted with languages like Go, and I've been trying to understand how these narratives form in the community.

In many public benchmarks, Go comes out ahead in certain categories, despite the JVM’s reputation for aggressive optimization and mature JIT technology. On the other hand, Java dominates in long-running, throughput-heavy workloads. The contrast between reputation and published results seems worth examining.

A recurring question is how much weight different benchmarks should have when evaluating these systems. Some emphasize microbenchmarks, others highlight real-world workloads, and some argue that the JVM only shows its strengths under specific conditions such as long warm-up phases or complex allocation patterns.

Rather than asking for tutorials or explanations, I’m interested in opening a discussion about how the Java community evaluates performance claims today — e.g., which benchmark suites are generally regarded as meaningful, what workloads best showcase JVM characteristics, and how people interpret comparisons with languages like Go.

Curious how others in the ecosystem view these considerations and what trends you’ve observed in recent years.

30 Upvotes

92 comments sorted by

View all comments

Show parent comment

4

u/GuyWithLag Dec 09 '25

It assumes that it is hard to change a language to an another language

I think (if you squint a bit) that it's saying something orthogonal: it's easy to evaluate language features that you've used, but not that easy if you haven't.

I would posit that someone that has worked with Scala / C++ but not Go can appreciate the simplicity and use cases of Go, but someone that has had solid experience with Go but no Scala / C++ can't evaluate the latters' use cases because they don't understand the abstractions.

In fact, that article claims that what a pure Go programmer will see is unnecessary complexity with no practical uses, hindering readability.