Skip to content
Myr

more benchmarks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 85fc586 · Browse files · 2 files+16 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+16 added−1 removed

  • other:+16 added−1 removed

2 files+16 added−1 removed

modified:support/app.js+11 added
modified:support/bench+5 added-1 removed
2 unmodified lines
3node ./support/app &4pid=$!56bench() {7 ab -n 5000 -c 50 -k -q http://127.0.0.1:8000$1 | grep "Requests per" | cut -d ' ' -f 7 | xargs echo "$2:"7 ab -n 5000 -c 50 -k -q http://127.0.0.1:8000$1 \8 | grep "Requests per" \9 | cut -d ' ' -f 7 \10 | xargs echo "$2:"11}1213sleep .514bench / "Hello World"15bench /json "JSON"16bench /middleware "Middleware"17bench /match "Router"1819kill -9 $pid