1. Docs
  2. Reference
Edit on GitHub[]to change page

Performance

Every figure on this page comes from one machine: an AMD Ryzen 5 3600 (6 cores, 12 threads, 32 GB RAM) on Windows 11, with Kotlin 2.4.21, esbuild 0.28.2, Svelte 5.59.2, Solid 2.0.4, Compose HTML 1.12.1 and headless Chrome 158. The client sizes, the page load, the table operations and the reactivity were measured on 2026-11-30, the site builds, the dev server, the language server and the JVM on 2026-11-27 and 2026-11-28. Times are medians. They move by 10 to 20% from one session to the next, so only times measured back to back compare.

The performance page of this site draws these tables as charts you can switch. Optimizations explains the choices behind them.

Client size

JavaScript of the todo page, compressed with Brotli

The todo page of examples/todo, the same page written with Svelte and with Solid, both rendered on the server and hydrated, and a reference build of the page on a runtime made with Compose:

app.mjs of todo Raw gzip Brotli
Lithe
57,528 19,729 17,482
Svelte 63,090 24,367 22,001
Solid 57,826 22,483 20,507
Compose 476,515 149,369 119,700

Sizes are in bytes, with Brotli at quality 11. The Svelte and Solid pages are built by Vite, and Solid's also needs an inline script in the page (957 bytes of HTML with Brotli, against 749 for Lithe) that hands the events before hydration to its client. The Compose build is minified more aggressively than the Lithe one. The todo page of Lithe weighs 2,006 bytes more than on 2026-11-28, when the Minification table below was measured.

Examples

JavaScript of each example, compressed with Brotli

Each example is built as a site. A static page ships nothing, and a client only carries the blocks its components use: the link drops @for, @await, <head> and the others when nothing calls them. compose mounts a composable, which brings the Compose runtime.

Minification

What the minification of a site build gains, in bytes:

app.mjs markup raw gzip Brotli todo raw gzip Brotli
As linked 52,909 10,869 9,559 177,110 32,646 27,122
esbuild --bundle --minify alone 18,054 6,782 6,062 57,558 19,738 17,503
As the site build writes it 17,291 6,494 5,817 55,522 19,045 16,885

Page load

Load and click times of the todo page on a CPU slowed 4 times

The four builds of Client size, served with Brotli and nothing cached. Each load uses a fresh browser context, the builds take turns, and each build first passes the same behavior checks.

  • Hydrate is the time the client runs, until the microtasks it queues are done.
  • Ready goes from the start of the navigation to the hydrated page.
  • Click goes from a click that reverses the list to the change of the page.
Build CPU Hydrate Ready Click Ready on slow 4G
Lithe
1x 8.7 ms 59.7 ms 1.7 ms 458.7 ms
Svelte 1x 9.1 ms 59.8 ms 1.7 ms 478.7 ms
Solid 1x 9.1 ms 61.2 ms 1.4 ms 476.0 ms
Compose 1x 39.2 ms 95.2 ms 12.3 ms 1,003.9 ms
Lithe
4x 47.5 ms 101.4 ms 10.8 ms 556.3 ms
Svelte 4x 48.0 ms 102.6 ms 12.9 ms 557.3 ms
Solid 4x 48.4 ms 104.7 ms 10.1 ms 553.7 ms
Compose 4x 194.1 ms 399.1 ms 64.0 ms 1,174.1 ms

40 loads on localhost, 20 on Chrome's slow 4G preset (150 ms round trip, 1.6 Mbit/s). Between Lithe, Svelte and Solid, the ranges of the hydration times overlap widely: 7.3 to 12.9 ms, 7.5 to 13.4 ms and 7.6 to 12.6 ms at 1x.

Table operations

Table operations, Lithe, Svelte and Solid

A page with the table operations of js-framework-benchmark, pre-rendered with 1,000 rows, against the same page written with Svelte and with Solid, hydrated, and with Compose HTML. Times are those of the script, the handler and the DOM writes, without style and layout: the median of 20 runs, 10 for the rows marked 10k, averaged over two benchmark runs of each page, taking turns. The rows take their labels from a seeded generator, so every run renders the same ones. Every page writes the same rows, with the same keys: nothing is memoized or tuned beyond what each library does by default.

