diff --git a/script/performance/test_performance.sh b/script/performance/test_performance.sh new file mode 100755 index 0000000..5d642f0 --- /dev/null +++ b/script/performance/test_performance.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# test_performance.sh https://website.com + +#ulimit -n 200000 + +# (facultatif mais utile) sysctl temporaires pour la machine de test : +#sudo sysctl -w net.core.somaxconn=65535 +#sudo sysctl -w net.core.netdev_max_backlog=250000 +#sudo sysctl -w net.ipv4.ip_local_port_range="1024 65000" +#sudo sysctl -w net.ipv4.tcp_fin_timeout=15 + +for c in 25 50 100 200 400; do + echo "== Concurrency: $c ==" + #oha -z 30s -c $c $1 | tee -a results.txt + wrk -t$(nproc) -c$c -d30s "$1" | tee -a results.txt +done