DEV Community

Oleh Koren
Oleh Koren

Posted on Originally published at linkedin.com

Part 4: Not Warming Up the System Before Measuring

Hey, welcome back.

Last time we talked about think time — and why skipping it turns your load test into a machine gun.

Today's mistake is a bit different. The test setup is fine. The parameterization is there. Think time is in. But your results are still lying to you — right at the start.


⚠️ Your first numbers are always wrong. Most people don't know that.

Here's what happens when you hit "run" on a load test.

The application server spins up threads. The JVM warms up its JIT compiler. Database connection pools fill. Caches start loading. CDN edges wake up. All of this happens in the first minutes of your test — and it shows up in your response times as a spike that has nothing to do with your actual system capacity.

If you start measuring from the second one, you're measuring cold start behavior. Not steady state. Not production. A condition that almost never exists in real traffic.


What this looks like in practice

You run a 20-minute test. The first 3–4 minutes show 2–3x higher response times and elevated error rates. Then things stabilize.

If you average across the full run — those numbers pull your percentiles up and make the system look worse than it is. If you report on that spike without context — you're sending engineering teams to chase a ghost.

I've seen teams spend days investigating "performance degradation" that was just a cold JVM on test start.


🛠 The fix

Two things, and you need both.

First — add a ramp-up period before you start collecting measurements. Let the system reach steady state. Depending on your app, that's usually 3–5 minutes, sometimes more.

Second — exclude the warm-up window from your results. Most tools support this.

The exact window depends on your app. Check your monitoring — when CPU, memory, and response times flatten out, that's your steady state. Start measuring there.


✅ Quick checklist before your next run:

Does your test have a ramp-up period before peak load?
Are you excluding the first few minutes from your reported metrics?
Have you verified in your monitoring when the system actually stabilizes?

If you're measuring from warm-up — you're not measuring performance. You're measuring boot time.

That's Part 4. The system wasn't slow. It was just cold.


Warm-up is one of those things that's easy to fix once you know about it. But it's rarely the only gap.

In real projects, results like these get misread not just because of cold starts — but because of how tests are designed, what metrics get reported, and how load models are built in the first place.

If you want to build that foundation properly — not just fix individual mistakes but understand the full picture — I cover all of it systematically in Performance Testing Fundamentals on Udemy.


Part 5 is coming soon

👉 Follow for the next part.

Top comments (0)