finalised script to run benchmark

This commit is contained in:
Seth Samuel 2025-02-04 17:06:30 +13:00
parent 8c6666a2bb
commit aeff3d23b8
10 changed files with 500 additions and 3 deletions

View file

@ -2,7 +2,7 @@
set -xeuv
testUrl=test.fluffyb.net
tcpConnections=50
testLength=60s
testLength=10s
proto=("http://" "https://")
dataStore=$(pwd)/testData/$(date +%F-%H-%M)
size=("1kb" "10kb" "100kb" "1000kb")
@ -26,7 +26,7 @@ do
for i in `seq 1 $(($(getconf _NPROCESSORS_ONLN)))`;
do
testReason="sslTest"
docker run --rm -v $(pwd)/scripts:/root/wrk/scripts git.sethsamuel.online/fluffy/wrk -s /root/wrk/scripts/report.lua -t $i -c $tcpConnections -d $testLength $pr$testUrl/$sz.file >> $dataStore$testReason.csv
docker run --rm -v $(pwd)/scripts:/root/wrk/scripts git.sethsamuel.online/fluffy/wrk -s /root/wrk/scripts/report.lua -H 'Connection: close' -t $i -c $tcpConnections -d $testLength $pr$testUrl/0kb.file >> $dataStore$testReason.csv
done
done