Raw benchmark results

The raw tables, each generated from a committed baseline. For what they add up to, start with the TL;DR; Measuring Isomer says what each measure claims, and Sizing a host turns the numbers into guidance.

Loading each entry

What require of each public entry costs a fresh Node process, as a CommonJS host loads it, before any call into it. Each row adds to node, the harness alone; an entry's row includes the packages it pulls in, so rows overlap and don't add up. Rows past the SDK's own packages come from each pack's config, resolved from that pack's directory; a pack bundled from source excludes what transpiling it would cost. CJS modules counts entries in require.cache; a CommonJS entry that loads ES modules adds modules it doesn't count.

Median of 5 runs per scenario. Node v22.22.0, darwin arm64, Apple M4 Pro (14 cores), 48 GB, NODE_ENV production, commit 3d1ceb57.

Scenario Load (ms) CJS modules Heap held (MB) RSS after (MB) Peak RSS (MB)
node 0 0 0.0 42 42
@elastic/isomer-sdk 45 149 5.5 60 60
@elastic/isomer-sdk/schema 36 108 3.7 57 57
@elastic/isomer-sdk/html 45 127 5.0 59 59
@elastic/isomer-sdk/slack 38 124 4.7 58 58
@elastic/isomer-sdk/text 2 3 0.1 43 43
@elastic/isomer-sdk/markdown 31 107 4.5 58 58
@elastic/isomer-sdk/react 35 117 4.6 58 58
@elastic/isomer-sdk/author 34 129 4.2 57 57
@elastic/isomer-runtime 57 216 7.1 64 64
@elastic/isomer-agent-tools 44 167 5.7 60 60
@elastic/isomer-image-takumi 16 19 0.7 53 53
host:image 71 235 7.6 68 69
host:agent 58 222 7.2 64 64
@elastic/isomer-primitives-slides 153 636 13.6 89 89
slides:host 164 666 14.8 92 92
@elastic/isomer-primitives-charts 84 320 9.9 70 70
@elastic/isomer-primitives-charts/schema 46 161 6.5 62 62
@elastic/isomer-primitives-charts/scene 11 49 0.9 49 50
@elastic/isomer-primitives-charts/resolve 7 26 0.6 49 49
charts:host 96 368 11.4 74 74
@elastic/isomer-charts-elastic 81 109 9.1 83 84
@elastic/isomer-charts-elastic/engine 77 108 9.1 83 84
@elastic/isomer-charts-elastic/node 81 113 9.4 84 85
charts-elastic:host 132 323 15.9 93 93
  • node: nothing: what the harness itself holds
  • host:image: what a server that draws images needs besides a pack: the SDK, the runtime and takumi
  • host:agent: what an agent host needs besides a pack: the SDK, the runtime and agent-tools
  • slides:host: the SDK, the runtime and @elastic/isomer-primitives-slides
  • charts:host: the SDK, the runtime and @elastic/isomer-primitives-charts
  • charts-elastic:host: the SDK, the runtime and @elastic/isomer-charts-elastic

A generated pack whose renderers each return one element or line, so the cost is the SDK's and the runtime's: assembling a runtime (which builds the composition schema), validating, and rendering. Each axis moves alone from 10 primitive types, 100 flat nodes and 800 label characters. Every composition uses one of the pack's types, so the primitive axis changes only the pack. Assembling excludes defining the pack, which a host has already done. Each surface's render validates first, so the render columns include a validate. Times past the first validate are the median of repeated calls in the same process.

Median of 5 runs per scenario. Node v22.22.0, darwin arm64, Apple M4 Pro (14 cores), 48 GB, NODE_ENV production, commit a5c47f16.

