From c6ab0206cb68ee400203ce6126e429ac1efb67e3 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Mon, 3 Oct 2022 17:02:02 -0400 Subject: [PATCH] Adds a better test for benchmarking (#4966) * Rendering: speed up rendering of HTML chunks * Add a changeset * Remove the fix * remove the changeset --- .../astro/test/benchmark/simple/package.json | 3 +- .../benchmark/simple/src/pages/index.astro | 81 +++++++++++++++++-- 2 files changed, 77 insertions(+), 7 deletions(-) diff --git a/packages/astro/test/benchmark/simple/package.json b/packages/astro/test/benchmark/simple/package.json index d54f76f90..bec29ab55 100644 --- a/packages/astro/test/benchmark/simple/package.json +++ b/packages/astro/test/benchmark/simple/package.json @@ -2,7 +2,8 @@ "name": "@benchmark/simple", "scripts": { "start": "node server.mjs", - "build": "astro build" + "build": "astro build", + "dev": "astro dev" }, "dependencies": { "astro": "workspace:*", diff --git a/packages/astro/test/benchmark/simple/src/pages/index.astro b/packages/astro/test/benchmark/simple/src/pages/index.astro index 932ce3ea8..7e93d37a0 100644 --- a/packages/astro/test/benchmark/simple/src/pages/index.astro +++ b/packages/astro/test/benchmark/simple/src/pages/index.astro @@ -1,9 +1,78 @@ --- -import Layout from '../components/Layout.astro'; -const name = 'world'; + const content = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."; --- - -

index page

-

Hello {name}

-
+ + + + + + + Astro + + +

Astro

+
+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+

{content}

+
+ +