33 lines
1,023 B
Bash
Executable file
33 lines
1,023 B
Bash
Executable file
#!/bin/bash
|
|
set -xeuv
|
|
testUrl=test.fluffyb.net
|
|
tcpConnections=50
|
|
testLength=10s
|
|
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
|
|
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 -H 'Connection: close' -t $i -c $tcpConnections -d $testLength $pr$testUrl/0kb.file >> $dataStore$testReason.csv
|
|
done
|
|
done
|
|
|
|
#taskset -c $i wrk -t $threads -c $tcpConnections -d $testLength $testUrl/1kb.file &
|