koa-lite/benchmarks/run
Slobodan Stojanovic 6d3b81fe50 Update benchmark, remove --harmony flag and use arrow functions
closes 

Fix benchmark middleware - in promises body is on ctx not on this
2015-10-28 14:26:04 -07:00

16 lines
196 B
Bash
Executable file

#!/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