Skip to content
Myr

added `make benchmark` back

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 42aeab5 · Browse files · 2 files+19 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+19 added−1 removed

  • other:+19 added−1 removed

2 files+19 added−1 removed

added:support/bench+15 added
1#!/usr/bin/env bash23node ./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:"8}910sleep .511bench / "Hello World"12bench /json "JSON"13bench /middleware "Middleware"1415kill -9 $pid
modified:Makefile+4 added-1 removed
26 unmodified lines
2728docclean:29 rm -fr docs3031.PHONY: docs docclean site test test-acceptance31benchmark:32 @./support/bench3334.PHONY: docs docclean test test-acceptance benchmark