this post was submitted on 20 Jun 2023
275 points (96.3% liked)

Programmer Humor

32054 readers
1593 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Daniikk1012 2 points 1 year ago (1 children)

It doesn't perform worse tho - OpenJDK is developed by Oracle themselves, and Oracle JDK is literally built on top of that with a couple of extra pieces of proprietary stuff that most don't need + longer support

[–] joneskind 1 points 1 year ago (1 children)

https://www.baeldung.com/oracle-jdk-vs-openjdk

When it comes to performance, Oracle's is much better regarding responsiveness and JVM performance. It puts more focus on stability because of the importance it gives to its enterprise customers.

OpenJDK, in contrast, delivers releases more often. As a result, we can encounter problems with instability. Based on community feedback, we know some OpenJDK users have encountered performance issues.

[–] Simpsonator 1 points 1 year ago (1 children)

Do you have a source other than some random blog talking about Spring? Any kind of metrics? Is it 5%, 50%, etc slower? Is that just for Spring?

My group switched from Oracle JDK to a different open source JDK and the difference was either non-existent or too negligible to notice. I'll refute your blog's anecdotal evidence with my own.

In the end, we're comparing the top speed of two buses here. If performance is of primary importance for you, Java probably wasn't the right choice to begin with.

[–] joneskind 1 points 1 year ago (1 children)

There are tons of articles on the web. I just took the first I found on DuckDuckGo.

I'm glad to hear that you didn't find any issue when switching from Oracle JDK, and I won't debate your good faith nor the exactitude of your particular experience.

My point was to answer the Swift shitposting nonsense in the previous post.

[–] Simpsonator 1 points 1 year ago (1 children)

Here's an article with real data. It sure looks like OpenJDK is at least on par with Oracle. I think Oracle was much better 4-5 years ago and that's why you get a lot of results. https://www.diva-portal.org/smash/get/diva2:1597213/FULLTEXT01.pdf

All I see is shitposting on Java. I haven't seen one negative word about Swift. Can we agree that OpenJDK is both open source and performant? That's the only point I'm trying to make.

[–] joneskind 1 points 1 year ago

Can we agree that OpenJDK is (...) open source (...)?

Yes.

Can we agree that OpenJDK is both open source and performant?

I can't agree with something I don't know enough about, and about what I have read opposite statements and experiences.

I have no doubt that in some context, OpenJDK could perform as well as OracleJDK. Some APIs and methods can have been well written from the start. What I do know about software engineering though is that Alpha and Beta stages exist for some reasons.

I haven’t seen one negative word about Swift.

Seek for the root of the thread.