middleware.js
This file
Path
benchmarks/middleware.js
20 lines · 312 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 76bf96e point at it.
deps: finalhandler@1.1.1Douglas Christopher Wilsonbefore adoption76bf96e
lines 1–20why, one step back12var express = require('..');3var app = express();45// number of middleware67var n = parseInt(process.env.MW || '1', 10);8console.log(' %s middleware', n);910while (n--) {11 app.use(function(req, res, next){12 next();13 });14}1516app.use(function(req, res, next){17 res.send('Hello World')18});1920app.listen(3333);