diff --git a/benchmarks/Makefile b/benchmarks/Makefile deleted file mode 100644 index ed1ddfc4f34..00000000000 --- a/benchmarks/Makefile +++ /dev/null @@ -1,17 +0,0 @@ - -all: - @./run 1 middleware 50 - @./run 5 middleware 50 - @./run 10 middleware 50 - @./run 15 middleware 50 - @./run 20 middleware 50 - @./run 30 middleware 50 - @./run 50 middleware 50 - @./run 100 middleware 50 - @./run 10 middleware 100 - @./run 10 middleware 250 - @./run 10 middleware 500 - @./run 10 middleware 1000 - @echo - -.PHONY: all diff --git a/benchmarks/README.md b/benchmarks/README.md deleted file mode 100644 index 1894c527d63..00000000000 --- a/benchmarks/README.md +++ /dev/null @@ -1,34 +0,0 @@ -# Express Benchmarks - -## Installation - -You will need to install [wrk](https://github.com/wg/wrk/blob/master/INSTALL) in order to run the benchmarks. - -## Running - -To run the benchmarks, first install the dependencies `npm i`, then run `make` - -The output will look something like this: - -``` - 50 connections - 1 middleware - 7.15ms - 6784.01 - - [...redacted...] - - 1000 connections - 10 middleware - 139.21ms - 6155.19 - -``` - -### Tip: Include Node.js version in output - -You can use `make && node -v` to include the node.js version in the output. - -### Tip: Save the results to a file - -You can use `make > results.log` to save the results to a file `results.log`. diff --git a/benchmarks/middleware.js b/benchmarks/middleware.js deleted file mode 100644 index fed97ba8ce4..00000000000 --- a/benchmarks/middleware.js +++ /dev/null @@ -1,20 +0,0 @@ - -var express = require('..'); -var app = express(); - -// number of middleware - -var n = parseInt(process.env.MW || '1', 10); -console.log(' %s middleware', n); - -while (n--) { - app.use(function(req, res, next){ - next(); - }); -} - -app.use(function(req, res){ - res.send('Hello World') -}); - -app.listen(3333); diff --git a/benchmarks/run b/benchmarks/run deleted file mode 100755 index ec8f55d5643..00000000000 --- a/benchmarks/run +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -echo -MW=$1 node $2 & -pid=$! - -echo " $3 connections" - -sleep 2 - -wrk 'http://localhost:3333/?foo[bar]=baz' \ - -d 3 \ - -c $3 \ - -t 8 \ - | grep 'Requests/sec\|Latency' \ - | awk '{ print " " $2 }' - -kill $pid