Operation
Lithe
Svelte Solid Compose
Hydrate 1k rows (40 loads) 20.1 ms 11.1 ms 17.9 ms 248.7 ms
Create 1k rows 9.1 ms 6.2 ms 8.6 ms 511.0 ms
Replace 1k rows 12.8 ms 11.4 ms 12.5 ms 778.3 ms
Update every 10th row 0.9 ms 0.8 ms 0.8 ms 12.3 ms
Select a row 0.5 ms 0.7 ms 1.3 ms 4.4 ms
Swap two rows 0.5 ms 0.6 ms 0.4 ms 1,075.3 ms
Move the last row first 0.5 ms 0.5 ms 0.4 ms 14.5 ms
Reverse 1k rows 2.3 ms 30.3 ms 2.0 ms 1,393.3 ms
Remove a row 0.5 ms 0.4 ms 0.4 ms 963.5 ms
Append 1k rows 6.9 ms 5.5 ms 6.9 ms 507.9 ms
Clear 1k rows 5.4 ms 5.3 ms 5.4 ms 22.0 ms
Create 10k rows 69.2 ms 60.1 ms 72.8 ms 19,958.9 ms
Select a row of 10k 2.1 ms 4.2 ms 7.6 ms 27.9 ms
Clear 10k rows 51.8 ms 50.9 ms 48.0 ms 1,099.3 ms
Heap with 10k rows 11.4 MB 12.1 MB 15.4 MB 121.6 MB

Compose HTML renders into an empty element, on the browser only: it can't render on the JVM or adopt existing HTML. The page it hydrates is therefore empty, and its "hydrate" row is the first composition of the 1,000 rows, with 10 loads. Compose recomposes on the next animation frame, which a click would time as 16 ms of idle wait: the page gives renderComposable a frame clock that ticks in a microtask, and each operation ends after a task instead of the microtasks of the click. One operation takes up to 20 s on that page, so it has 5 samples after 2 warm-up runs, 3 for the rows of 10k, instead of 20 after 5. Compose draws no bar in the chart, where it would flatten the bars of the others. Its rows are written the way Compose HTML is usually written, a keyed for of a composable per row that takes its row, whether it is selected and two callbacks, and what keeps it slow here wasn't investigated.

Creating and hydrating rows is where Lithe and Solid are behind Svelte: Lithe creates one effect per binding, where Svelte groups the updates of a row. Selecting a row runs the bindings of two rows only on Lithe, through the selector the compiler writes for the loop, while the Svelte and Solid pages compare the selected id in every row. Reversing moves rows with moveBefore on Lithe and on Solid, which leaves more of the work to layout: these times leave it out, and with it a reversal took about 40 ms on the Lithe page on 2026-11-28. The heap of the Lithe page was 1.1 MB with no row on that day, and 1.2 MB once 10,000 were cleared.

Reactivity

The reactivity graphs of Svelte's benchmarks, on the table page of Lithe, Svelte and Solid. Each is written with the public API of its library: a state, a derived value and an effect ($state, $derived and $effect on Svelte, createSignal, createMemo and createEffect on Solid), and the page applies the writes of a step in a microtask. The medians of the run, averaged over two benchmark runs of each page:

Graph
Lithe
Svelte Solid
deep 2.38 ms 4.40 ms 5.15 ms
broad 1.45 ms 2.50 ms 2.77 ms
diamond 0.97 ms 1.82 ms 1.57 ms
triangle 0.53 ms 0.90 ms 0.90 ms
mux 1.80 ms 2.50 ms 2.15 ms
repeated 0.80 ms 1.45 ms 1.15 ms
unstable 1.13 ms 1.88 ms 1.63 ms
avoidable 1.30 ms 2.60 ms 1.83 ms
fanout 5.72 ms 7.25 ms 7.22 ms
wide 0.50 ms 1.00 ms 1.67 ms

Compose isn't in this table because it has no effect outside a composition: only a composition follows what it reads, and it recomposes on a frame clock. The nearest thing, a SnapshotStateObserver over mutableStateOf and derivedStateOf, took 7 to 11 ms for each of the first four writes of the deep graph and 29 to 70 ms for those of wide in a single try by hand, against microseconds on the others. That stand-in isn't how a Compose page follows state, so no figure is given.

