koa-lite/benchmarks/run

17 lines
217 B
Text
Raw Permalink 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
2013-08-28 23:26:58 +00:00
wrk 'http://localhost:3333/?foo[bar]=baz' \
2013-11-12 20:15:54 +00:00
-d 3 \
2013-08-17 07:15:57 +00:00
-c 50 \
2013-12-22 16:56:34 +00:00
-t 8 \
2013-08-17 07:15:57 +00:00
| grep 'Requests/sec' \
| awk '{ print " " $2 }'
kill $pid