rsnext/bench/rendering
Tim Neutkens c1e5f5b260
Make traces in development reliable (#28990)
Co-authored-by: Jiachi Liu <inbox@huozhi.im>
2021-09-13 15:49:29 +02:00
..
pages Make traces in development reliable (#28990) 2021-09-13 15:49:29 +02:00
package.json Make traces in development reliable (#28990) 2021-09-13 15:49:29 +02:00
readme.md Make traces in development reliable (#28990) 2021-09-13 15:49:29 +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