From d92e3fa596f4e276bbff5aa04b1de7904c0875cd Mon Sep 17 00:00:00 2001 From: vshakitskiy Date: Sat, 25 Oct 2025 17:45:53 +0300 Subject: [PATCH] adjust scripts --- benchmarks/client.sh | 14 ++++++++++++++ benchmarks/exec.sh | 5 ----- benchmarks/server.sh | 10 ++++++++++ 3 files changed, 24 insertions(+), 5 deletions(-) create mode 100755 benchmarks/client.sh delete mode 100755 benchmarks/exec.sh create mode 100755 benchmarks/server.sh diff --git a/benchmarks/client.sh b/benchmarks/client.sh new file mode 100755 index 0000000..5b52810 --- /dev/null +++ b/benchmarks/client.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +threads=(1 2 4 6 8 10 12 14 16) +target=http://0.0.0.0:8080 + +# ewe +echo "Slight delay to let ewe server start..." +sleep 4 + +echo "Running ewe benchmarks..." +for thread in "${threads[@]}"; do + echo "$thread threads, $(($thread * 2)) total connections..." + h2load --h1 --no-tls-proto=http/1.1 -D 30 "$target/hello" -t $thread -c $(($thread * 2)) > "_output/ewe_$thread.txt" +done diff --git a/benchmarks/exec.sh b/benchmarks/exec.sh deleted file mode 100755 index 425303b..0000000 --- a/benchmarks/exec.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -target=http://0.0.0.0:8080 - -h2load --h1 --no-tls-proto=http/1.1 -D 30 "$target/hello" -t 12 -c 12 > "_output/ewe.txt" \ No newline at end of file diff --git a/benchmarks/server.sh b/benchmarks/server.sh new file mode 100755 index 0000000..1ba9fb3 --- /dev/null +++ b/benchmarks/server.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +echo "Running ewe server..." +cd ewe && gleam run -m app & sleep 1 + +echo "Running benchmarks..." +sleep 275 + +echo "Killing ewe server..." +kill $(lsof -t -i:8080) \ No newline at end of file -- 2.51.2