Independent, non-commercial site. Not affiliated with, sponsored by, or endorsed by GoDaddy Inc. GODADDY is a trademark of its owner.

A Closer Look at Load Testing a Small Site

A single speed test shows how a server behaves when it is idle. A load test shows what happens when several people arrive at once, which is when hosting plans really differ.

Ground rules first

Only load test servers you own or have written permission to test. Sending heavy traffic to someone else's site can break their service and may breach the host's terms or the law. On shared hosting, even testing your own site can affect neighbors, so check the host's policy and keep tests short and modest. The hosting terms guide covers what acceptable-use policies typically say.

Tell the host in advance if the test will be large. Some providers ask for this, and it avoids your traffic being mistaken for an attack.

Choosing a tool

Free, well-documented tools cover most needs:

  • ApacheBench (ab) — ships with the Apache HTTP Server tools. Simple: ab -n 200 -c 5 https://your-site.example/ sends 200 requests, five at a time.
  • wrk — a small command-line tool that can drive many connections from one machine, for example wrk -t2 -c10 -d30s URL.
  • k6 — tests are written as short JavaScript files, which makes it easy to ramp load up and down and to visit several pages in sequence.

Run the tool from a machine that is not the server itself, and ideally from a location similar to your visitors.

A gentle procedure

  1. Pick one representative uncached page and one cached page.
  2. Start at a concurrency of one and record the median and 95th-percentile response time.
  3. Step up slowly (two, four, eight simultaneous users), holding each step for long enough to settle.
  4. Stop as soon as errors appear or the 95th percentile climbs sharply. That knee in the curve is the useful finding.
  5. Check the host's resource graphs and error logs for the same minutes.

Look at percentiles rather than averages. An average can stay flat while a growing minority of visitors wait much longer. Also look at the error count: a tool reporting high requests per second is meaningless if many of those responses were errors.

Reading the result

On a small dynamic site, the knee often arrives when every available application worker is busy and new requests start to queue. That is why the PHP workers note is a natural companion to this one. If cached pages stay flat while uncached pages climb, caching is doing its job and the limit is in the application layer. If both climb together, look at CPU, memory or network limits on the plan.

Write the results down with the date, plan, page, tool, tool settings and test location, and keep the raw output. A load test you can repeat after a change is worth far more than one impressive number.

Sources and further reading

  • Apache HTTP Server documentation — ab, the Apache HTTP server benchmarking tool.
  • wrk project README.
  • Grafana k6 documentation — test lifecycle and ramping executors.

Subscribe to Our Newsletter

An occasional email when a new note is published. No offers and no advertising.

No spam. Unsubscribe anytime. We respect your privacy.