Skip to content

feat: enable vapor mode benchmark - #698

Draft
ubugeeei wants to merge 2 commits into
yamanoku:mainfrom
ubugeeei-forks:feat/vapor-mode-benchmark
Draft

feat: enable vapor mode benchmark#698
ubugeeei wants to merge 2 commits into
yamanoku:mainfrom
ubugeeei-forks:feat/vapor-mode-benchmark

Conversation

@ubugeeei

@ubugeeei ubugeeei commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Upgrade Vue to 3.6.0 beta and Vuerend to 0.2.0.
  • Enable Vuerend/Vize Vapor mode by default.
  • Mark island subtree SFCs with <script setup vapor> and use Vue 3 reactive props destructure instead of toRefs.
  • Add a runtime alias shim for the published Vuerend 0.2.0 Vapor runtime chunk.
  • Mount Vapor islands over SSR HTML on idle while Vapor SSR hydration is still unstable.
  • Keep static preview working with dist/client output and disable module preload for smaller critical loading.

Production Benchmark

Compared against origin/main (b8eddf7) using vp build for both branches.
Browser timings use local vp preview --outDir dist/client, Chromium, 7 cold runs, median values, no service worker.

Metric main Vapor branch Delta
Client JS assets total 100,704 B raw / 38,207 B gzip 98,617 B raw / 36,128 B gzip -2,087 B raw / -2,079 B gzip
Home loaded JS 93,975 B raw / 35,301 B gzip 89,639 B raw / 32,268 B gzip -4,336 B raw / -3,033 B gzip
Vue runtime chunk 63,722 B raw / 24,954 B gzip 54,122 B raw / 20,208 B gzip -9,600 B raw / -4,746 B gzip
FCP median 188.0 ms 180.0 ms -8.0 ms
DOMContentLoaded median 183.9 ms 173.9 ms -10.0 ms
Last JS response end median 186.7 ms 186.2 ms -0.5 ms
loadEventEnd median 303.7 ms 447.5 ms +143.8 ms

Notes

  • The runtime chunk is smaller with Vapor, but the SFC chunks are larger, so total JS improvement is modest.
  • SSR HTML is visible before island mount, and local load timing is noisy; loadEventEnd did not improve in this run even though Home loaded JS gzip decreased by ~3.0 kB.
  • Browser smoke on the Vapor build reports no console warnings/errors, and search, view switching, and row expansion work.
  • Server build still logs Vize warnings that SFC Vapor SSR is not supported yet and falls back to standard SSR output; this is expected for now.

Verification

  • vp fmt . --check
  • vp lint .
  • vp run typecheck
  • vp test run
  • vp build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant