Apache Bench (ab) command line http benchmarking tool
1.5K
A lightweight docker image that for running the Apache Bench (ab) command line http benchmarking tool
Show usage
docker run --rm tpittson/apache-bench
Simple example - 10 concurrent requests running for 30 seconds
docker run --rm tpittson/apache-bench -t 30 -c 10 https://www.google.co.uk/
If your target returns variable length responses use the -l flag so that these are not shown as failures
docker run --rm tpittson/apache-bench -t 30 -c 10 -l https://www.google.co.uk/
If you try and hit a URL on localhost it will actually try and connect internally within the container and fail. Instead of using localhost or 127.0.0.1 you can use host.docker.internal
docker run --rm tpittson/apache-bench -t 30 -c 10 -l http://host.docker.internal:8080/api/ping
Content type
Image
Digest
Size
5.7 MB
Last updated
about 6 years ago
docker pull tpittson/apache-bench