To run any framework you need:
-
Go to the framework directory. For example:
cd aiohttp
-
Start the server using a script:
bash start.sh
To stop the server script is used: bash stop.sh
The wrk library is used for benchmarking. Benchmarks ran with the following parameters
- Threads = 12 (total number of threads to use)
- Connections = 400 (total number of HTTP connections to keep open with each thread handling N = connections/threads)
- Duration = 30s (duration of the test)
To run the benchmark for current framework you should run the command:
wrk -t12 -c400 -d30s http://127.0.0.1:8080/db
In our article we have described the test results in detail. You can read it here.