Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (11 sloc) 0.261 kb
#!/usr/bin/env bash
node ./support/app &
pid=$!
bench() {
ab -n 5000 -c 50 -k -q http://local:8000$1 | grep "Requests per" | cut -d ' ' -f 7 | xargs echo "$2:"
}
sleep .5
bench / "Hello World"
bench /json "JSON"
bench /middleware "Middleware"
kill -9 $pid
Jump to Line
Something went wrong with that request. Please try again.