Scenario Assemble (ms) Runtime heap (MB) First validate (ms) Validate (ms) Validate + HTML (ms) Validate + text (ms) Validate + snapshot (ms) Peak RSS (MB)
primitives-1 1.4 0.1 1.76 0.18 0.22 0.13 0.18 89
primitives-10 1.5 0.2 1.87 0.18 0.22 0.13 0.18 89
primitives-50 2.5 0.5 2.26 0.17 0.22 0.13 0.18 89
primitives-200 5.5 1.7 3.99 0.17 0.24 0.13 0.18 109
nodes-10 1.7 0.2 1.57 0.03 0.07 0.03 0.04 85
nodes-100 1.6 0.2 1.89 0.17 0.22 0.13 0.18 89
nodes-1000 1.6 0.2 4.44 1.10 1.39 1.12 1.25 111
nodes-4000 1.6 0.2 13.35 4.64 5.95 5.05 5.89 139
depth-1 1.6 0.2 1.81 0.17 0.21 0.13 0.18 89
depth-8 1.7 0.2 1.91 0.19 0.23 0.14 0.18 92
depth-16 1.5 0.2 1.94 0.20 0.23 0.14 0.19 92
depth-24 1.5 0.2 1.97 0.20 0.24 0.14 0.19 92
characters-1000 1.5 0.2 1.75 0.17 0.21 0.13 0.18 88
characters-10000 1.6 0.2 1.78 0.17 0.24 0.13 0.18 89
characters-100000 1.6 0.2 1.78 0.17 0.43 0.13 0.20 93
characters-900000 1.7 0.2 1.75 0.17 2.17 0.21 0.42 122
  • primitives-1: a pack of 1 primitive type
  • primitives-10: a pack of 10 primitive types
  • primitives-50: a pack of 50 primitive types
  • primitives-200: a pack of 200 primitive types
  • nodes-10: 10 nodes, flat, 8 label characters each
  • nodes-100: 100 nodes, flat, 8 label characters each
  • nodes-1000: 1000 nodes, flat, 8 label characters each
  • nodes-4000: 4000 nodes, flat, 8 label characters each
  • depth-1: 100 nodes, 1 of them nested in one chain
  • depth-8: 100 nodes, 8 of them nested in one chain
  • depth-16: 100 nodes, 16 of them nested in one chain
  • depth-24: 100 nodes, 24 of them nested in one chain
  • characters-1000: 1,000 label characters in all
  • characters-10000: 10,000 label characters in all
  • characters-100000: 100,000 label characters in all
  • characters-900000: 900,000 label characters in all

Each added unit along an axis costs, in microseconds, from the axis's first and last points:

Axis Per Assemble (µs) Validate (µs) Validate + HTML (µs) Validate + snapshot (µs)
primitives primitive type in the pack 20.8 -0.1 0.1 0.0
nodes node 0.0 1.2 1.5 1.5
depth level of nesting -1.7 1.2 1.2 0.5
characters 1,000 label characters 0.2 0.0 2.2 0.3

Bundling each entry

What each public entry adds to a host that bundles it, such as a render service or a browser app: esbuild bundles the entry's ESM build, minified, with the entry's peers and React and zod left external, since the host brings them. A peer such as @elastic/charts is not counted. The browser column is empty for an entry that only runs on Node. Sizes repeat exactly with the same resolved dependencies, esbuild and Node, whose zlib makes the gzip columns.

Measured once. Node v22.23.5, linux x64, Intel(R) Xeon(R) Processor @ 2.10GHz (2 cores), 8 GB, NODE_ENV production, commit 5db4fa63.

Scenario Node (KB) Node gzip (KB) Browser (KB) Browser gzip (KB) Own code (KB)
@elastic/isomer-sdk 184.7 60.0 149.8 47.5 41.5
@elastic/isomer-sdk/schema 1.7 1.1 1.7 1.1 1.6
@elastic/isomer-sdk/html 134.9 40.8 134.9 40.8 16.6
@elastic/isomer-sdk/slack 152.7 48.0 117.8 35.6 23.8
@elastic/isomer-sdk/text 0.2 0.2 0.2 0.2 0.1
@elastic/isomer-sdk/markdown 152.0 47.4 117.1 35.0 10.2
@elastic/isomer-sdk/react 137.7 43.0 102.8 30.7 9.0
@elastic/isomer-sdk/author 35.5 13.4 35.5 13.4 35.1
@elastic/isomer-runtime 338.9 106.8 304.0 94.5 11.6
@elastic/isomer-agent-tools 13.9 5.3 13.9 5.3 7.8
@elastic/isomer-image-takumi 46.4 14.0 6.4
@elastic/isomer-primitives-slides 543.7 175.3 508.8 162.8 314.7
@elastic/isomer-primitives-charts 397.8 129.2 363.0 116.9 207.4
@elastic/isomer-primitives-charts/schema 123.7 37.2 123.7 37.2 120.4
@elastic/isomer-primitives-charts/scene 47.2 17.3 47.2 17.3 12.6
@elastic/isomer-primitives-charts/resolve 51.5 20.0 51.5 20.0 51.5
@elastic/isomer-charts-elastic 66.0 24.5 66.0 24.5 25.7
@elastic/isomer-charts-elastic/engine 64.8 24.1 64.8 24.1 24.4
@elastic/isomer-charts-elastic/node 66.5 24.8 26.3

The largest other packages in each entry's Node bundle, in KB:

