mitmproxy/test/bench/run
Aldo Cortesi b663a224a3 Improve benchmarking
- The benchmark addon now manages setting up and tearing down the backend and
traffic processes itself.
- Use wrk instead of hey. I get more consistent results with this tool, and hey
shows a strange tail-latency bump that seems artificial.
- Make termination behaviour simpler. The bencmark revealed a bug where .done
events were not called if the proxy was shut down by an addon.
2018-04-16 09:19:14 +12:00

4 lines
106 B
Bash
Executable File

#!/bin/sh
mkdir -p results
mitmdump -p0 -q --set benchmark_save_path=./results/mitmdump -s ./benchmark.py