Performance benchmarks and load testing

Benchmarking your application is important to see how the application performs under heavier traffic and load.

Apache HTTP server benchmarking tool

Very common benchmarking tool you can use is ab.

ab -c 10 -n 1000 http://localhost/


Stage and beta environments can be sometimes closed for public with HTTP authentication. To pass username and password:

ab -c 10 -n 1000 -A username:password


Siege is an http load testing and benchmarking tool. Its source code is available on GitHub.

siege -c 10 -r 100 -b -i http://localhost


Apache JMeter is a more feature rich load tester.


Gatling is a load tester with GUI.

HTTP keep-alive

HTTP keep-alive or HTTP persistent connections greatly improve performance. In performance testing you can enable them and get better results, however these vary from one testing software to another. Good practice is to disable them and get comparable results among the above tests.

Found a typo? Something wrong with this content?

Just fork and edit it.

Content of this work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. Code snippets in examples are published under the CC0 1.0 Universal (CC0 1.0). Thanks to all contributors.