koa-lite/benchmarks/run

17 lines
220 B
Text
Raw Normal View History

2013-08-17 07:15:57 +00:00
#!/usr/bin/env bash
echo
MW=$1 node --harmony-generators $2 &
pid=$!
sleep 2
wrk 'http://localhost:3000/?foo[bar]=baz' \
2013-08-17 07:15:57 +00:00
-r 2000 \
-c 50 \
-t 4 \
| grep 'Requests/sec' \
| awk '{ print " " $2 }'
kill $pid