From 0bbb49523641b917f590dc9b96ad9846c6d7ef5d Mon Sep 17 00:00:00 2001 From: Nate Berkopec Date: Wed, 2 Oct 2019 22:53:03 +0200 Subject: [PATCH] Start of a benchmark folder --- benchmarks/wrk/hello.sh | 8 ++++++++ benchmarks/wrk/more_conns_than_threads.sh | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100755 benchmarks/wrk/hello.sh create mode 100755 benchmarks/wrk/more_conns_than_threads.sh diff --git a/benchmarks/wrk/hello.sh b/benchmarks/wrk/hello.sh new file mode 100755 index 00000000..56a52125 --- /dev/null +++ b/benchmarks/wrk/hello.sh @@ -0,0 +1,8 @@ +# You are encouraged to use @ioquatix's wrk fork, located here: https://github.com/ioquatix/wrk + +bundle exec bin/puma -t 5 test/rackup/hello.ru & +PID1=$! +sleep 5 +wrk -c 5 --latency http://localhost:9292 + +kill $PID1 diff --git a/benchmarks/wrk/more_conns_than_threads.sh b/benchmarks/wrk/more_conns_than_threads.sh new file mode 100755 index 00000000..7ff47890 --- /dev/null +++ b/benchmarks/wrk/more_conns_than_threads.sh @@ -0,0 +1,6 @@ +bundle exec bin/puma -t 5 test/rackup/hello.ru & +PID1=$! +sleep 5 +wrk -c 10 --latency http://localhost:9292 + +kill $PID1