Benchmarking
Benchmarking
Benchmarking is important if you want to measure how a change can affect the performance of your application. We provide a simple way to benchmark your application from the point of view of a user and contributor. The setup allows you to automate benchmarks in different branches and on different Node.js versions.
The modules we will use:
- Autocannon: A HTTP/1.1 benchmarking tool written in node.
- Branch-comparer: Checkout multiple git branches, execute scripts and log the results.
- Concurrently: Run commands concurrently.
- Npx: NPM package runner used to run scripts against different Node.js Versions and to execute local binaries. Shipped with npm@5.2.0.
Simple
Run the test in the current branch
npm run benchmark