---
title: "Java 21 to 25: 22.7% increase in throughput (RPS) and a 20.1% reduction in average latency."
url: https://daily.dev/posts/java-21-to-25-22-7-increase-in-throughput-rps-and-a-20-1-reduction-in-average-latency--803tn2ccw
source_url: https://medium.com/trendyol-tech/java-21-to-25-22-7-increase-in-throughput-rps-and-a-20-1-reduction-in-average-latency-c5d7c5e7b78c
type: article
source: "Trendyol Tech"
published: 2026-07-10T19:25:47.275Z
updated: 2026-07-10T22:21:39.731Z
tags: ["performance", "java", "jvm"]
reading_time: 5
upvotes: 21
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Java 21 to 25: 22.7% increase in throughput (RPS) and a 20.1% reduction in average latency.

**[Trendyol Tech](https://daily.dev/sources/trendyoltech)** · 5 min read · 21 upvotes · 1 comments

## Summary

A real-world benchmarking report from Trendyol's International Payment team comparing Java 21 and Java 25 (LTS) performance. Upgrading to Java 25 delivered a 22.7% increase in throughput (RPS) and a 20.1% reduction in average latency, along with 63–120MB lower RAM usage and 50% less network data overhead. Key migration notes include enabling -XX:+UseCompactObjectHeaders (not on by default), upgrading Gradle to v9.1+ for Java 25 compatibility, and rebuilding rather than just swapping the runtime image to fully benefit from optimized class/data layout. Post-production rollout showed ~10% memory reduction.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/trendyol-tech/java-21-to-25-22-7-increase-in-throughput-rps-and-a-20-1-reduction-in-average-latency-c5d7c5e7b78c>

## Community discussion

Top comments from developers on daily.dev.

**@malochak** · 0 upvotes

> I’m running Kotlin/Spring app on shared resources, I was shocked how little ram it takes

---

Tags: [#performance](https://daily.dev/tags/performance), [#java](https://daily.dev/tags/java), [#jvm](https://daily.dev/tags/jvm)

[View this post on daily.dev](https://daily.dev/posts/java-21-to-25-22-7-increase-in-throughput-rps-and-a-20-1-reduction-in-average-latency--803tn2ccw)
