(Note · · 6 min read)
Your biggest customer signs on Monday
A system that has served twenty-person companies is about to serve one with ten thousand employees. Nothing in production has yet told you how it behaves there, and the first honest way to find out is to do it yourself, deliberately, before the customer does it accidentally.
By Md. Habibur Rahman Shohel, full-stack & AI product engineer in Dhaka
Seed the data before you send the traffic
Load testing against a near-empty database measures the wrong thing. Most failures at scale are about data volume — a query that scans a table, a report that aggregates everything, a page that loads rows it does not need. With a thousand rows present, all of them look fine.
Seed the volumes the customer will actually bring. For the payroll platform that meant 10,000 employees and 420,000 attendance records, because attendance is where the row count is and therefore where the slowdown lives.
Test the journeys, not the endpoints
Hitting one endpoint at high rate measures that endpoint. Users log in, open a dashboard, filter a list, open a record, submit something — and it is the combination that reveals contention, because those requests compete for the same connections and locks.
Include the expensive, infrequent operation deliberately: the payroll run, the month-end report, the bulk import. One of those running while everything else continues is the realistic worst case, and it is the one nobody schedules into the test.
Look for the point where it bends
Run steps of increasing concurrency and plot the response time. The useful output is not a single number but the shape: flat, then a knee where latency rises sharply. That knee is your capacity, and knowing where it is tells you whether the new customer sits comfortably inside it.
On the payroll platform, work driven by that curve moved p95 at 50 concurrent users from 1.9 seconds to 207 milliseconds and raised throughput from roughly 12–15 to about 22 requests a second per API core, with CPU per request down 36%. The knee moved from 25–50 users per core to 50–75.
Report the conditions or the numbers mean nothing
Those figures are a laptop benchmark on one API core, with zero errors, measured 16 November 2026 — and saying so is not a disclaimer, it is what makes them usable. A number without its conditions cannot be compared to anything, including a later run of the same test.
Record the hardware, the concurrency, the data volumes, the duration of each step, the error count and the date. Then re-run it after significant changes, so the comparison is against a known baseline rather than a memory.
Watch the system, not just the client
The load generator reports latency and errors. The answer to why is on the server: CPU, database connections in use, slow query log, queue depth, memory. Collect those during the run or you will know that it got slow at fifty users and nothing about the cause.
Error rate deserves equal billing with latency. A system that stays fast by refusing a tenth of requests has not passed, and a report quoting only response times will say that it did.
Fix the top cause, then measure again
Resist changing several things at once. The usual first causes are query count per request, a missing index, a connection pool too small for the concurrency, and work done per request that could be done once.
One change, one re-run, one recorded delta. That is slower than a batch of optimisations and it is the only way to know which of them helped — and which made things worse while the overall number improved.
Common questions
How do I load test before a big customer arrives?
Seed the data volumes they will bring first, since most failures at scale are about row counts, then drive realistic user journeys rather than single endpoints at increasing concurrency, and watch server metrics during the run — not just the load generator's numbers.
What should a load test measure?
The shape of the curve: response time against concurrency, so you can see the knee where latency rises sharply. That knee is your capacity. Error rate matters equally — a system staying fast by refusing requests has not passed.
Why report the conditions with benchmark figures?
Because a number without its conditions cannot be compared to anything, including a later run of the same test. Record hardware, concurrency, data volumes, step duration, error count and date — that is what makes the figure usable rather than decorative.
What usually causes the first bottleneck?
Query count per request, a missing index, a connection pool too small for the concurrency, and work repeated per request that could be done once. Change one thing, re-run, record the delta — a batch of changes hides which one helped.