express/benchmarks
2024-02-19 12:04:49 -05:00
..
Makefile bench: print latency and vary connections 2022-04-24 19:31:42 -04:00
middleware.js bench: remove unused parameter 2022-04-28 22:00:49 -04:00
README.md docs: add documentation for benchmarks 2024-02-19 12:04:49 -05:00
run bench: print latency and vary connections 2022-04-24 19:31:42 -04:00

Express Benchmarks

Installation

You will need to install wrk 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.