started script to automate benchmarking

This commit is contained in:
Seth Samuel 2025-01-25 13:05:09 +13:00
parent 0bfe016fbe
commit 09e2f32c60
2 changed files with 21 additions and 0 deletions

16
benchmark Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
set -xeuv
testUrl=test.fluffyb.net
tcpConnections=50
testLength=15s
threads=1
proto=("http://", "https://")
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
done
done
#taskset -c $i wrk -t $threads -c $tcpConnections -d $testLength $testUrl/1kb.file &