Entry Largest other packages
@elastic/isomer-sdk character-entities 35, micromark-core-commonmark 27, mdast-util-to-markdown 23
@elastic/isomer-sdk/schema none
@elastic/isomer-sdk/html acorn 118
@elastic/isomer-sdk/slack character-entities 35, micromark-core-commonmark 27, mdast-util-to-markdown 11
@elastic/isomer-sdk/text none
@elastic/isomer-sdk/markdown character-entities 35, micromark-core-commonmark 27, mdast-util-to-markdown 23
@elastic/isomer-sdk/react character-entities 35, micromark-core-commonmark 27, mdast-util-to-markdown 11
@elastic/isomer-sdk/author none
@elastic/isomer-runtime acorn 119, @elastic/isomer-sdk 67, character-entities 35
@elastic/isomer-agent-tools @elastic/isomer-sdk 6
@elastic/isomer-image-takumi @takumi-rs/helpers 21, @takumi-rs/core 18
@elastic/isomer-primitives-slides @elastic/isomer-sdk 50, character-entities 35, @elastic/distillate 32
@elastic/isomer-primitives-charts character-entities 35, @elastic/distillate 31, micromark-core-commonmark 27
@elastic/isomer-primitives-charts/schema @elastic/isomer-sdk 2
@elastic/isomer-primitives-charts/scene @elastic/distillate 31, stylis 3
@elastic/isomer-primitives-charts/resolve none
@elastic/isomer-charts-elastic @elastic/distillate 31, @elastic/isomer-primitives-charts 6, stylis 3
@elastic/isomer-charts-elastic/engine @elastic/distillate 31, @elastic/isomer-primitives-charts 6, stylis 3
@elastic/isomer-charts-elastic/node @elastic/distillate 31, @elastic/isomer-primitives-charts 6, stylis 3

What drawing charts costs a fresh Node process, as a render service draws them: validate, resolve each chart's Scene, draw it with an engine, and rasterize it with takumi to PNG, with Inter Latin registered once. Rows come from each charts pack's config, drawn with no engine, and each engine's config; an engine row fails unless the engine draws every chart. A resolve row calls resolveChart once per chart. Every other row renders the snapshot surface, which validates again and may resolve a chart more than once, so its Resolve, or snapshot column is the whole surface: compare an engine row with the no-engine row over the same charts for what the engine adds. Loaded RSS is after loading and registering fonts, before the request's data is built; Render RSS is the peak above it. A row renders compositions, and a grid composition holds many charts, so times are per composition: each is a median, and All compositions runs from the first render's start to the last one's end. Under a burst, PNG includes the wait for one of the libuv thread pool's threads. Each render starts in a new task, as a request does.

Median of 5 runs per scenario. Node v22.22.0, darwin arm64, Apple M4 Pro (14 cores), 48 GB, NODE_ENV production, commit 3d1ceb57.

Scenario Compositions Charts Input values, largest Peak RSS (MB) Loaded RSS (MB) Render RSS (MB) Heap after (MB) First composition (ms) All compositions (ms) Validate (ms) Resolve, or snapshot (ms) PNG (ms) PNG (KB) PNG width (px), widest PNG height (px), tallest
charts:resolve 54 54 400 88 75 13 16.2 117 37 0.2 0.1
charts:resolve-budget 1 1 250000 253 75 178 21.4 515 409 78.3 331.4
charts:baseline 54 54 400 102 84 19 17.5 208 110 0.2 0.6 0.6 5 960 90
charts:budget 1 1 250000 290 84 206 22.2 677 533 76.0 454.3 2.2 6 1920 104
charts-elastic:draw 54 54 400 163 101 62 29.4 189 267 0.2 4.0
charts-elastic:engine 54 54 400 194 105 88 30.2 197 524 0.3 4.2 4.7 33 960 572
charts-elastic:xy-quarter 1 1 62500 227 106 121 27.3 452 263 28.1 179.1 54.1 71 1920 1108
charts-elastic:xy-half 1 1 124999 269 106 163 28.8 594 407 43.9 292.9 70.4 69 1920 1108
charts-elastic:budget-draw 1 1 250000 360 102 259 30.9 780 608 70.7 535.4
charts-elastic:budget-xy 1 1 250000 387 105 282 31.6 877 688 70.9 528.2 89.7 62 1920 1108
charts-elastic:budget-grid 1 40 249999 332 105 226 33.7 1023 843 61.0 595.0 188.1 196 1920 4528
charts-elastic:burst-limited 16 16 400 253 105 148 29.2 233 267 0.4 7.1 22.4 77 1920 1144
charts-elastic:burst-unlimited 16 16 400 325 105 219 29.2 347 234 0.4 7.0 102.0 77 1920 1144
charts-elastic:one 1 1 58 165 105 59 26.1 221 48 3.1 30.3 14.2 27 1920 1108
  • charts:resolve: every metric and xy example, light and dark: validate and resolve each Scene
  • charts:resolve-budget: one xy line at the pack's whole input budget: validate and resolve its Scene
  • charts:baseline: every metric and xy example, light and dark, to PNG at 1× with no engine: the summary fallback
  • charts:budget: one xy line at the pack's whole input budget, to PNG at 2× with no engine
  • charts-elastic:draw: every metric and xy example, light and dark: validate, resolve and draw to snapshot markup
  • charts-elastic:engine: every metric and xy example, light and dark, to PNG at 1×
  • charts-elastic:xy-quarter: one xy line at a quarter of the pack's input budget, to PNG at 2×
  • charts-elastic:xy-half: one xy line at half the pack's input budget, to PNG at 2×
  • charts-elastic:budget-draw: one xy line at the pack's whole input budget: validate, resolve and draw to snapshot markup
  • charts-elastic:budget-xy: one xy line at the pack's whole input budget, to PNG at 2×
  • charts-elastic:budget-grid: 40 xy panels in a grid sharing the whole input budget, to PNG at 2×
  • charts-elastic:burst-limited: 16 xy PNGs at 2× requested at once, through a limiter of 2
  • charts-elastic:burst-unlimited: 16 xy PNGs at 2× requested at once, no limiter
  • charts-elastic:one: one cold xy PNG at 2×, the one-off case

