Skip to content
Myr

Added `make benchmark` for experimental continuous-benchmarking tool

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 4d8d5b1 · Browse files · 3 files+45 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

3 files+45 added−1 removed

  • other:+45 added−1 removed

3 files+45 added−1 removed

added:support/app.js+26 added
added:support/bench+15 added
1#!/usr/bin/env bash23node ./support/app &4pid=$!56bench() {7 ab -n 5000 -c 50 -k -q http://local:8000$1 | grep "Requests per" | cut -d ' ' -f 7 | xargs echo "$2:"8}910sleep .511bench / "Hello World"12bench /json "JSON"13bench /middleware "Middleware"1415kill -9 $pid
modified:Makefile+4 added-1 removed
27 unmodified lines
28 && git checkout gh-pages \29 && cp -fr /tmp/docs/* . \30 && echo "done"3132benchmark:33 @./support/bench3435docclean:36 rm -f docs/*.{1,html}3735.PHONY: site test test-cov docs docclean38.PHONY: site test test-cov benchmark docs docclean