Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: disable streaming in SSG #9603

Closed
wants to merge 2 commits into from
Closed

Conversation

ematipico
Copy link
Member

Changes

Disable streaming in case we do an SSG build.

Internally, we noticed disabling streaming in certain projects yields to better build times.

Testing

Manual testing and launch the benchmark job

Docs

N/A

Copy link

changeset-bot bot commented Jan 4, 2024

⚠️ No Changeset found

Latest commit: a79a834

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Jan 4, 2024
@ematipico
Copy link
Member Author

!preview ssg-no-streaming

@ematipico
Copy link
Member Author

!bench

@ematipico
Copy link
Member Author

!bench memory

Copy link
Contributor

github-actions bot commented Jan 4, 2024

Snapshots have been released for the following packages:

  • astro@experimental--ssg-no-streaming
  • create-astro@experimental--ssg-no-streaming
Publish Log
🦋  warn ===============================IMPORTANT!===============================
🦋  warn Packages will be released under the experimental--ssg-no-streaming tag
🦋  warn ----------------------------------------------------------------------
🦋  info npm info astro
🦋  info npm info @astrojs/prism
🦋  info npm info @astrojs/rss
🦋  info npm info create-astro
🦋  info npm info @astrojs/alpinejs
🦋  info npm info @astrojs/lit
🦋  info npm info @astrojs/markdoc
🦋  info npm info @astrojs/mdx
🦋  info npm info @astrojs/node
🦋  info npm info @astrojs/partytown
🦋  info npm info @astrojs/preact
🦋  info npm info @astrojs/react
🦋  info npm info @astrojs/sitemap
🦋  info npm info @astrojs/solid-js
🦋  info npm info @astrojs/svelte
🦋  info npm info @astrojs/tailwind
🦋  info npm info @astrojs/vercel
🦋  info npm info @astrojs/vue
🦋  info npm info @astrojs/internal-helpers
🦋  info npm info @astrojs/markdown-remark
🦋  info npm info @astrojs/telemetry
🦋  info npm info @astrojs/underscore-redirects
🦋  info npm info @astrojs/upgrade
🦋  info astro is being published because our local version (0.0.0-ssg-no-streaming-20240104090316) has not been published on npm
🦋  warn @astrojs/prism is not being published because version 3.0.0 is already published on npm
🦋  warn @astrojs/rss is not being published because version 4.0.1 is already published on npm
🦋  info create-astro is being published because our local version (0.0.0-ssg-no-streaming-20240104090316) has not been published on npm
🦋  warn @astrojs/alpinejs is not being published because version 0.3.2 is already published on npm
🦋  warn @astrojs/lit is not being published because version 4.0.1 is already published on npm
🦋  warn @astrojs/markdoc is not being published because version 0.8.2 is already published on npm
🦋  warn @astrojs/mdx is not being published because version 2.0.3 is already published on npm
🦋  warn @astrojs/node is not being published because version 7.0.4 is already published on npm
🦋  warn @astrojs/partytown is not being published because version 2.0.3 is already published on npm
🦋  warn @astrojs/preact is not being published because version 3.0.2 is already published on npm
🦋  warn @astrojs/react is not being published because version 3.0.9 is already published on npm
🦋  warn @astrojs/sitemap is not being published because version 3.0.4 is already published on npm
🦋  warn @astrojs/solid-js is not being published because version 3.0.3 is already published on npm
🦋  warn @astrojs/svelte is not being published because version 5.0.3 is already published on npm
🦋  warn @astrojs/tailwind is not being published because version 5.1.0 is already published on npm
🦋  warn @astrojs/vercel is not being published because version 6.1.2 is already published on npm
🦋  warn @astrojs/vue is not being published because version 4.0.7 is already published on npm
🦋  warn @astrojs/internal-helpers is not being published because version 0.2.1 is already published on npm
🦋  warn @astrojs/markdown-remark is not being published because version 4.0.1 is already published on npm
🦋  warn @astrojs/telemetry is not being published because version 3.0.4 is already published on npm
🦋  warn @astrojs/underscore-redirects is not being published because version 0.3.3 is already published on npm
🦋  warn @astrojs/upgrade is not being published because version 0.2.2 is already published on npm
🦋  info Publishing "astro" at "0.0.0-ssg-no-streaming-20240104090316"
🦋  info Publishing "create-astro" at "0.0.0-ssg-no-streaming-20240104090316"
🦋  success packages published successfully:
🦋  [email protected]
🦋  [email protected]
🦋  Creating git tags...
🦋  New tag:  [email protected]
🦋  New tag:  [email protected]
Build Log

