16 lines
209 B
Bash
Executable file
16 lines
209 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
echo
|
|
MW=$1 USE_ASYNC=$2 node $3 &
|
|
pid=$!
|
|
|
|
sleep 2
|
|
|
|
wrk 'http://localhost:3333/?foo[bar]=baz' \
|
|
-d 3 \
|
|
-c 50 \
|
|
-t 8 \
|
|
| grep 'Requests/sec' \
|
|
| awk '{ print " " $2 }'
|
|
|
|
kill $pid
|