replayBe the first to star Star0

Benchmark

Same pages, same masking, two recorders.

Againstrrweb 2.2.2 (@rrweb/record, from npm)
RunsChromium 149, CPU ×4, median of 5, 2026-11-23

Start

The freeze when recording begins
3.6×

shorter freeze than rrweb on lemonde.fr: 79 ms against 282 ms, on a phone-speed CPU.

PageLongest task in the 1.5 s after startElements
replayjardins-du-bassin.fr21 ms1,071
rrwebjardins-du-bassin.fr77 ms1,071
replayfr.wikipedia.org59 ms3,960
rrwebfr.wikipedia.org214 ms3,960
replaylemonde.fr79 ms5,033
rrweblemonde.fr282 ms5,033

A task over 50 ms is one the visitor can feel: a click that waits, a scroll that stutters. Measured from a Chromium trace limited to task boundaries, with the CPU slowed 4× (DevTools throttling) to stand for a mid-range phone. Without recorder, the longest task on these pages is 2 to 4 ms.

7.8 KBrecorder + sending, gzip (rrweb record alone: 23.6 KB)
29 mstotal blocking time on lemonde.fr (rrweb: 232 ms)
3.8×fewer bytes for the same 600 changes
1.2 MBmemory held after 10 min on lemonde.fr (rrweb: 5.5 MB)

Numbers

Per page, median of 5
No.jardins-du-bassin.fr · 1,071 elementsreplayrrweb
01Longest task at start21 ms77 ms
02Total blocking time, 1.5 s0 ms27 ms
03Main thread, 1.5 s, over the bare page25 ms79 ms
04Initial capture, gzip23.2 KB28.8 KB
05600 mutations, gzip1.0 KB3.8 KB
06600 mutations, main thread5 ms14 ms
No.fr.wikipedia.org · 3,960 elementsreplayrrweb
01Longest task at start59 ms214 ms
02Total blocking time, 1.5 s9 ms164 ms
03Main thread, 1.5 s, over the bare page95 ms223 ms
04Initial capture, gzip119.3 KB155.2 KB
05600 mutations, gzip1.0 KB3.8 KB
06600 mutations, main thread8 ms15 ms
No.lemonde.fr · 5,033 elementsreplayrrweb
01Longest task at start79 ms282 ms
02Total blocking time, 1.5 s29 ms232 ms
03Main thread, 1.5 s, over the bare page122 ms305 ms
04Initial capture, gzip177.5 KB236.2 KB
05600 mutations, gzip1.0 KB3.8 KB
06600 mutations, main thread8 ms17 ms

Initial capture: everything emitted in the 1.5 s after start, JSON, gzip as CompressionStream would. 600 mutations: 200 elements added, then 200 attributes and 200 texts changed, in one task. Sending is not counted for either.

Weight

gzip, minified
No.BundlereplayWhat is in it
01Recorder6.2 KBrecord
02Recorder + sending7.8 KBrecord + send: hashing, pieces, retries, beacon
03Everything8.9 KB+ shadow, iframes, cssom, canvas modules
04Player7.4 KBplay: mirror, checkpoints, seeking
05rrweb recorder23.6 KB@rrweb/record 2.2.2, no sending

Engines

No throttling, one run
No.Enginereplayrrweb
01WebKit 26.55 / 5 pages5 / 5 pages
02Firefox 151.05 / 5 pages5 / 5 pages

Recording starts and runs on every page, without an error in the page. The player is tested on the three engines by the library's own suite (below).

Method

Honest reading
01Frozen pages

lemonde.fr, a Wikipedia article and a small business site, recorded once as HAR archives. Every request is served from the archive, none from the network.

02Same options

Typed values masked, [data-va-mask] text masked, [data-va-block] blocked, shadow DOM and stylesheets recorded, no canvas.

03Cold start

A fresh browser context per run, recorders alternating, the recorder alone in the page.

04Not measured

Sending and compression, and how faithful each copy is. Fidelity has its own suite.

# the library's own suite
git clone https://github.com/voila-voila-dev/replay
cd replay && bun install
bun test test/unit        # format, sending
npm run test:browser      # 48 cases × 3 engines
node test/browser/fuzz.mjs # random mutations
npm run size              # fails over budget

Each browser case is also played back through a checkpoint, then the budget, a module that throws and the return from the back/forward cache, on Chromium, WebKit and Firefox. We wrote this bench and we make replay: read it as such. replay 0.4.0 (9a5b1db).

Recording sessions with rrweb? Tell us what it costs you.