rsnext/bench
Joe Haddad b3170d2648
Format missed files (#7464)
* Format missed files

* Remove unnecessary rule

* Fix type error
2019-05-29 18:19:32 -07:00
..
pages Format missed files (#7464) 2019-05-29 18:19:32 -07:00
readdir Format missed files (#7464) 2019-05-29 18:19:32 -07:00
recursive-delete Format missed files (#7464) 2019-05-29 18:19:32 -07:00
package.json Make sure benchmark runs in the production mode. 2017-10-29 04:25:32 +05:30
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