c922c6a3f4
## 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. |
||
---|---|---|
.. | ||
pages | ||
readdir | ||
recursive-copy | ||
recursive-delete | ||
capture-trace.js | ||
package.json | ||
readme.md |
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