> [email protected] build /home/runner/work/astro/astro
> turbo run build --filter=astro --filter=create-astro --filter="@astrojs/*" --filter="@benchmark/*"

• Packages in scope: @astrojs/alpinejs, @astrojs/cloudflare, @astrojs/internal-helpers, @astrojs/lit, @astrojs/markdoc, @astrojs/markdown-remark, @astrojs/mdx, @astrojs/netlify, @astrojs/node, @astrojs/partytown, @astrojs/preact, @astrojs/prism, @astrojs/react, @astrojs/rss, @astrojs/sitemap, @astrojs/solid-js, @astrojs/svelte, @astrojs/tailwind, @astrojs/telemetry, @astrojs/underscore-redirects, @astrojs/upgrade, @astrojs/vercel, @astrojs/vue, @benchmark/timer, astro, create-astro
• Running build in 26 packages
• Remote caching enabled
::group::@astrojs/prism:build
cache hit, suppressing logs 3aa7f82954d2c6a4
::endgroup::
::group::@astrojs/internal-helpers:build
cache hit, suppressing logs dcd2e47ddeb4319c
::endgroup::
::group::@astrojs/upgrade:build
cache hit, suppressing logs 87f52b7a0803dd23
::endgroup::
::group::@astrojs/telemetry:build
cache hit, suppressing logs c98d31a4b10de42a
::endgroup::
::group::@astrojs/markdown-remark:build
cache hit, suppressing logs c08381de7599ea31
::endgroup::
::group::create-astro:build
cache miss, executing b5c458e0e426ddbe

> [email protected] build /home/runner/work/astro/astro/packages/create-astro
> astro-scripts build "src/index.ts" --bundle && tsc

::endgroup::
::group::astro:build
cache miss, executing c55649dc728ed755

> [email protected] build /home/runner/work/astro/astro/packages/astro
> pnpm run prebuild && astro-scripts build "src/**/*.{ts,js}" && tsc && pnpm run postbuild


> [email protected] prebuild /home/runner/work/astro/astro/packages/astro
> astro-scripts prebuild --to-string "src/runtime/server/astro-island.ts" "src/runtime/client/{idle,load,media,only,visible}.ts"


> [email protected] postbuild /home/runner/work/astro/astro/packages/astro
> astro-scripts copy "src/**/*.astro" && astro-scripts copy "src/**/*.wasm"

::endgroup::
::group::@astrojs/alpinejs:build
cache miss, executing ad350977132d4f5c

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/alpinejs
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@benchmark/timer:build
cache miss, executing 091f99dae361932d

> @benchmark/[email protected] build /home/runner/work/astro/astro/benchmark/packages/timer
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/partytown:build
cache miss, executing c5ecf8edca791a0f

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/partytown
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/rss:build
cache miss, executing cbfa1a9fdfdf04ef

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/astro-rss
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/solid-js:build
cache miss, executing 1564ef93bd3f7556

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/solid
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/node:build
cache miss, executing f147aa76e656a5a2

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/node
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/vercel:build
cache miss, executing 9113d8bd9b69ca9a

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/vercel
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/markdoc:build
cache miss, executing 68a1f339b58e94ad

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/markdoc
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/preact:build
cache miss, executing ed122e215a98f84e

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/preact
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/mdx:build
cache miss, executing 9e64b96bb7c88084

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/mdx
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/tailwind:build
cache miss, executing b5cbe8ae13d2fd3f

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/tailwind
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/underscore-redirects:build
cache miss, executing 209098bb5be4f82b

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/underscore-redirects
> astro-scripts build "src/**/*.ts" && tsc -p tsconfig.json

::endgroup::
::group::@astrojs/react:build
cache miss, executing 9f93300bb1d64af2

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/react
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/lit:build
cache miss, executing e71c6477b7fd6a9b

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/lit
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/sitemap:build
cache miss, executing 82126d7f295d8d98

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/sitemap
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/vue:build
cache miss, executing 0b4686c972a0a609

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/vue
> astro-scripts build "src/index.ts" && astro-scripts build "src/editor.cts" --force-cjs --no-clean-dist && tsc

::endgroup::
::group::@astrojs/svelte:build
cache miss, executing 76c28bb66571dea3

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/svelte
> astro-scripts build "src/index.ts" && astro-scripts build "src/editor.cts" --force-cjs --no-clean-dist && tsc

::endgroup::

 Tasks:    24 successful, 24 total
Cached:    5 cached, 24 total
  Time:    38.036s 

