1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/bench
2017-10-29 04:25:32 +05:30
..
pages Add benchmarks for server rendering (#1294) 2017-02-27 12:04:41 -08:00
package.json Make sure benchmark runs in the production mode. 2017-10-29 04:25:32 +05:30
readme.md Add benchmarks for server rendering (#1294) 2017-02-27 12:04:41 -08: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