wrk/benchmark
2025-01-25 15:07:35 +13:00

17 lines
482 B
Bash
Executable file

#!/bin/bash
set -xeuv
testUrl=test.fluffyb.net
tcpConnections=50
testLength=15s
threads=1
proto=("http://" "https://")
dataStore=$(pwd)/testData/$(date +%F-%H-%M)
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
done
done
#taskset -c $i wrk -t $threads -c $tcpConnections -d $testLength $testUrl/1kb.file &