Copy link
Contributor

github-actions bot commented Jan 4, 2024

PR Benchmark

Memory

Elapsed time (s) Memory used (MB) Final memory (MB)
SSR build 2.83 86.50 125.45
Client build 0.08 0.28 125.57
Static generate 0.46 5.46 130.54

Main Benchmark

Memory

Elapsed time (s) Memory used (MB) Final memory (MB)
SSR build 2.97 86.58 125.51
Client build 0.11 0.21 125.63
Static generate 0.46 5.37 130.60

Copy link
Contributor

github-actions bot commented Jan 4, 2024

PR Benchmark

Memory

Elapsed time (s) Memory used (MB) Final memory (MB)
SSR build 2.79 86.71 125.47
Client build 0.08 0.29 125.60
Static generate 0.46 5.37 130.57

Render

Page Avg (ms) Stdev (ms) Max (ms)
/astro 4.34 4.10 34.18
/md 0.63 2.27 22.77
/mdx 122.89 19.38 219.34

Server stress

Avg Stdev Max
Latency 3615.23 ms 784.39 ms 6031 ms
Avg Stdev Min Total in 30s
Req/Sec 260 316.51 46 7.8k requests
Bytes/Sec 46.4 MB 55.7 MB 9.38 MB 1.39 GB read

CLI Startup

Command Avg (ms) Stdev (ms) Max (ms)
astro --help 194.29 2.05 198.27
astro info 623.65 2.71 626.85

Main Benchmark

Memory

Elapsed time (s) Memory used (MB) Final memory (MB)
SSR build 2.88 86.37 125.45
Client build 0.08 0.29 125.57
Static generate 0.46 5.23 130.54

Render

Page Avg (ms) Stdev (ms) Max (ms)
/astro 4.36 4.89 39.87
/md 0.65 2.53 25.63
/mdx 123.75 19.47 212.86

Server stress

Avg Stdev Max
Latency 3598.05 ms 781.67 ms 5991 ms
Avg Stdev Min Total in 30s
Req/Sec 260 301.44 106 7.8k requests
Bytes/Sec 46.4 MB 53.5 MB 13.3 MB 1.39 GB read

CLI Startup

Command Avg (ms) Stdev (ms) Max (ms)
astro --help 195.16 2.07 197.69
astro info 626.49 4.18 634.86

@ematipico
Copy link
Member Author

!bench

@ematipico
Copy link
Member Author

!preview ssg-no-streaming

@ematipico
Copy link
Member Author

!bench memory

Copy link
Contributor

github-actions bot commented Jan 4, 2024

PR Benchmark

Memory

Elapsed time (s) Memory used (MB) Final memory (MB)
SSR build 2.83 86.73 125.42
Client build 0.08 0.27 125.51
Static generate 0.46 5.37 130.49

Main Benchmark

Memory

Elapsed time (s) Memory used (MB) Final memory (MB)
SSR build 2.86 86.93 125.52
Client build 0.08 0.24 125.63
Static generate 0.46 5.24 130.60

Copy link
Contributor

github-actions bot commented Jan 4, 2024

Snapshots have been released for the following packages:

  • astro@experimental--ssg-no-streaming
  • create-astro@experimental--ssg-no-streaming
