bench
This file
Path
support/bench
32 lines · 689 bytes
Last changed by
mergedTJ Holowaychukbefore adoption809e0b8
History of this fileTake it
The walk stopped after 200 commits: lines older than 2c14d0c point at it.
clean up weird whitespace in error-pages acceptance testsTJ Holowaychukbefore adoption2c14d0c
lines 1–2why, one step back1#!/usr/bin/env bash2render benchTJ Holowaychukbefore adoptiona169cc7
line 3why, one step back3NODE_ENV=production node ./support/app &clean up weird whitespace in error-pages acceptance testsTJ Holowaychukbefore adoption2c14d0c
lines 4–12why, one step back4pid=$!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}12Added conditional-GET support to res.send()TJ Holowaychukbefore adoptiona58e3de
lines 13–19why, one step back13bench_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}19clean up weird whitespace in error-pages acceptance testsTJ Holowaychukbefore adoption2c14d0c
lines 20–22why, one step back20sleep .521bench / "Hello World"22bench /blog "Mounted Hello World"more benchmarksTJ Holowaychukbefore adoptionb042339
line 23why, one step back23bench /blog/admin "Mounted 2 Hello World"clean up weird whitespace in error-pages acceptance testsTJ Holowaychukbefore adoption2c14d0c
lines 24–25why, one step back24bench /middleware "Middleware"25bench /match "Router"render benchTJ Holowaychukbefore adoptiona169cc7
line 26why, one step back26bench /render "Render"more benchmarksTJ Holowaychukbefore adoption430699c
lines 27–30why, one step back27bench /json "JSON tiny"28bench /json/15 "JSON small"29bench /json/50 "JSON medium"30bench /json/150 "JSON large"clean up weird whitespace in error-pages acceptance testsTJ Holowaychukbefore adoption2c14d0c
lines 31–32why, one step back3132kill -9 $pid