Skip to content
Myr

bench

This file

Path

support/bench

15 lines · 265 bytes

Last changed by

bench against loopbackTj Holowaychukbefore adoptionad9bbda

History of this file

Take it

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