astro/benchmark/bench
Erika f14e48098a
nit: use node: prefix everywhere (#7692)
* nit: use `node:` prefix everywhere

* nit: fs/promises too

* test: workaround issue in node builtin detection
2023-07-18 02:17:59 +02:00
..
_template.js Refactor benchmark script (#6376) 2023-03-01 08:46:06 +00:00
_util.js Add CLI startup speed benchmark (#7617) 2023-07-10 23:43:01 +08:00
cli-startup.js nit: use node: prefix everywhere (#7692) 2023-07-18 02:17:59 +02:00
memory.js nit: use node: prefix everywhere (#7692) 2023-07-18 02:17:59 +02:00
README.md Refactor benchmark script (#6376) 2023-03-01 08:46:06 +00:00
render.js nit: use node: prefix everywhere (#7692) 2023-07-18 02:17:59 +02:00
server-stress.js nit: use node: prefix everywhere (#7692) 2023-07-18 02:17:59 +02:00

bench

This bench folder contains different benchmarking files that you can run via astro-benchmark <bench-file-name>, e.g. astro-benchmark memory. Files that start with an underscore are not benchmarking files.

Benchmarking files will run against a project to measure its performance, and write the results down as JSON in the results folder. The results folder is gitignored and its result files can be safely deleted if you're not using them.

You can duplicate _template.js to start a new benchmark test. All shared utilities are kept in _util.js.