How we measure Caliper

Three different clocks answer three different questions. Here is what went in, what came out and what each result leaves out.

Pick the right clock

Cold extraction, installed libraries and live Storybook requests tell different stories.

A comparison you can inspect

We fix the inputs, state what each tool reads and show where the timer starts and stops.

  1. 01 / inputs

    Pin real projects

    Five public repos at fixed commits, installed with their own package managers. Tests, stories, demos and declaration files are left out.

  2. 02 / work

    Read the same source

    RDT parses the filtered TSX files as one program. Caliper reads the same source with dependencies, full HTML attributes and unexported components on.

  3. 03 / clocks

    Show the boundary

    Five cold runs, seven installed-library runs and three interleaved before/after addon runs. Each result below says what its timer includes.

From a standing start

Same fixtures. Same Node harness. A useful first impression of what happens when a tool runs once.

One cold Node harness, one set of 21 fixtures
  • Caliper0.38 s
  • react-docgen0.52 s
  • RDT4.9 s

Apple M5 Max, five runs, October 2026. About 0.32 s of every result is shared harness startup.

The shared harness costs about 0.32 s, so the measured gap inside extraction is larger than the end-to-end bars suggest. The 0.38 s result is not an isolated Rust timer.

This corpus is copied fixtures with no installed package tree. It is good for the three-tool comparison, but it cannot tell us how Caliper handles types from a real project’s dependencies.

Real package types

The five-library run checks both the output and the cost of resolving imports.

Installed libraries, Caliper 0.4.0 versus RDT, October 23, 2026. Each tool’s cell shows time and peak RSS.
libraryCaliper time · memoryRDT time · memoryfaster
Mantine55 ms · 109 MiB1.3 s · 458 MiB24×
Chakra550 ms · 1,461 MiB24.8 s · 1,550 MiB45×
shadcn/ui115 ms · 181 MiB4.0 s · 1,149 MiB35×
Ant Design86 ms · 127 MiB2.4 s · 1,033 MiB28×
React Spectrum130 ms · 219 MiB2.2 s · 828 MiB17×

Seven runs per library on an Apple Silicon laptop; Caliper’s shown time is its best wall time. The 28× headline is the median of five library ratios. Caliper’s clock includes process start and JSON output; RDT’s parse time excludes Node startup.

Chakra is the memory outlier: 1,461 MiB with dependencies loaded. The speedup alone would hide that cost.

Speed needs a quality check

For parity, each repo is pinned to a commit and installed with its own package manager. We remove tests, stories, demos and declaration files, then give both tools the same source files. Caliper uses full HTML attributes, includes unexported components and loads installed dependencies.

We match components by file and name. On shared components we count RDT’s non-React props that Caliper finds; on shared props we compare Storybook control kinds and type text. A separate TypeScript 7.1 checker run tests type structure because RDT is not ground truth. Explore the prop results.

The weekly parity run checks these rates against a committed baseline and flags growing loss patterns. When comparing a new build with a base build, the harness interleaves their runs and flags a slowdown over 10% on any library. The baseline’s old timing is a record, not the speed gate.

Save, ask, answer

A warm session changes the work. This is the Storybook request path under active development.

1

Save a file

The component source changes while Storybook stays open.

2

Check freshness

The session checks saved edits before answering a docgen request.

3

Resolve the story

The on-demand path asks for the component the story needs.

4

Return prop docs

Storybook gets argTypes, defaults and descriptions.

On-demand resolution is in source for the next alpha. The published 0.5.0 addon already checks for saved edits, but these source results are not package benchmarks.

What the addon spent

129 real React Spectrum stories, with fallback disabled so every request reaches Caliper.

All 129 requests

71% less time
before2.17 s
after0.63 s

Median per story

73% less time
before15 ms
after4 ms

First request: 200 ms before, 150 ms after. Source builds interleaved, best of three.

The biggest win came from replacing a JavaScript directory sweep on every request with one native freshness check per story. Session startup also stopped sending every component’s props to JavaScript just to build an index.

These times cover the addon’s request path. They do not include browser rendering, Storybook’s UI work or a full page load. The before and after builds ran interleaved, best of three.

Pay for what you open

A separate Rust session experiment shows why on-demand lookup is promising.

Chakra session start45 ms

Lazy start, down from 352 ms in batch. Dependencies and full HTML attributes on.

peak after 50 components137 MiB

Lazy peak, down from 532 MiB in batch. The requests used a fixed selection.

Source experiment, October 24. Times run from process start to the last answer. This is the Rust API beneath the binding, not a Storybook page-load measurement. Lazy and batch answers were checked for equivalence.

What to remember

  • Version matters. The five-library parity numbers are Caliper 0.4.0 from October 23. Newer fixes and the next alpha need the same run again.
  • The clocks differ. Cold Node startup is shared; installed-library Caliper time includes process start while RDT time does not; addon request time leaves out browser rendering.
  • Project shape matters. A large dependency graph can raise both latency and memory. The pinned repos expose that cost better than fixture files alone.
  • TypeScript 7.1 is separate. The checker is a measurement oracle. Caliper’s semantic extraction pass is an experimental CLI opt-in in source, not a Storybook feature yet.

See the props