Sign inSign up

mocoso/apachebench

By mocoso

•Updated over 9 years ago

This is a quick image ready to run apachebench tests. It will be useful to execute load tests

Image
2

50K+

mocoso/apachebench repository overview

This is a quick image ready to run apachebench tests.

To run it, just execute

docker run apachebench  ab    -n 10 -c 10   http://yoururl.totest/

The basic sintax for apachebench:

ab -n <num_requests> -c <concurrency> <addr>:<port><path>

Kubernetes

In case you want to run this on kubernetes:

kubectl run  -i --rm --restart=Never  --image=mocoso/apachebench apachebench -- bash -c "ab   -n 10 -c 10   http://yoururl.totest/"

In case you want to run this on several dockers at the same time and using an authorization token:

kubectl run   --replicas=4  --image=mocoso/apachebench apachebench -- bash -c "ab -k -c 25 -n 22000 -H 'Authorization: Bearer $TOKENSTRING"

Tag summary

Content type

Image

Digest

Size

72.5 MB

Last updated

over 9 years ago

docker pull mocoso/apachebench