Arquivos
express/benchmarks/run
T
2013-12-20 19:34:59 -08:00

17 linhas
217 B
Bash
Arquivo Executável

#!/usr/bin/env bash
echo
MW=$1 node --harmony-generators $2 &
pid=$!
sleep 2
wrk 'http://localhost:3333/?foo[bar]=baz' \
-d 3 \
-c 50 \
-t 4 \
| grep 'Requests/sec' \
| awk '{ print " " $2 }'
kill $pid