zachleat / bench-framework-markdown

A set of scripts to test markdown processing speeds in various site generators/frameworks
34 stars 13 forks source link

update astro to v1 #9

Closed FredKSchott closed 2 years ago

FredKSchott commented 2 years ago

Like the title says, this bumps the Astro templates to v1.0.1 to get the latest and greatest speed improvements by @bholmesdev.

I also updated the astro-with-mdx benchmark, but since this is a test of .md files and not .mdx files I don't think that benchmark is really testing anything, aka the two benchmarks are basically identical and you should be safe to remove one.

zachleat commented 2 years ago

Awesome, thanks! I’ll re-run with the same hardware and leave an update here when the blog post is updated

zachleat commented 2 years ago

It’s live! https://www.zachleat.com/web/build-benchmark/

FredKSchott commented 2 years ago

Nice! Thanks for the quick update.

The rest of the slowdown seems to get exponentially worse as the project grows, which makes me think its our internal Vite bundler having to treat each page as a new entrypoint in a larger-and-larger graph. I think that's where we'll focus next.

FredKSchott commented 2 years ago

@zachleat curious: how much memory are you giving Node on the hardware you're running this on? Have you tried running with something like NODE_OPTIONS=--max-old-space-size=4096 or just using the Node defaults?

zachleat commented 2 years ago

Yeah, this is just using defaults—I think that makes the most sense for the context that most projects will operate in.