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