Skip to content

Performance Tests actions using LoadRunner

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.

Approach: first measure every transaction with one user on a full-size database to get the best possible time, then run the load test and compare against that baselineMeasure one user before many1 user, full-size databest possible timeper transactionThen loadcompare each transactionwith its 1-user baseline
Slow with one user means a code or query problem, not a capacity problem.

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

  1. Use the same scripts you will use for the load test, so results compare directly.
  2. Make sure the database has production-like volume. Many queries are fast on small tables and slow on big ones.
  3. Run each script with one user for several iterations, and discard the first (cold caches).
  4. 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.

RG

Raviteja Gorentla

Performance engineer writing since 2010 about LoadRunner, JMeter, NeoLoad, APM tools and the real problems that show up in load tests. Every fix here was tested on a live project.

Page views