0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/benchmark/make-project
Matthew Phillips d469bebd7b
Improve Node.js performance using an AsyncIterable (#9614)
* Improve Node.js performance using an AsyncIterable

* Oops

* Get rid of extra abstraction

* Update .changeset/hip-cherries-behave.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

* Check if already resolved

* Resolve on done

* Get rid of unneeded "done"

* Done when length is zero

* Let errors resolve

* Update packages/astro/src/runtime/server/render/astro/render.ts

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Move doctype to top-level

* Document the new function

* Update .changeset/hip-cherries-behave.md

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Update .changeset/hip-cherries-behave.md

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-02-14 10:14:05 -05:00
..
_template.js Refactor benchmark script (#6376) 2023-03-01 08:46:06 +00:00
_util.js Add page render benchmark (#6415) 2023-03-06 22:55:44 +08:00
memory-default.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-default.js Improve Node.js performance using an AsyncIterable (#9614) 2024-02-14 10:14:05 -05:00
server-stress-default.js [ci] format 2023-08-25 13:02:36 +00:00

make-project

This make-project folder contains different files to programmatically create a new Astro project. They are created inside the projects folder and are gitignored. These projects are used by benchmarks for testing.

Each benchmark can specify the default project to run in its defaultProject export, but it can be overriden if --project <project-name> is passed through the CLI.

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