Publish Log
🦋  warn ===============================IMPORTANT!===============================
🦋  warn Packages will be released under the experimental--ssg-no-streaming tag
🦋  warn ----------------------------------------------------------------------
🦋  info npm info astro
🦋  info npm info @astrojs/prism
🦋  info npm info @astrojs/rss
🦋  info npm info create-astro
🦋  info npm info @astrojs/alpinejs
🦋  info npm info @astrojs/lit
🦋  info npm info @astrojs/markdoc
🦋  info npm info @astrojs/mdx
🦋  info npm info @astrojs/node
🦋  info npm info @astrojs/partytown
🦋  info npm info @astrojs/preact
🦋  info npm info @astrojs/react
🦋  info npm info @astrojs/sitemap
🦋  info npm info @astrojs/solid-js
🦋  info npm info @astrojs/svelte
🦋  info npm info @astrojs/tailwind
🦋  info npm info @astrojs/vercel
🦋  info npm info @astrojs/vue
🦋  info npm info @astrojs/internal-helpers
🦋  info npm info @astrojs/markdown-remark
🦋  info npm info @astrojs/telemetry
🦋  info npm info @astrojs/underscore-redirects
🦋  info npm info @astrojs/upgrade
🦋  info astro is being published because our local version (0.0.0-ssg-no-streaming-20240104123901) has not been published on npm
🦋  warn @astrojs/prism is not being published because version 3.0.0 is already published on npm
🦋  warn @astrojs/rss is not being published because version 4.0.1 is already published on npm
🦋  info create-astro is being published because our local version (0.0.0-ssg-no-streaming-20240104123901) has not been published on npm
🦋  warn @astrojs/alpinejs is not being published because version 0.3.2 is already published on npm
🦋  warn @astrojs/lit is not being published because version 4.0.1 is already published on npm
🦋  warn @astrojs/markdoc is not being published because version 0.8.2 is already published on npm
🦋  warn @astrojs/mdx is not being published because version 2.0.3 is already published on npm
🦋  warn @astrojs/node is not being published because version 7.0.4 is already published on npm
🦋  warn @astrojs/partytown is not being published because version 2.0.3 is already published on npm
🦋  warn @astrojs/preact is not being published because version 3.0.2 is already published on npm
🦋  warn @astrojs/react is not being published because version 3.0.9 is already published on npm
🦋  warn @astrojs/sitemap is not being published because version 3.0.4 is already published on npm
🦋  warn @astrojs/solid-js is not being published because version 3.0.3 is already published on npm
🦋  warn @astrojs/svelte is not being published because version 5.0.3 is already published on npm
🦋  warn @astrojs/tailwind is not being published because version 5.1.0 is already published on npm
🦋  warn @astrojs/vercel is not being published because version 6.1.2 is already published on npm
🦋  warn @astrojs/vue is not being published because version 4.0.7 is already published on npm
🦋  warn @astrojs/internal-helpers is not being published because version 0.2.1 is already published on npm
🦋  warn @astrojs/markdown-remark is not being published because version 4.0.1 is already published on npm
🦋  warn @astrojs/telemetry is not being published because version 3.0.4 is already published on npm
🦋  warn @astrojs/underscore-redirects is not being published because version 0.3.3 is already published on npm
🦋  warn @astrojs/upgrade is not being published because version 0.2.2 is already published on npm
🦋  info Publishing "astro" at "0.0.0-ssg-no-streaming-20240104123901"
🦋  info Publishing "create-astro" at "0.0.0-ssg-no-streaming-20240104123901"
🦋  success packages published successfully:
🦋  [email protected]
🦋  [email protected]
🦋  Creating git tags...
🦋  New tag:  [email protected]
🦋  New tag:  [email protected]
Build Log

> [email protected] build /home/runner/work/astro/astro
> turbo run build --filter=astro --filter=create-astro --filter="@astrojs/*" --filter="@benchmark/*"

• Packages in scope: @astrojs/alpinejs, @astrojs/cloudflare, @astrojs/internal-helpers, @astrojs/lit, @astrojs/markdoc, @astrojs/markdown-remark, @astrojs/mdx, @astrojs/netlify, @astrojs/node, @astrojs/partytown, @astrojs/preact, @astrojs/prism, @astrojs/react, @astrojs/rss, @astrojs/sitemap, @astrojs/solid-js, @astrojs/svelte, @astrojs/tailwind, @astrojs/telemetry, @astrojs/underscore-redirects, @astrojs/upgrade, @astrojs/vercel, @astrojs/vue, @benchmark/timer, astro, create-astro
• Running build in 26 packages
• Remote caching enabled
::group::@astrojs/upgrade:build
cache hit, suppressing logs 87f52b7a0803dd23
::endgroup::
::group::@astrojs/telemetry:build
cache hit, suppressing logs c98d31a4b10de42a
::endgroup::
::group::@astrojs/internal-helpers:build
cache hit, suppressing logs dcd2e47ddeb4319c
::endgroup::
::group::@astrojs/prism:build
cache hit, suppressing logs 3aa7f82954d2c6a4
::endgroup::
::group::@astrojs/markdown-remark:build
cache hit, suppressing logs c08381de7599ea31
::endgroup::
::group::create-astro:build
cache miss, executing f5328df0a6bf7058

> [email protected] build /home/runner/work/astro/astro/packages/create-astro
> astro-scripts build "src/index.ts" --bundle && tsc

::endgroup::
::group::astro:build
cache miss, executing 56f1fde50464be88

> [email protected] build /home/runner/work/astro/astro/packages/astro
> pnpm run prebuild && astro-scripts build "src/**/*.{ts,js}" && tsc && pnpm run postbuild


> [email protected] prebuild /home/runner/work/astro/astro/packages/astro
> astro-scripts prebuild --to-string "src/runtime/server/astro-island.ts" "src/runtime/client/{idle,load,media,only,visible}.ts"


