16 lines
205 B
Bash
Executable file
16 lines
205 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
echo
|
|
MW=$1 node --harmony-generators $2 &
|
|
pid=$!
|
|
|
|
sleep 2
|
|
|
|
wrk http://localhost:3000/ \
|
|
-r 2000 \
|
|
-c 50 \
|
|
-t 4 \
|
|
| grep 'Requests/sec' \
|
|
| awk '{ print " " $2 }'
|
|
|
|
kill $pid
|