Debian Codegraph @

benchmarks/run

raw
1 #!/usr/bin/env bash
2
3 echo
4 MW=$1 node $2 &
5 pid=$!
6
7 echo " $3 connections"
8
9 sleep 2
10
11 wrk 'http://localhost:3333/?foo[bar]=baz' \
12 -d 3 \
13 -c $3 \
14 -t 8 \
15 | grep 'Requests/sec\|Latency' \
16 | awk '{ print " " $2 }'
17
18 kill $pid