0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/benchmark/bench
Emanuele Stoppa 9b5f3a702d
refactor: use vitest for benchmarks (#12605)
* refactor: use `vitest` for benchmarks

* increase timeout

* increase timeout

* Restore correct label
2024-12-03 17:03:24 +00:00
..
_template.js chore: fix linting warnings (#12526) 2024-11-26 13:06:04 +00:00
_util.js refactor: use vitest for benchmarks (#12605) 2024-12-03 17:03:24 +00:00
cli-startup.js chore: codspeed benchmark (#12347) 2024-11-06 12:33:14 +00:00
codspeed.bench.js refactor: use vitest for benchmarks (#12605) 2024-12-03 17:03:24 +00:00
memory.js [ci] format 2024-11-06 12:34:13 +00:00
README.md Refactor benchmark script (#6376) 2023-03-01 08:46:06 +00:00
render.js chore: codspeed benchmark (#12347) 2024-11-06 12:33:14 +00:00
server-stress.js chore: codspeed benchmark (#12347) 2024-11-06 12:33:14 +00: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.