outputs single results to file

This commit is contained in:
Seth Samuel 2025-02-02 08:52:20 +13:00
parent 78763b5b6d
commit 8c6666a2bb
15 changed files with 1292 additions and 3 deletions

View file

@ -2,16 +2,32 @@
set -xeuv
testUrl=test.fluffyb.net
tcpConnections=50
testLength=15s
threads=1
testLength=60s
proto=("http://" "https://")
dataStore=$(pwd)/testData/$(date +%F-%H-%M)
size=("1kb" "10kb" "100kb" "1000kb")
testReason=""
for pr in ${proto[@]};
do
for i in `seq 1 $(($(getconf _NPROCESSORS_ONLN)))`;
do
docker run --rm git.sethsamuel.online/fluffy/wrk -t $i -c $tcpConnections -d $testLength --latency $pr$testUrl/1kb.file >> $dataStore
for sz in ${size[@]};
do
testReason="requestsAndThroughput"
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
done
done
done
for pr in ${proto[@]};
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
done
done
#taskset -c $i wrk -t $threads -c $tcpConnections -d $testLength $testUrl/1kb.file &