Performance: Astro vs Next.js vs Gatsby comparison
This comparison affects page load speed, rendering performance, and user experience by showing how each framework handles rendering and asset delivery.
Astro with partial hydration and mostly static HTML output
Next.js with heavy client-side React hydration on every page| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Astro partial hydration | Minimal DOM nodes for JS | 1 reflow per page load | Low paint cost | [OK] Good |
| Next.js full React hydration | Many DOM nodes hydrated | Multiple reflows during hydration | Medium paint cost | [!] OK |
| Gatsby large GraphQL bundles | DOM nodes depend on data size | Reflows depend on bundle size | High paint cost | [X] Bad |
Pass the test and this pattern moves unknown