Frontory

Open code, practice, and notes →

Download source with English comments · for reading

Svelte · 25 Observing Compilation Output and Performance

Series contents · Technology map

Stage: Canvas Verification and Framework Comparison · External example · preview instructions · Storage ID: svelte-step-25

Goals and learning outcomes

Prerequisites

Unit 25 continues with the work and experiment records from Unit 24.

Key concepts and explanations

Compilation Output

Source length differs from what the browser executes. Inspect build output to see which code and dependencies it includes.

Fair Measurement

Compare with the same data, input, and build mode. Do not treat React Profiler numbers as the same metric as Svelte’s total render time.

Practice setup

First check the execution scope guidance on the example screen. The following environment is for extending the assignment in a separate project. Compile and run .svelte files in a separate Svelte 5 Vite project. Record package versions and the lockfile. Frontory’s Svelte preview uses actual writable stores and an explicit DOM adapter; it is not a .svelte compiler or a runes runner.

The linked example is a starting point. It does not implement every task below. Complete work beyond its supported scope in a separate project.

Practice tasks

  1. Build the external project and record dist asset sizes and configuration in notes/build.md.
  2. With 100 and 1000 cards, measure the same 10 filter inputs.
  3. Distinguish scripting and layout sections in the browser performance recording.

Variables to observe

VariableBaselineChangeExpected change / hypothesis
Card Count100 cards1000 cardsMeasure changes in update cost without assuming linear growth.

Predictions in this table are not measured results. Change one condition at a time and record why the actual result differs.

Completion criteria

Self-check

  1. Does a compiled framework have 0 runtime cost?
  2. Can bundle size alone explain input latency?

Official references

Linked example and execution scope

Example source · Runtime environments and limits

The preview is a Svelte writable/DOM contract experiment. To run runes, snippets, and compiled output, run the actual App.svelte in a Svelte 5 project.

Source code and records are not overwritten automatically. Resetting an existing example also preserves your notes.

Next learning

Previous: Checking Lifetimes During Transitions · Next: Regression Scenarios for the Same Contract

Open code, practice, and notes →