Skip to content
Myr

bench

This file

Path

support/bench

32 lines · 689 bytes

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 496ee40 point at it.

Merge branch 'master' of github.com:visionmedia/expressTJ Holowaychukbefore adoption496ee40

lines 1–32why, one step back
1#!/usr/bin/env bash
23NODE_ENV=production node ./support/app &4pid=$!56bench() {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}1213bench_conditional() {14 ab -n 5000 -c 50 -H "If-None-Match: $3" -k -q http://127.0.0.1:8000$1 \15 | grep "Requests per" \16 | cut -d ' ' -f 7 \17 | xargs echo "$2:"18}1920sleep .521bench / "Hello World"22bench /blog "Mounted Hello World"23bench /blog/admin "Mounted 2 Hello World"24bench /middleware "Middleware"25bench /match "Router"26bench /render "Render"27bench /json "JSON tiny"28bench /json/15 "JSON small"29bench /json/50 "JSON medium"30bench /json/150 "JSON large"3132kill -9 $pid