☰
Debian Codegraph
@
5.2.1+~cs12.3.9-1
5.1.0+~cs12.3.3-1
/
/
benchmarks
/
run
☽
☼
benchmarks/run
code
plain
raw
Expat
2009-2014, TJ Holowaychuk <
[email protected]
>; 2013-2014, Roman Shtylman <
[email protected]
>; 2014-2015, Douglas Christopher Wilson <
[email protected]
>
debian/copyright
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