3b5f18495b
* replace recursive-copy with own implementation * update yarn.lock * do not filter out not directories * do not fail if folder already exists * replace `\` by `/` when sending pathes to filter * use fs-extra only in tests * investigate and test recursive-copy npm module * improve test by creating fixtures programmatically * remove recursive-copy npm module test * add recursive-copy to bench * add bench:recursive-copy script * fix Sema import in recursive-copy.ts * small improvements |
||
---|---|---|
.. | ||
pages | ||
readdir | ||
recursive-copy | ||
recursive-delete | ||
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