Benchmark

Setup

Install:

  • VirtualBox
  • vagrant

Then simply:

$ pip install -r requirements.txt

Start VM1 (api)

vagrant up api

Start VM2 (service)

vagrant up service

Test 1

Hammer the server with the following route:

client -> VM1 -> VM2 -> client

python3 hammer.py -c 21 -n 50 --sleep 0 --endpoint service2

Test 2

Hammer the server with the following route:

client -> VM1 -> VM2 -> VM1 -> client

python3 hammer.py -c 21 -n 50 --sleep 0 --endpoint service