|
Download next.js/bench/rendering/readme.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/bench/rendering/readme.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/bench/rendering/readme.md
-
curl -L -o readme.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/bench/rendering/readme.md
530 Bytes
| # Next.js server-side benchmarks | |
| ## Installation | |
| Follow the steps in [contributing.md](../../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 | |
| ``` | |