[ADD] script performance: use tool to test request per second on website
This commit is contained in:
parent
de6d1b5eeb
commit
da779aa9e4
1 changed files with 16 additions and 0 deletions
16
script/performance/test_performance.sh
Executable file
16
script/performance/test_performance.sh
Executable file
|
|
@ -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
|
||||
Loading…
Reference in a new issue