rsnext/bench
Connor Davis 861edad459 Implement Recursive Delete (#6489)
Removes `rimraf` for a smaller custom lib

Benchmarks (in ms):
```
rimraf 1
518.536376
rimraf 2
416.112451
rimraf 3
451.905842
rimraf 4
525.117395
rimraf 5
434.230384
---- Average: 469.18ms
-----------
recursive delete 1
121.493979
recursive delete 2
130.335272
recursive delete 3
149.798316
recursive delete 4
182.184688
recursive delete 5
130.346207
--- Average: 142.83ms
```
`recursiveDelete` finishes in ~30% of the time it takes `rimraf` (3.3 times faster)
2019-03-05 14:01:42 +01:00
..
pages Add benchmarks for server rendering (#1294) 2017-02-27 12:04:41 -08:00
readdir Remove glob package (#6415) 2019-02-24 22:08:35 +01:00
recursive-delete Implement Recursive Delete (#6489) 2019-03-05 14:01:42 +01: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