Site builds

A production build of todo through the cli command, as the wall time of the command. These times and the ones of the dev server are measured while an IDE, a browser and a game run on the machine, which slows what compiles:

Build Samples Median Min Max
Nothing changed since the last one 10 4.85 s 4.60 s 4.99 s
After an edit of the markup of a component 10 22.29 s 19.43 s 23.89 s
First one, with an empty build cache 3 31.95 s 31.01 s 39.86 s

Each command starts a JVM, which compiles cold what changed. Inside one warm JVM, with an edit to the app before each build, most of the time is the release link. The JVM output compiles and renders the page while the client compiles, links and is minified, so the phases add up to more than the total:

Phase markup todo
Whole build 3,114 ms 3,637 ms
Compile the components (Lithe) 43 ms 51 ms
Compile the app for the JVM 249 ms 530 ms
Static rendering 21 ms 94 ms
Compile the app for JS 334 ms 627 ms
Release link 2,590 ms 2,792 ms
Minification 67 ms 89 ms

Each figure is the mean of the medians of 2 runs of 10 builds, after 2 warm-up builds. The whole build takes 2.90 s to 3.43 s on markup and 3.39 s to 4.01 s on todo.

Dev server

From the save of a file to the event the tab receives from the dev server, the 50 ms of --debounce included, 10 samples after 4 warm-up edits:

Edit Event Median Min Max
todo, a text of the markup, which compiles nothing reload 170 ms 154 ms 203 ms
todo, an expression of the markup reload 2.46 s 2.18 s 2.77 s
todo, code of a mount block, which only the client has reload 2.09 s 1.85 s 2.17 s
todo, the <style> block of a component css 0.54 s 0.49 s 0.72 s
todo, a stylesheet of resources/, which needs no build css 53 ms 52 ms 56 ms
hello, a Kotlin file reload 1.23 s 1.02 s 1.37 s

Linking the client is most of a build that changes it, and an edit of the strings of the markup alone needs none. The first build of a server, with an empty build cache (3 runs):

App Median Min Max
todo 32.22 s 31.87 s 33.56 s
hello 28.63 s 27.85 s 30.36 s

Language server

The language server reading the documentation of IntelliJ IDEA. The first two rows are the medians of 2 starts on the components example (7 components, 111 lines), the next three of 60 warm requests on it. The last two are what an editor that asks again for everything after a change waits for, errors, highlighting, inlay hints, structure, folding, colors, fixes and every lens, with the whole repository open (30 warm rounds):

Wait Java 25 Java 17
Start to the first answer 349 ms 376 ms
Errors of the first file 277 ms 322 ms
Errors after a change 42 ms 49 ms
Completion 2.7 ms 2.7 ms
Highlighting 0.6 ms 0.6 ms
Everything, App.lithe of components (46 lines) 47 ms 50 ms
Everything, App.lithe of tasks (472 lines) 60 ms 69 ms

The first request after a change reads the changed module again: the errors in this table, or a completion that arrives before them.

On the JVM

What Median 10th to 90th percentile
Static rendering of a page of 1,000 rows (186,980 characters) 1.28 ms 1.23 to 1.39 ms
Compiling the 55 components of the examples (58,505 characters) 19.1 ms 18.4 to 19.9 ms
Compiling a component of 300 sections (160,690 characters) 67.3 ms 65.4 to 72.6 ms

Each figure is the median run of three, 300 measured iterations after 300 warm-up ones, 20 after 20 for the large component.

Limits

  • Comparing these times with another machine isn't possible, and neither is telling what they are on macOS or Linux, where nothing is measured.
  • Chrome is the only browser measured, headless.
  • Comparing the size of the table pages isn't possible, because the Lithe, Svelte and Solid ones also hold the reactivity graphs, and the Compose one is a Lithe page that mounts the composition, so it also holds the Lithe runtime.
  • The Compose pages aren't a fair match of the others on two points: Compose HTML can't hydrate, so it composes the page again, and the todo build is a prebuilt reference whose source the repository doesn't hold.

The scripts and tests that measure these figures are in benchmarks/ of the repository.