What takumi costs a fresh Node process on its own, drawing the slides pack's isomer-every-surface deck: the parent renders the deck with the snapshot surface once, and each child loads only takumi, registers the theme's font faces and draws that input. Loaded RSS is after creating the backend and reading the row's input, before any font registers; Render RSS is the peak above it before cleanup, and RSS after is after the run, a GC and, for pdf-close, close(). Growth is how much RSS after rose past the first pass of a repeated row. Native memory and the PDF worker's show only in RSS; Heap after is the main thread's alone. Peak RSS is the process high-water mark including cleanup. First output includes loading takumi, reading and parsing the prepared input, counting its bytes and a forced GC before drawing. Per-output time is the median, from the request to its output; under a burst it includes the wait in the limiter or for one of the libuv thread pool's threads, and UV_THREADPOOL_SIZE is in the environment. All outputs excludes the GC between passes. Both no-output rows draw one empty SVG, so their difference is the fonts' registration. Report only: nothing here is bounded yet.

Median of 5 runs per scenario. Node v22.22.0, darwin arm64, Apple M4 Pro (14 cores), 48 GB, NODE_ENV production, commit c627e577.

Scenario Outputs Pages per PDF, requested Input (KB) Peak RSS (MB) Loaded RSS (MB) Render RSS (MB) RSS after (MB) Growth (MB) Heap after (MB) First output (ms) Each output (ms) All outputs (ms) Largest output (KB)
backend 0 57 54 2 57 4.4 22
fonts 0 58 55 3 58 4.5 28
png-first 1 11 74 54 19 74 4.6 38 15.3 16 67
png-deck 33 223 94 56 37 93 4.9 38 5.9 208 94
png-deck-2x 33 223 153 56 97 152 4.9 47 15.7 487 218
png-repeat 660 223 102 56 46 102 8.7 4.9 36 4.2 2919 94
png-repeat-nocache 660 223 94 56 38 94 7.5 4.9 37 7.8 5039 94
png-burst-4 33 223 130 56 74 130 4.9 35 41.9 68 94
png-burst 33 223 128 56 72 128 4.9 35 40.2 66 94
svg-deck 33 223 67 56 11 67 5.0 29 1.3 49 92
pdf-deck 1 33 144 159 56 104 159 4.9 225 204.2 205 170
pdf-repeat 20 33 144 190 56 134 186 29.4 4.9 228 60.5 1366 170
pdf-close 1 33 144 159 56 103 133 4.8 237 214.6 215 170
pdf-page 1 1 11 131 55 77 131 4.7 132 110.3 111 29
  • backend: load takumi, create a backend and draw an empty 1×1 SVG, with no font registered
  • fonts: the same, with the slides theme's 10 font faces registered by that first draw
  • png-first: one slide to PNG at 1×, cold
  • png-deck: every slide to PNG at 1×, one at a time
  • png-deck-2x: every slide to PNG at 2×, one at a time
  • png-repeat: every slide to PNG at 1×, 20 times over, with the default 64 MiB cache
  • png-repeat-nocache: every slide to PNG at 1×, 20 times over, with cacheMaxBytes: 0
  • png-burst-4: every slide to PNG at 1×, requested at once through a limiter of 4
  • png-burst: every slide to PNG at 1×, requested at once, no limiter
  • svg-deck: every slide to SVG, one at a time
  • pdf-deck: the whole deck to one PDF, cold: the worker starts and registers the fonts
  • pdf-repeat: the whole deck to PDF 20 times over
  • pdf-close: the whole deck to PDF, then close() the worker
  • pdf-page: the deck's first slide to a one-page PDF, cold