Performance Benchmarks

Source-level What benchmarks on Node.js v24.22.3, development mode.

Last updated · v0.15.0 · 8b02cde7

Signals

Operation Iterations/Second Time per Iteration
Signal create 3.0M iterations/sec 0.3µs
Create a signal and read it 100 times 2.8M iterations/sec 0.4µs
Create a signal and write it 100 times (no subscribers) 1.1M iterations/sec 0.9µs
Create a signal and one effect, then write 100 times 780K iterations/sec 0.0013ms
Create a signal and ten effects, then write 100 times 328K iterations/sec 0.0031ms
Create a signal and peek 100 times 1.7M iterations/sec 0.6µs

The write cases include signal and effect setup. Queued effects flush after timing.

Computed Values

Operation Iterations/Second Time per Iteration
Computed create + read 1.6M iterations/sec 0.6µs
Computed chain (depth 5) 510K iterations/sec 0.0020ms
Computed diamond dependency 617K iterations/sec 0.0016ms

Effects

Operation Iterations/Second Time per Iteration
Effect create + dispose 2.8M iterations/sec 0.4µs
Effect with 10 signal deps 384K iterations/sec 0.0026ms

Batching

Operation Iterations/Second Time per Iteration
Batch 100 writes, 1 effect 675K iterations/sec 0.0015ms
Batch 10 signals, 10 writes each 208K iterations/sec 0.0048ms

VNode creation with h()

Operation Iterations/Second Time per Iteration
Create one element VNode 14.5M iterations/sec 0.1µs
Nested (3 levels) 6.3M iterations/sec 0.2µs
List of 100 items 177K iterations/sec 0.0056ms
Create a VNode with a component tag 18.0M iterations/sec 0.1µs

Server-Side Rendering

Operation Iterations/Second Time per Iteration
SSR simple element 545K iterations/sec 0.0018ms
SSR nested tree 412K iterations/sec 0.0024ms
SSR list of 100 items 62K iterations/sec 0.0161ms
SSR component tree (50 items) 80K iterations/sec 0.0125ms

Bundle Size

Package Size (gzipped)
Counter app written with h(), production build9.13 KiB
Counter app compiled from JSX, production build5.41 KiB

Bundled JavaScript, compressed with gzip at level 9. The h() counter uses esbuild. The JSX counter uses what-compiler with Vite.

Methodology

All benchmarks run on Node.js v24.22.3 with the following approach:

• Warmup: 1000 iterations discarded before measurement

• Iterations: 500–10,000 per test (varies by operation cost)

• Timing: High-resolution performance.now()

• Calculation: Trimmed mean (discard top/bottom 10%)

• Environment: linux, Node.js v24.22.3, AMD RYZEN AI MAX+ 395 w/ Radeon 8060S (x64)

• Automated: Benchmarks regenerate every 3 days via CI

Source code available in /benchmark directory. Download the recorded measurements, or run npm run bench:update to measure locally.