metamaps--metamaps/realtime/node_modules/express/benchmarks/run

17 lines
196 B
Text
Raw Normal View History

2014-02-10 07:03:06 +00:00
#!/usr/bin/env bash
echo
MW=$1 node $2 &
pid=$!
sleep 2
wrk 'http://localhost:3333/?foo[bar]=baz' \
-d 3 \
-c 50 \
-t 8 \
| grep 'Requests/sec' \
| awk '{ print " " $2 }'
kill $pid