Sign inSign up

normoes/loadtest_benchmark

By normoes

•Updated almost 7 years ago

docker image for running loadtest from within a docker container

Image
0

209

normoes/loadtest_benchmark repository overview

⁠loadtest docker image

I don't like to install every little program on my machine, so I like to run them from within docker containers.

This image can be used to run loadtest within a docker container like this:

    # using --rps (requests per seconds)
    docker run --rm normoes/loadtest_benchmark -c "loadtest -c 10 --rps 200 <some_URL>"
    # ab syntax
    docker run --rm normoes/loadtest_benchmark -c "loadtest -c 10 -n 10000 <some_URL>"

⁠syntax

The syntax is described at the loadtest npm package description⁠ website.

  • $ loadtest [-n requests] [-c concurrency] [-k] URL
  • $ loadtest <url> -c 10 --rps 10
    • --rps requests per second

    will send a total of 10 rps to the given URL, from 10 different clients (each client will send 1 request per second).

⁠compared to ab

The syntax is very similar, have a look at the loadtest npm package description⁠ website.

Tag summary

Content type

Image

Digest

Size

19 MB

Last updated

almost 7 years ago

docker pull normoes/loadtest_benchmark