💡No matter which Open JDK vendor you choose? ☕️🤔

Let's compare Oracle vs Eclipse Temurin. For my app (Spring Boot 3 + Mongo) diff is pretty significant:

Oracle: startup 12-13s, memory ~270M, 520req/s
Temurin: startup 8-9s, memory ~220M, 620req/s

See how I'm testing it 👇
I have a simple Spring Boot 3 🍃 app that connects to Mongo. Both app and db are running on Kubernetes. In my test I'm simulating 10 virtual users that continously send requests to the app (app inserts data to Mongo). Here's my app repo 👇
github.com/piomin/sample-…
I'm building the image from the source with Paketo Buildpacks (paketo.io/docs/howto/jav…) and Skaffold. Thanks to that I can simple switch between the vendors just by replacing buildpack in `skaffold.yaml`. Then I'm just running skaffold dev👇
(1/2) For load testing I'm using k6 (k6.io). I'm simulating 10 users sending reqs continuously for 60 seconds. Here's the result for Oracle OpenJDK (31k reqs -> 520r/s) 👇
(2/2) I'm simulating 10 users sending reqs continuously for 60 seconds also for Temurin. Here's the result for (37k reqs -> 620r/s) 👇
You can try it by yourself. Just clone the repo I provided in this thread. Then go to the `k8s` directory. The test is written in js (`load-tests.js` file). After deploying the app just run it as shown below. I'm curious what will be your result.
To read more about available JDK vendors and recommendations go to the site whichjdk.com

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Piotr Mińkowski

Piotr Mińkowski Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(