> [email protected] postbuild /home/runner/work/astro/astro/packages/astro
> astro-scripts copy "src/**/*.astro" && astro-scripts copy "src/**/*.wasm"

::endgroup::
::group::@astrojs/solid-js:build
cache miss, executing 70df7f2fabfc2745

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/solid
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/underscore-redirects:build
cache miss, executing b77342d86f5b019a

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/underscore-redirects
> astro-scripts build "src/**/*.ts" && tsc -p tsconfig.json

::endgroup::
::group::@astrojs/lit:build
cache miss, executing 2fb2794a5d73468d

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/lit
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/partytown:build
cache miss, executing 0f85881986352014

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/partytown
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/rss:build
cache miss, executing caf1889c957c2a58

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/astro-rss
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/tailwind:build
cache miss, executing 119f7c1b967b717a

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/tailwind
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/vercel:build
cache miss, executing f04e0db08037c298

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/vercel
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/preact:build
cache miss, executing 6b0d2a20ebea5b31

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/preact
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/mdx:build
cache miss, executing 389b99d6d9bd51e9

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/mdx
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/svelte:build
cache miss, executing 0e3f046eb568b3e1

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/svelte
> astro-scripts build "src/index.ts" && astro-scripts build "src/editor.cts" --force-cjs --no-clean-dist && tsc

::endgroup::
::group::@astrojs/alpinejs:build
cache miss, executing 74a0b7a8f0e8a0b4

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/alpinejs
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/react:build
cache miss, executing 553ca7ded89e1f8c

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/react
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@benchmark/timer:build
cache miss, executing 900193f0417b5ed5

> @benchmark/[email protected] build /home/runner/work/astro/astro/benchmark/packages/timer
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/node:build
cache miss, executing 3c48a2a8e8003a47

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/node
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/vue:build
cache miss, executing e4bd67842606a4c0

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/vue
> astro-scripts build "src/index.ts" && astro-scripts build "src/editor.cts" --force-cjs --no-clean-dist && tsc

::endgroup::
::group::@astrojs/markdoc:build
cache miss, executing 36615b09480e49dd

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/markdoc
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::
::group::@astrojs/sitemap:build
cache miss, executing 56f7382b50074ae7

> @astrojs/[email protected] build /home/runner/work/astro/astro/packages/integrations/sitemap
> astro-scripts build "src/**/*.ts" && tsc

::endgroup::

 Tasks:    24 successful, 24 total
Cached:    5 cached, 24 total
  Time:    39.814s 

Copy link
Contributor

github-actions bot commented Jan 4, 2024

PR Benchmark

Memory

Elapsed time (s) Memory used (MB) Final memory (MB)
SSR build 2.87 86.62 125.47
Client build 0.08 0.25 125.56
Static generate 0.45 5.24 130.53

Render

Page Avg (ms) Stdev (ms) Max (ms)
/astro 4.46 4.08 36.94
/md 0.61 2.15 21.67
/mdx 125.46 19.62 214.45

Server stress

Avg Stdev Max
Latency 3670.35 ms 747.65 ms 5982 ms
Avg Stdev Min Total in 30s
Req/Sec 260 319.39 137 7.8k requests
Bytes/Sec 46.4 MB 57 MB 29.7 MB 1.39 GB read

CLI Startup

Command Avg (ms) Stdev (ms) Max (ms)
astro --help 198.45 1.83 200.64
astro info 627.46 4.93 638.94

Main Benchmark

Memory

Elapsed time (s) Memory used (MB) Final memory (MB)
SSR build 2.82 86.63 125.50
Client build 0.08 0.30 125.61
Static generate 0.46 5.37 130.58

Render

Page Avg (ms) Stdev (ms) Max (ms)
/astro 4.31 4.05 34.93
/md 0.64 2.22 22.23
/mdx 126.44 18.80 208.57

Server stress

Avg Stdev Max
Latency 3630.43 ms 814.04 ms 6036 ms
Avg Stdev Min Total in 30s
Req/Sec 259.97 287.59 105 7.8k requests
Bytes/Sec 46.4 MB 50.7 MB 17.9 MB 1.39 GB read

CLI Startup

Command Avg (ms) Stdev (ms) Max (ms)
astro --help 194.20 1.59 197.26
astro info 624.32 2.70 628.33

@florian-lefebvre
Copy link
Member

Superseded by #9614

@bluwy bluwy deleted the perf/disable-streaming-in-ssg branch October 8, 2024 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants