From 09e2f32c609514fe92e07ecbe203b3ca088647ac Mon Sep 17 00:00:00 2001 From: Seth Date: Sat, 25 Jan 2025 13:05:09 +1300 Subject: [PATCH] started script to automate benchmarking --- benchmark | 16 ++++++++++++++++ profile.save | 5 +++++ 2 files changed, 21 insertions(+) create mode 100755 benchmark create mode 100644 profile.save diff --git a/benchmark b/benchmark new file mode 100755 index 0000000..bc0d9ef --- /dev/null +++ b/benchmark @@ -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 & diff --git a/profile.save b/profile.save new file mode 100644 index 0000000..e785899 --- /dev/null +++ b/profile.save @@ -0,0 +1,5 @@ +#!/bin/bash +set -xeuv + +tcpConnections=50 +testLength=3m