rsnext/bench
matamatanot c922c6a3f4
Replace 'require' with 'import' in bench files and update dependancies (#25775)
## Feature

- [ ] Telemetry added. In case of a feature if it's used or not.

### Replace 'require' with 'import' in bench files
Node.js 12 allows you to use `import`.

### Update dependancies
https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md#breaking-changes

> Require Node.js v12+

For #25761, Node.js 12 is required. Therefore, there is no problem updating it. For benchmarking purposes, it would be reasonable to update to the latest version.
2021-06-04 14:30:52 +00:00
..
pages Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
readdir Replace 'require' with 'import' in bench files and update dependancies (#25775) 2021-06-04 14:30:52 +00:00
recursive-copy Replace 'require' with 'import' in bench files and update dependancies (#25775) 2021-06-04 14:30:52 +00:00
recursive-delete Replace 'require' with 'import' in bench files and update dependancies (#25775) 2021-06-04 14:30:52 +00:00
capture-trace.js Replace 'require' with 'import' in bench files and update dependancies (#25775) 2021-06-04 14:30:52 +00:00
package.json Replace 'require' with 'import' in bench files and update dependancies (#25775) 2021-06-04 14:30:52 +00:00
readme.md Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00

Next.js server-side benchmarks

Installation

Follow the steps in contributing.md

Both benchmarks use ab. So make sure you have that installed.

Usage

Before running the test:

npm run start

Then run one of these tests:

  • Stateless application which renders <h1>My component!</h1>. Runs 3000 http requests.
npm run bench:stateless
  • Stateless application which renders <li>This is row {i}</li> 10.000 times. Runs 500 http requests.
npm run bench:stateless-big