Before you run a big load test, measure each business transaction with a single user on a production-sized database. This "single-user performance test" or benchmark sets the best possible response time for the current setup, and it catches slow transactions early, when they are cheaper to fix.
Why one user first
If a customer search takes 15 seconds with only one user, adding load will not tell you anything new: the problem is in the code or the database, for example a missing index or a query tuned on a tiny dataset. Fix it first. Otherwise the load test will be full of noise from a problem you could have found in an hour.
How to run it
- Use the same scripts you will use for the load test, so results compare directly.
- Make sure the database has production-like volume. Many queries are fast on small tables and slow on big ones.
- Run each script with one user for several iterations, and discard the first (cold caches).
- Record the median and p90 per transaction as the baseline.
Using the baseline
- Any transaction already near its SLA with one user will fail under load. Raise it now.
- During the load test, compare each transaction with its baseline. The ones that degrade most point to the bottleneck.
- Rerun the baseline after each release. It is a cheap, fast regression check.
Frequently asked questions
Can I use a GUI tool for this?
Yes, browser-based tools measure what the user sees, including rendering. Protocol-level scripts are easier to reuse in the load test.
How many iterations are enough?
At least 10 to 20, so one slow run does not mislead you.