benchmark / gsap vs svg-scroll-drawmeasured 2026-11-16

GSAP vs svg-scroll-draw, measured at runtime

What each library costs the main thread while a page scrolls, scenario by scenario, in Chromium, Firefox and WebKit. Every number below is read from the results file the harness wrote, including every result GSAP wins. Bundle size is on the comparison page; this page is about the work done once the bytes have arrived.

Scenarios
6
Browsers
3
Runs per cell
15
Comparisons
1280
01summary

Findings.

Main-thread script + style + layout during the scroll, median per gesture, Chromium · 4× CPU · 800 px/s:

  • A · one path: GSAP 14.0 ms, svg-scroll-draw 4.85 ms (native CSS path), its JS engine 7.16 ms; the page with no library 2.73 ms. svg-scroll-draw lower, measurably.
  • B1 · 40 SVGs: GSAP 78.2 ms, svg-scroll-draw 17.7 ms (native CSS path), its JS engine 56.6 ms; the page with no library 4.53 ms. svg-scroll-draw lower, measurably.
  • B2 · stagger: GSAP 68.4 ms, svg-scroll-draw 42.5 ms (JS engine); the page with no library 4.57 ms. svg-scroll-draw lower, measurably.
  • C1 · reveal, idiomatic: GSAP 34.0 ms, svg-scroll-draw 65.0 ms (JS engine); the page with no library 4.15 ms. GSAP lower, measurably.
  • C2 · reveal, matched: GSAP 35.0 ms, svg-scroll-draw 61.0 ms (JS engine); the page with no library 4.00 ms. GSAP lower, measurably.
  • D · pin + draw: GSAP 47.0 ms, svg-scroll-draw 25.4 ms (JS engine); the page with no library 4.20 ms. svg-scroll-draw lower, measurably.

Across every metric, browser and throttle: svg-scroll-draw measurably lower in 312 comparisons, GSAP measurably lower in 159, and no measurable difference in 809. A side counts as lower only when the 95% bootstrap interval of the difference in medians excludes zero.

GSAP was measurably lower in

  • A · one path · Chromium · 1× CPU · 800 px/s · Style recalculation during the scroll: GSAP 7.81 ms against svg-scroll-draw 8.61 ms
  • A · one path · Chromium · 1× CPU · 800 px/s · Tap to next frame during the scroll: GSAP 24.6 ms against svg-scroll-draw 28.6 ms
  • A · one path · Chromium · 1× CPU · 800 px/s · First frame in the correct starting state: GSAP 24.0 ms against svg-scroll-draw 48.4 ms
  • A · one path · Chromium · 1× CPU · 800 px/s · Runs that showed the finished state first: GSAP 0% against svg-scroll-draw 100%
  • A · one path · Chromium · 1× CPU · 800 px/s · Style recalculation during the scroll: GSAP 7.81 ms against its JS engine 11.6 ms
  • A · one path · Chromium · 1× CPU · 800 px/s · First frame in the correct starting state: GSAP 24.0 ms against its JS engine 35.9 ms
  • A · one path · Chromium · 1× CPU · 800 px/s · Runs that showed the finished state first: GSAP 0% against its JS engine 100%
  • A · one path · Chromium · 1× CPU · 800 px/s · Style and layout (trace): GSAP 8.58 ms against its JS engine 11.2 ms
  • A · one path · Chromium · 1× CPU · 3000 px/s · Tap to next frame during the scroll: GSAP 20.7 ms against svg-scroll-draw 22.4 ms
  • A · one path · Chromium · 1× CPU · 3000 px/s · First frame in the correct starting state: GSAP 24.0 ms against svg-scroll-draw 45.3 ms
  • A · one path · Chromium · 1× CPU · 3000 px/s · Style recalculation during the scroll: GSAP 2.62 ms against its JS engine 3.50 ms
  • A · one path · Chromium · 4× CPU · 800 px/s · Layout during the scroll: GSAP 0.55 ms against svg-scroll-draw 0.92 ms
  • A · one path · Chromium · 4× CPU · 800 px/s · First frame in the correct starting state: GSAP 70.1 ms against svg-scroll-draw 85.2 ms
  • A · one path · Chromium · 4× CPU · 800 px/s · Layout during the scroll: GSAP 0.55 ms against its JS engine 0.90 ms
  • A · one path · Chromium · 4× CPU · 3000 px/s · First frame in the correct starting state: GSAP 69.9 ms against svg-scroll-draw 88.1 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 800 px/s · Style recalculation during the scroll: GSAP 64.1 ms against svg-scroll-draw 75.0 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 800 px/s · All main-thread tasks during the scroll: GSAP 763 ms against svg-scroll-draw 794 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 800 px/s · First frame in the correct starting state: GSAP 33.2 ms against svg-scroll-draw 49.5 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 800 px/s · Main-thread script + style + layout during the scroll: GSAP 232 ms against its JS engine 263 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 800 px/s · Style recalculation during the scroll: GSAP 64.1 ms against its JS engine 127 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 800 px/s · All main-thread tasks during the scroll: GSAP 763 ms against its JS engine 836 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 800 px/s · Main-thread work while parked 3 s: GSAP 32.5 ms against its JS engine 41.2 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 800 px/s · requestAnimationFrame calls while parked 3 s: GSAP 281 against its JS engine 900
  • B1 · 40 SVGs · Chromium · 1× CPU · 800 px/s · Style and layout (trace): GSAP 69.5 ms against its JS engine 117 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 800 px/s · Script, including rAF callbacks (trace): GSAP 311 ms against its JS engine 630 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 3000 px/s · First frame in the correct starting state: GSAP 34.2 ms against svg-scroll-draw 43.8 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 3000 px/s · Style recalculation during the scroll: GSAP 19.8 ms against its JS engine 33.0 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 3000 px/s · Main-thread work while parked 3 s: GSAP 29.6 ms against its JS engine 41.6 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 3000 px/s · requestAnimationFrame calls while parked 3 s: GSAP 193 against its JS engine 905
  • B1 · 40 SVGs · Chromium · 1× CPU · 3000 px/s · Style and layout (trace): GSAP 25.2 ms against its JS engine 33.3 ms
  • B1 · 40 SVGs · Chromium · 1× CPU · 3000 px/s · Script, including rAF callbacks (trace): GSAP 122 ms against its JS engine 178 ms
  • B1 · 40 SVGs · Chromium · 4× CPU · 800 px/s · Style recalculation during the scroll: GSAP 13.5 ms against its JS engine 24.9 ms
  • B1 · 40 SVGs · Chromium · 4× CPU · 800 px/s · Frame interval, p95: GSAP 16.7 ms against its JS engine 16.8 ms
  • B1 · 40 SVGs · Chromium · 4× CPU · 800 px/s · Tap to next frame during the scroll: GSAP 14.3 ms against its JS engine 15.8 ms
  • B1 · 40 SVGs · Chromium · 4× CPU · 800 px/s · Main-thread work while parked 3 s: GSAP 5.38 ms against its JS engine 7.14 ms
  • B1 · 40 SVGs · Chromium · 4× CPU · 800 px/s · requestAnimationFrame calls while parked 3 s: GSAP 206 against its JS engine 900
  • B1 · 40 SVGs · Chromium · 4× CPU · 800 px/s · Paint, pre-paint, layerize and commit (trace): GSAP 125 ms against its JS engine 176 ms
  • B1 · 40 SVGs · Chromium · 4× CPU · 800 px/s · Style and layout (trace): GSAP 19.7 ms against its JS engine 35.5 ms
  • B1 · 40 SVGs · Chromium · 4× CPU · 800 px/s · Script, including rAF callbacks (trace): GSAP 110 ms against its JS engine 222 ms
  • B1 · 40 SVGs · Chromium · 4× CPU · 3000 px/s · requestAnimationFrame calls while parked 3 s: GSAP 210 against its JS engine 900
  • B2 · stagger · Chromium · 1× CPU · 800 px/s · Style recalculation during the scroll: GSAP 71.4 ms against svg-scroll-draw 94.9 ms
  • B2 · stagger · Chromium · 1× CPU · 800 px/s · Style and layout (trace): GSAP 73.5 ms against svg-scroll-draw 95.1 ms
  • B2 · stagger · Chromium · 1× CPU · 800 px/s · Script, including rAF callbacks (trace): GSAP 266 ms against svg-scroll-draw 345 ms
  • B2 · stagger · Chromium · 1× CPU · 3000 px/s · Style recalculation during the scroll: GSAP 20.5 ms against svg-scroll-draw 23.7 ms
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 800 px/s · Main-thread script + style + layout during the scroll: GSAP 137 ms against svg-scroll-draw 243 ms
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 800 px/s · Script during the scroll: GSAP 83.4 ms against svg-scroll-draw 113 ms
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 800 px/s · Style recalculation during the scroll: GSAP 52.5 ms against svg-scroll-draw 129 ms
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 800 px/s · All main-thread tasks during the scroll: GSAP 563 ms against svg-scroll-draw 692 ms
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 800 px/s · Main-thread work while parked 3 s: GSAP 30.7 ms against svg-scroll-draw 57.7 ms
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 800 px/s · requestAnimationFrame calls while parked 3 s: GSAP 193 against svg-scroll-draw 543
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 800 px/s · Style and layout (trace): GSAP 45.0 ms against svg-scroll-draw 111 ms
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 800 px/s · Script, including rAF callbacks (trace): GSAP 167 ms against svg-scroll-draw 537 ms
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 3000 px/s · Style recalculation during the scroll: GSAP 20.2 ms against svg-scroll-draw 34.1 ms
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 3000 px/s · Main-thread work while parked 3 s: GSAP 35.7 ms against svg-scroll-draw 63.8 ms
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 3000 px/s · requestAnimationFrame calls while parked 3 s: GSAP 211 against svg-scroll-draw 543
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 3000 px/s · Style and layout (trace): GSAP 18.0 ms against svg-scroll-draw 32.0 ms
  • C1 · reveal, idiomatic · Chromium · 1× CPU · 3000 px/s · Script, including rAF callbacks (trace): GSAP 80.3 ms against svg-scroll-draw 153 ms
  • C1 · reveal, idiomatic · Chromium · 4× CPU · 800 px/s · Main-thread script + style + layout during the scroll: GSAP 34.0 ms against svg-scroll-draw 65.0 ms
  • C1 · reveal, idiomatic · Chromium · 4× CPU · 800 px/s · Style recalculation during the scroll: GSAP 10.5 ms against svg-scroll-draw 30.7 ms
  • C1 · reveal, idiomatic · Chromium · 4× CPU · 800 px/s · Main-thread work while parked 3 s: GSAP 6.79 ms against svg-scroll-draw 11.0 ms
  • C1 · reveal, idiomatic · Chromium · 4× CPU · 800 px/s · requestAnimationFrame calls while parked 3 s: GSAP 192 against svg-scroll-draw 540
  • C1 · reveal, idiomatic · Chromium · 4× CPU · 800 px/s · Style and layout (trace): GSAP 10.9 ms against svg-scroll-draw 43.1 ms
  • C1 · reveal, idiomatic · Chromium · 4× CPU · 800 px/s · Script, including rAF callbacks (trace): GSAP 65.2 ms against svg-scroll-draw 230 ms
  • C1 · reveal, idiomatic · Chromium · 4× CPU · 3000 px/s · Style recalculation during the scroll: GSAP 4.60 ms against svg-scroll-draw 9.45 ms
  • C1 · reveal, idiomatic · Chromium · 4× CPU · 3000 px/s · Main-thread work while parked 3 s: GSAP 7.59 ms against svg-scroll-draw 12.5 ms
  • C1 · reveal, idiomatic · Chromium · 4× CPU · 3000 px/s · requestAnimationFrame calls while parked 3 s: GSAP 208 against svg-scroll-draw 540
  • C1 · reveal, idiomatic · Chromium · 4× CPU · 3000 px/s · Script, including rAF callbacks (trace): GSAP 43.6 ms against svg-scroll-draw 71.4 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 800 px/s · Main-thread script + style + layout during the scroll: GSAP 140 ms against svg-scroll-draw 245 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 800 px/s · Script during the scroll: GSAP 83.7 ms against svg-scroll-draw 114 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 800 px/s · Style recalculation during the scroll: GSAP 55.2 ms against svg-scroll-draw 130 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 800 px/s · All main-thread tasks during the scroll: GSAP 573 ms against svg-scroll-draw 711 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 800 px/s · Main-thread work while parked 3 s: GSAP 35.9 ms against svg-scroll-draw 61.0 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 800 px/s · requestAnimationFrame calls while parked 3 s: GSAP 193 against svg-scroll-draw 540
  • C2 · reveal, matched · Chromium · 1× CPU · 800 px/s · Style and layout (trace): GSAP 44.7 ms against svg-scroll-draw 111 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 800 px/s · Script, including rAF callbacks (trace): GSAP 176 ms against svg-scroll-draw 544 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 3000 px/s · Main-thread script + style + layout during the scroll: GSAP 55.4 ms against svg-scroll-draw 70.6 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 3000 px/s · Style recalculation during the scroll: GSAP 18.5 ms against svg-scroll-draw 36.5 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 3000 px/s · All main-thread tasks during the scroll: GSAP 213 ms against svg-scroll-draw 239 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 3000 px/s · Main-thread work while parked 3 s: GSAP 34.0 ms against svg-scroll-draw 61.1 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 3000 px/s · requestAnimationFrame calls while parked 3 s: GSAP 211 against svg-scroll-draw 543
  • C2 · reveal, matched · Chromium · 1× CPU · 3000 px/s · Style and layout (trace): GSAP 17.4 ms against svg-scroll-draw 32.3 ms
  • C2 · reveal, matched · Chromium · 1× CPU · 3000 px/s · Script, including rAF callbacks (trace): GSAP 66.6 ms against svg-scroll-draw 150 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 800 px/s · Main-thread script + style + layout during the scroll: GSAP 35.0 ms against svg-scroll-draw 61.0 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 800 px/s · Script during the scroll: GSAP 23.4 ms against svg-scroll-draw 29.6 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 800 px/s · Style recalculation during the scroll: GSAP 11.5 ms against svg-scroll-draw 28.8 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 800 px/s · All main-thread tasks during the scroll: GSAP 179 ms against svg-scroll-draw 232 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 800 px/s · Main-thread work while parked 3 s: GSAP 6.95 ms against svg-scroll-draw 10.7 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 800 px/s · requestAnimationFrame calls while parked 3 s: GSAP 192 against svg-scroll-draw 540
  • C2 · reveal, matched · Chromium · 4× CPU · 800 px/s · Paint, pre-paint, layerize and commit (trace): GSAP 156 ms against svg-scroll-draw 199 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 800 px/s · Style and layout (trace): GSAP 10.2 ms against svg-scroll-draw 46.4 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 800 px/s · Script, including rAF callbacks (trace): GSAP 51.8 ms against svg-scroll-draw 231 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 3000 px/s · Main-thread script + style + layout during the scroll: GSAP 14.6 ms against svg-scroll-draw 19.7 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 3000 px/s · Style recalculation during the scroll: GSAP 4.38 ms against svg-scroll-draw 8.47 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 3000 px/s · Main-thread work while parked 3 s: GSAP 7.45 ms against svg-scroll-draw 10.2 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 3000 px/s · requestAnimationFrame calls while parked 3 s: GSAP 251 against svg-scroll-draw 540
  • C2 · reveal, matched · Chromium · 4× CPU · 3000 px/s · Style and layout (trace): GSAP 6.87 ms against svg-scroll-draw 20.5 ms
  • C2 · reveal, matched · Chromium · 4× CPU · 3000 px/s · Script, including rAF callbacks (trace): GSAP 23.9 ms against svg-scroll-draw 81.5 ms
  • D · pin + draw · Chromium · 1× CPU · 800 px/s · Main-thread script + style + layout during the scroll: GSAP 91.3 ms against svg-scroll-draw 100 ms
  • D · pin + draw · Chromium · 1× CPU · 800 px/s · Style recalculation during the scroll: GSAP 24.8 ms against svg-scroll-draw 35.2 ms
  • D · pin + draw · Chromium · 1× CPU · 800 px/s · All main-thread tasks during the scroll: GSAP 316 ms against svg-scroll-draw 351 ms
  • D · pin + draw · Chromium · 1× CPU · 800 px/s · First frame in the correct starting state: GSAP 35.5 ms against svg-scroll-draw 46.9 ms
  • D · pin + draw · Chromium · 1× CPU · 3000 px/s · Style recalculation during the scroll: GSAP 7.26 ms against svg-scroll-draw 10.4 ms
  • D · pin + draw · Chromium · 1× CPU · 3000 px/s · First frame in the correct starting state: GSAP 32.3 ms against svg-scroll-draw 45.0 ms
  • A · one path · Firefox · 1× CPU · 800 px/s · Frames longer than 1.5 × vsync: GSAP 0.00% against its JS engine 0.26%
  • A · one path · Firefox · 1× CPU · 800 px/s · Longest frame: GSAP 18.7 ms against its JS engine 38.5 ms
  • A · one path · Firefox · 1× CPU · 3000 px/s · Frame interval, p99: GSAP 18.5 ms against its JS engine 18.6 ms
  • A · one path · Firefox · 1× CPU · 3000 px/s · Frames longer than 1.5 × vsync: GSAP 0.00% against its JS engine 0.65%
  • A · one path · Firefox · 1× CPU · 3000 px/s · Longest frame: GSAP 18.6 ms against its JS engine 37.9 ms
  • B1 · 40 SVGs · Firefox · 1× CPU · 800 px/s · Frames longer than 1.5 × vsync: GSAP 0.00% against its JS engine 0.14%
  • B1 · 40 SVGs · Firefox · 1× CPU · 800 px/s · Longest frame: GSAP 18.7 ms against its JS engine 38.7 ms
  • B1 · 40 SVGs · Firefox · 1× CPU · 800 px/s · requestAnimationFrame calls while parked 3 s: GSAP 281 against its JS engine 900
  • B1 · 40 SVGs · Firefox · 1× CPU · 3000 px/s · Frames longer than 1.5 × vsync: GSAP 0.00% against its JS engine 0.36%
  • B1 · 40 SVGs · Firefox · 1× CPU · 3000 px/s · Longest frame: GSAP 18.7 ms against its JS engine 37.9 ms
  • B1 · 40 SVGs · Firefox · 1× CPU · 3000 px/s · requestAnimationFrame calls while parked 3 s: GSAP 240 against its JS engine 905
  • B2 · stagger · Firefox · 1× CPU · 800 px/s · Frame interval, p99: GSAP 18.5 ms against svg-scroll-draw 18.6 ms
  • B2 · stagger · Firefox · 1× CPU · 800 px/s · Frames longer than 1.5 × vsync: GSAP 0.00% against svg-scroll-draw 0.15%
  • B2 · stagger · Firefox · 1× CPU · 800 px/s · Longest frame: GSAP 18.7 ms against svg-scroll-draw 39.0 ms
  • B2 · stagger · Firefox · 1× CPU · 3000 px/s · Frames longer than 1.5 × vsync: GSAP 0.00% against svg-scroll-draw 0.39%
  • B2 · stagger · Firefox · 1× CPU · 3000 px/s · Longest frame: GSAP 18.6 ms against svg-scroll-draw 38.1 ms
  • C1 · reveal, idiomatic · Firefox · 1× CPU · 800 px/s · Frames longer than 1.5 × vsync: GSAP 0.00% against svg-scroll-draw 0.17%
  • C1 · reveal, idiomatic · Firefox · 1× CPU · 800 px/s · Longest frame: GSAP 18.7 ms against svg-scroll-draw 37.8 ms
  • C1 · reveal, idiomatic · Firefox · 1× CPU · 800 px/s · requestAnimationFrame calls while parked 3 s: GSAP 192 against svg-scroll-draw 540
  • C1 · reveal, idiomatic · Firefox · 1× CPU · 3000 px/s · Frame interval, p99: GSAP 18.5 ms against svg-scroll-draw 18.6 ms
  • C1 · reveal, idiomatic · Firefox · 1× CPU · 3000 px/s · Frames longer than 1.5 × vsync: GSAP 0.00% against svg-scroll-draw 0.45%
  • C1 · reveal, idiomatic · Firefox · 1× CPU · 3000 px/s · Longest frame: GSAP 18.6 ms against svg-scroll-draw 37.2 ms
  • C1 · reveal, idiomatic · Firefox · 1× CPU · 3000 px/s · requestAnimationFrame calls while parked 3 s: GSAP 255 against svg-scroll-draw 543
  • C2 · reveal, matched · Firefox · 1× CPU · 800 px/s · Frames longer than 1.5 × vsync: GSAP 0.00% against svg-scroll-draw 0.17%
  • C2 · reveal, matched · Firefox · 1× CPU · 800 px/s · Longest frame: GSAP 18.7 ms against svg-scroll-draw 38.2 ms
  • C2 · reveal, matched · Firefox · 1× CPU · 800 px/s · requestAnimationFrame calls while parked 3 s: GSAP 193 against svg-scroll-draw 540
  • C2 · reveal, matched · Firefox · 1× CPU · 3000 px/s · Frames longer than 1.5 × vsync: GSAP 0.00% against svg-scroll-draw 0.45%
  • C2 · reveal, matched · Firefox · 1× CPU · 3000 px/s · Longest frame: GSAP 18.6 ms against svg-scroll-draw 37.5 ms
  • C2 · reveal, matched · Firefox · 1× CPU · 3000 px/s · requestAnimationFrame calls while parked 3 s: GSAP 193 against svg-scroll-draw 543
  • D · pin + draw · Firefox · 1× CPU · 800 px/s · Frame interval, p99: GSAP 18.5 ms against svg-scroll-draw 18.6 ms
  • D · pin + draw · Firefox · 1× CPU · 800 px/s · Frames longer than 1.5 × vsync: GSAP 0.00% against svg-scroll-draw 0.19%
  • D · pin + draw · Firefox · 1× CPU · 800 px/s · Longest frame: GSAP 18.7 ms against svg-scroll-draw 38.7 ms
  • D · pin + draw · Firefox · 1× CPU · 3000 px/s · Frames longer than 1.5 × vsync: GSAP 0.00% against svg-scroll-draw 0.48%
  • D · pin + draw · Firefox · 1× CPU · 3000 px/s · Longest frame: GSAP 18.6 ms against svg-scroll-draw 38.0 ms
  • B1 · 40 SVGs · WebKit · 1× CPU · 800 px/s · Tap to next frame during the scroll: GSAP 15.7 ms against svg-scroll-draw 16.7 ms
  • B1 · 40 SVGs · WebKit · 1× CPU · 800 px/s · Tap to next frame during the scroll: GSAP 15.7 ms against its JS engine 17.3 ms
  • B1 · 40 SVGs · WebKit · 1× CPU · 800 px/s · requestAnimationFrame calls while parked 3 s: GSAP 243 against its JS engine 900
  • B1 · 40 SVGs · WebKit · 1× CPU · 3000 px/s · Tap to next frame during the scroll: GSAP 15.7 ms against svg-scroll-draw 17.0 ms
  • B1 · 40 SVGs · WebKit · 1× CPU · 3000 px/s · Tap to next frame during the scroll: GSAP 15.7 ms against its JS engine 17.3 ms
  • B1 · 40 SVGs · WebKit · 1× CPU · 3000 px/s · requestAnimationFrame calls while parked 3 s: GSAP 202 against its JS engine 905
  • B2 · stagger · WebKit · 1× CPU · 800 px/s · Tap input delay during the scroll: GSAP 1.00 ms against svg-scroll-draw 1.33 ms
  • B2 · stagger · WebKit · 1× CPU · 800 px/s · Tap to next frame during the scroll: GSAP 15.3 ms against svg-scroll-draw 17.7 ms
  • B2 · stagger · WebKit · 1× CPU · 3000 px/s · Tap to next frame during the scroll: GSAP 15.3 ms against svg-scroll-draw 17.7 ms
  • B2 · stagger · WebKit · 1× CPU · 3000 px/s · First frame in the correct starting state: GSAP 22.0 ms against svg-scroll-draw 34.0 ms
  • C1 · reveal, idiomatic · WebKit · 1× CPU · 800 px/s · Tap to next frame during the scroll: GSAP 16.3 ms against svg-scroll-draw 18.0 ms
  • C1 · reveal, idiomatic · WebKit · 1× CPU · 800 px/s · Setup call: GSAP 4.00 ms against svg-scroll-draw 8.00 ms
  • C1 · reveal, idiomatic · WebKit · 1× CPU · 800 px/s · requestAnimationFrame calls while parked 3 s: GSAP 193 against svg-scroll-draw 543
  • C1 · reveal, idiomatic · WebKit · 1× CPU · 3000 px/s · Tap to next frame during the scroll: GSAP 16.0 ms against svg-scroll-draw 18.3 ms
  • C1 · reveal, idiomatic · WebKit · 1× CPU · 3000 px/s · Setup call: GSAP 5.00 ms against svg-scroll-draw 8.00 ms
  • C1 · reveal, idiomatic · WebKit · 1× CPU · 3000 px/s · requestAnimationFrame calls while parked 3 s: GSAP 259 against svg-scroll-draw 543
  • C2 · reveal, matched · WebKit · 1× CPU · 800 px/s · Tap to next frame during the scroll: GSAP 15.0 ms against svg-scroll-draw 18.3 ms
  • C2 · reveal, matched · WebKit · 1× CPU · 800 px/s · requestAnimationFrame calls while parked 3 s: GSAP 193 against svg-scroll-draw 540
  • C2 · reveal, matched · WebKit · 1× CPU · 3000 px/s · Tap to next frame during the scroll: GSAP 15.3 ms against svg-scroll-draw 18.0 ms
  • C2 · reveal, matched · WebKit · 1× CPU · 3000 px/s · requestAnimationFrame calls while parked 3 s: GSAP 193 against svg-scroll-draw 540
  • D · pin + draw · WebKit · 1× CPU · 800 px/s · Tap to next frame during the scroll: GSAP 15.3 ms against svg-scroll-draw 16.3 ms
  • D · pin + draw · WebKit · 1× CPU · 3000 px/s · Tap to next frame during the scroll: GSAP 15.0 ms against svg-scroll-draw 16.0 ms
02environment

Machine and versions.

Measured2026-11-16 00:14 UTC, in 581.7 min
MachineApple M5, 10 cores, 24 GB, darwin 25.6.0, power: ac
Chromium158.0.8127.18, 60 Hz, scroll timelines supported, GPU: ANGLE (Apple, ANGLE Metal Renderer: Apple M5, Unspecified Version)
Firefox159.0, 60 Hz, scroll timelines supported, GPU: Apple M1, or similar
WebKit27.2, 59 Hz, scroll timelines supported, GPU: Apple GPU
GSAP3.15.0: gsap.min.js, ScrollTrigger.min.js, DrawSVGPlugin.min.js, unmodified
svg-scroll-draw2.27.3 at 22ca77d, ES modules from dist
HarnessNode v22.15.0, Playwright 1.65.0, seed 20261113

Raw results, every sample: results.json.

03A · one path

One SVG path drawn on scroll.

One long path in a 1200 × 600 SVG, with three viewports of text above and below. The core use case.

svg-scroll-draw takes its native CSS path wherever the browser supports scroll timelines; “JS engine” is the same call with native: false.

3.1

The code each page runs

GSAP 3.15.0

a-draw-one.gsap.js5 lines
gsap.registerPlugin(ScrollTrigger, DrawSVGPlugin);
gsap.fromTo('#a path', { drawSVG: '0%' }, {
  drawSVG: '100%', ease: 'none',
  scrollTrigger: { trigger: '#a', start: 'top bottom', end: 'bottom top', scrub: true },
});

svg-scroll-draw 2.27.3

a-draw-one.ours.js3 lines
import { scrollDraw } from 'svg-scroll-draw';

scrollDraw('#a');

svg-scroll-draw, JS engine

a-draw-one.ours-js.js3 lines
import { scrollDraw } from 'svg-scroll-draw';

scrollDraw('#a', { native: false });

Open the scenario page: No library · GSAP 3.15.0 · svg-scroll-draw 2.27.3 · svg-scroll-draw, JS engine

Chromium · 4× CPU · 800 px/s
  • No library2.73 ms, p90 3.98 ms
  • GSAP 3.15.014.0 ms, p90 17.4 ms
  • svg-scroll-draw 2.27.34.85 ms, p90 6.28 ms
  • svg-scroll-draw, JS engine7.16 ms, p90 14.9 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.28%, p90 0.28%
  • GSAP 3.15.00.28%, p90 0.28%
  • svg-scroll-draw 2.27.30.28%, p90 0.28%
  • svg-scroll-draw, JS engine0.28%, p90 0.28%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG path drawn on scroll, Chromium · 4× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)2.73p90 3.9814.0p90 17.44.85 ✓ lowerp90 6.287.16 ✓ lowerp90 14.9
Script during the scroll (ms)1.66p90 2.8912.0p90 14.11.87 ✓ lowerp90 2.313.92 ✓ lowerp90 7.30
Style recalculation during the scroll (ms)0.70p90 1.052.04p90 2.371.97p90 3.352.59p90 7.07
Layout during the scroll (ms)0.36p90 0.880.55 ✓ lowerp90 1.140.92p90 1.360.90p90 1.33
All main-thread tasks during the scroll (ms)45.2p90 52.866.6p90 89.757.0 ✓ lowerp90 82.557.6p90 99.3
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.7p90 16.816.7p90 16.816.7p90 16.816.7p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.28p90 0.280.28p90 0.280.28 ✓ lowerp90 0.280.28 ✓ lowerp90 0.28
Longest frame (ms)33.3p90 33.433.4p90 33.433.3p90 33.433.4p90 33.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.23p90 1.511.10p90 1.331.10p90 1.251.13p90 1.41
Tap to next frame during the scroll (ms)16.5p90 17.715.7p90 18.516.7p90 17.215.7p90 18.3
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)14.4p90 17.829.5p90 41.633.5p90 37.141.1p90 53.3
Style and layout (trace) (ms)1.27p90 1.703.46p90 4.612.43p90 4.003.51p90 6.00
Script, including rAF callbacks (trace) (ms)9.54p90 11.324.9p90 37.78.47 ✓ lowerp90 10.324.7p90 29.6
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—12.5p90 13.24.90 ✓ lowerp90 5.064.90 ✓ lowerp90 5.30
Main-thread work from navigation to ready (ms)46.6p90 48.483.1p90 88.069.3 ✓ lowerp90 74.268.7 ✓ lowerp90 74.8
First frame in the correct starting state (ms)—70.1 ✓ lowerp90 74.185.2p90 90.272.6p90 78.4
Runs that showed the finished state first—100%p90 100%100%p90 100%100%p90 100%
JS heap after ready (MB)2.29p90 2.292.91p90 2.912.54 ✓ lowerp90 2.542.49 ✓ lowerp90 2.49
Parked mid-page
Main-thread work while parked 3 s (ms)0.32p90 0.896.06p90 11.30.39 ✓ lowerp90 0.895.50p90 15.2
requestAnimationFrame calls while parked 3 s0.00p90 0.00282p90 2820.00 ✓ lowerp90 0.00180 ✓ lowerp90 180
Chromium · 4× CPU · 3000 px/s
  • No library2.57 ms, p90 3.22 ms
  • GSAP 3.15.010.0 ms, p90 11.4 ms
  • svg-scroll-draw 2.27.32.82 ms, p90 4.59 ms
  • svg-scroll-draw, JS engine4.51 ms, p90 6.16 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.99%, p90 1.00%
  • GSAP 3.15.01.00%, p90 1.00%
  • svg-scroll-draw 2.27.30.99%, p90 0.99%
  • svg-scroll-draw, JS engine0.99%, p90 0.99%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG path drawn on scroll, Chromium · 4× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)2.57p90 3.2210.0p90 11.42.82 ✓ lowerp90 4.594.51 ✓ lowerp90 6.16
Script during the scroll (ms)1.07p90 2.228.29p90 9.851.14 ✓ lowerp90 2.402.74 ✓ lowerp90 4.90
Style recalculation during the scroll (ms)0.44p90 1.140.93p90 1.780.84p90 1.861.15p90 1.97
Layout during the scroll (ms)0.76p90 1.580.74p90 1.160.66p90 1.280.68p90 1.22
All main-thread tasks during the scroll (ms)30.8p90 40.142.4p90 46.935.7 ✓ lowerp90 45.938.7 ✓ lowerp90 45.2
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.8p90 16.816.7p90 16.816.8p90 16.816.7p90 16.8
Frame interval, p99 (ms)16.8p90 16.917.0p90 17.016.8 ✓ lowerp90 16.816.8 ✓ lowerp90 16.8
Frames longer than 1.5 × vsync (%)0.99p90 1.001.00p90 1.000.99 ✓ lowerp90 0.990.99 ✓ lowerp90 0.99
Longest frame (ms)33.3p90 33.333.3p90 33.433.4p90 33.433.3p90 33.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.07p90 1.471.10p90 1.201.17p90 1.391.10p90 1.26
Tap to next frame during the scroll (ms)13.8p90 18.012.7p90 15.712.9p90 15.513.3p90 16.6
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)5.64p90 7.9711.7p90 13.910.3p90 10.97.89p90 11.4
Style and layout (trace) (ms)1.25p90 1.751.93p90 2.601.76p90 2.321.53p90 2.77
Script, including rAF callbacks (trace) (ms)4.68p90 9.9114.3p90 16.84.57 ✓ lowerp90 9.386.30 ✓ lowerp90 9.69
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—12.4p90 13.14.90 ✓ lowerp90 5.464.80 ✓ lowerp90 5.26
Main-thread work from navigation to ready (ms)44.6p90 51.182.8p90 88.470.8 ✓ lowerp90 77.065.7 ✓ lowerp90 69.6
First frame in the correct starting state (ms)—69.9 ✓ lowerp90 76.788.1p90 92.467.7p90 74.7
Runs that showed the finished state first—100%p90 100%100%p90 100%100%p90 100%
JS heap after ready (MB)2.29p90 2.292.91p90 2.912.54 ✓ lowerp90 2.542.49 ✓ lowerp90 2.49
Parked mid-page
Main-thread work while parked 3 s (ms)0.79p90 1.225.22p90 7.050.43 ✓ lowerp90 1.175.66p90 8.53
requestAnimationFrame calls while parked 3 s0.00p90 0.00282p90 2820.00 ✓ lowerp90 0.00180 ✓ lowerp90 180
Chromium · 1× CPU · 800 px/s
  • No library7.67 ms, p90 8.97 ms
  • GSAP 3.15.042.3 ms, p90 44.8 ms
  • svg-scroll-draw 2.27.316.3 ms, p90 17.2 ms
  • svg-scroll-draw, JS engine31.6 ms, p90 33.5 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.28%, p90 0.28%
  • GSAP 3.15.00.28%, p90 0.28%
  • svg-scroll-draw 2.27.30.28%, p90 0.28%
  • svg-scroll-draw, JS engine0.28%, p90 0.28%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG path drawn on scroll, Chromium · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)7.67p90 8.9742.3p90 44.816.3 ✓ lowerp90 17.231.6 ✓ lowerp90 33.5
Script during the scroll (ms)6.47p90 7.7133.6p90 36.06.83 ✓ lowerp90 7.6519.8 ✓ lowerp90 20.7
Style recalculation during the scroll (ms)0.56p90 0.657.81 ✓ lowerp90 8.488.61p90 9.3011.6p90 12.1
Layout during the scroll (ms)0.68p90 0.740.70p90 0.830.68p90 0.800.64p90 0.73
All main-thread tasks during the scroll (ms)139p90 152221p90 230199 ✓ lowerp90 207204 ✓ lowerp90 214
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.7p90 16.816.7p90 16.816.7p90 16.816.7p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.28p90 0.280.28p90 0.280.28p90 0.280.28p90 0.28
Longest frame (ms)49.9p90 50.049.9p90 50.150.0p90 50.050.0p90 50.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.00p90 1.170.97p90 1.191.00p90 1.070.93p90 1.10
Tap to next frame during the scroll (ms)22.9p90 27.924.6 ✓ lowerp90 27.428.6p90 29.624.4p90 28.1
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)40.2p90 44.280.6p90 82.980.1p90 81.681.5p90 83.8
Style and layout (trace) (ms)1.10p90 1.178.58 ✓ lowerp90 8.848.46p90 8.8311.2p90 12.2
Script, including rAF callbacks (trace) (ms)27.3p90 29.672.3p90 73.826.8 ✓ lowerp90 29.064.8 ✓ lowerp90 67.9
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—3.00p90 3.061.20 ✓ lowerp90 2.961.30 ✓ lowerp90 3.02
Main-thread work from navigation to ready (ms)16.5p90 18.634.3p90 37.021.7 ✓ lowerp90 23.721.9 ✓ lowerp90 26.4
First frame in the correct starting state (ms)—24.0 ✓ lowerp90 27.948.4p90 55.935.9p90 45.4
Runs that showed the finished state first—0% ✓ lowerp90 60%100%p90 100%100%p90 100%
JS heap after ready (MB)2.29p90 2.292.91p90 2.912.54 ✓ lowerp90 2.542.49 ✓ lowerp90 2.49
Parked mid-page
Main-thread work while parked 3 s (ms)0.74p90 0.8430.8p90 35.50.97 ✓ lowerp90 1.0230.0p90 36.3
requestAnimationFrame calls while parked 3 s0.00p90 0.00283p90 2830.00 ✓ lowerp90 0.00181 ✓ lowerp90 181
Chromium · 1× CPU · 3000 px/s
  • No library3.76 ms, p90 4.06 ms
  • GSAP 3.15.017.0 ms, p90 18.4 ms
  • svg-scroll-draw 2.27.35.76 ms, p90 6.33 ms
  • svg-scroll-draw, JS engine10.6 ms, p90 11.4 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library1.00%, p90 1.01%
  • GSAP 3.15.01.01%, p90 1.01%
  • svg-scroll-draw 2.27.31.00%, p90 1.01%
  • svg-scroll-draw, JS engine1.00%, p90 1.01%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG path drawn on scroll, Chromium · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)3.76p90 4.0617.0p90 18.45.76 ✓ lowerp90 6.3310.6 ✓ lowerp90 11.4
Script during the scroll (ms)2.58p90 2.8713.7p90 14.92.45 ✓ lowerp90 2.716.59 ✓ lowerp90 6.92
Style recalculation during the scroll (ms)0.53p90 0.652.62 ✓ lowerp90 2.862.65p90 2.873.50p90 3.81
Layout during the scroll (ms)0.64p90 0.750.79p90 0.860.67 ✓ lowerp90 0.710.66 ✓ lowerp90 0.74
All main-thread tasks during the scroll (ms)73.4p90 78.495.2p90 10284.5 ✓ lowerp90 89.891.1 ✓ lowerp90 95.3
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.7p90 16.816.7p90 16.816.8p90 16.816.8p90 16.8
Frame interval, p99 (ms)17.1p90 17.517.5p90 17.517.1p90 17.517.1p90 17.5
Frames longer than 1.5 × vsync (%)1.00p90 1.011.01p90 1.011.00p90 1.011.00p90 1.01
Longest frame (ms)50.0p90 50.150.0p90 50.150.0p90 50.150.0p90 50.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.03p90 1.191.07p90 1.221.00p90 1.151.00p90 1.15
Tap to next frame during the scroll (ms)20.9p90 24.620.7 ✓ lowerp90 23.922.4p90 25.922.3p90 24.1
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)12.1p90 12.323.9p90 24.924.4p90 25.922.1p90 23.5
Style and layout (trace) (ms)1.19p90 1.263.49p90 3.783.48p90 3.593.83p90 4.10
Script, including rAF callbacks (trace) (ms)9.06p90 9.2827.1p90 28.39.70 ✓ lowerp90 11.419.7 ✓ lowerp90 21.1
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—2.90p90 3.101.20 ✓ lowerp90 2.901.80p90 3.14
Main-thread work from navigation to ready (ms)17.0p90 17.635.7p90 37.221.8 ✓ lowerp90 23.021.2 ✓ lowerp90 24.0
First frame in the correct starting state (ms)—24.0 ✓ lowerp90 30.745.3p90 49.225.8p90 36.6
Runs that showed the finished state first—0%p90 100%100%p90 100%100%p90 100%
JS heap after ready (MB)2.29p90 2.292.91p90 2.912.54 ✓ lowerp90 2.542.49 ✓ lowerp90 2.49
Parked mid-page
Main-thread work while parked 3 s (ms)1.13p90 1.2931.2p90 34.71.09 ✓ lowerp90 1.2734.5p90 42.1
requestAnimationFrame calls while parked 3 s0.00p90 0.00283p90 2830.00 ✓ lowerp90 0.00181 ✓ lowerp90 181
Firefox · 1× CPU · 800 px/s
  • No library0.26%, p90 0.26%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
  • svg-scroll-draw, JS engine0.26%, p90 0.26%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG path drawn on scroll, Firefox · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)18.3p90 18.318.2p90 18.318.3p90 18.318.2p90 18.3
Frame interval, p99 (ms)18.6p90 18.618.6p90 18.618.6p90 18.618.6p90 18.6
Frames longer than 1.5 × vsync (%)0.26p90 0.260.00 ✓ lowerp90 0.000.00p90 0.000.26p90 0.26
Longest frame (ms)37.6p90 38.518.7 ✓ lowerp90 18.718.7p90 18.738.5p90 40.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.33p90 1.000.67p90 0.670.33p90 0.870.33p90 0.67
Tap to next frame during the scroll (ms)1.33p90 2.001.67p90 1.871.33p90 1.871.67p90 1.67
Startup
Setup call (ms)—5.00p90 6.002.00 ✓ lowerp90 6.602.00 ✓ lowerp90 2.00
First frame in the correct starting state (ms)—42.0p90 46.446.0p90 49.042.0p90 48.6
Runs that showed the finished state first—100%p90 100%100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00283p90 2830.00 ✓ lowerp90 0.00180 ✓ lowerp90 181
Firefox · 1× CPU · 3000 px/s
  • No library0.65%, p90 0.65%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
  • svg-scroll-draw, JS engine0.65%, p90 0.65%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG path drawn on scroll, Firefox · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)18.1p90 18.218.2p90 18.318.2p90 18.318.2p90 18.4
Frame interval, p99 (ms)18.5p90 18.618.5 ✓ lowerp90 18.618.5p90 18.618.6p90 18.6
Frames longer than 1.5 × vsync (%)0.65p90 0.650.00 ✓ lowerp90 0.000.00p90 0.000.65p90 0.65
Longest frame (ms)37.2p90 39.218.6 ✓ lowerp90 18.718.6p90 18.737.9p90 39.5
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.67p90 1.000.33p90 0.870.67p90 0.870.33p90 0.87
Tap to next frame during the scroll (ms)1.67p90 2.001.33p90 1.871.33p90 2.271.67p90 2.40
Startup
Setup call (ms)—5.00p90 6.002.00 ✓ lowerp90 2.001.00 ✓ lowerp90 2.00
First frame in the correct starting state (ms)—34.0p90 43.645.0p90 49.044.0p90 51.6
Runs that showed the finished state first—100%p90 100%100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00206p90 2060.00 ✓ lowerp90 0.00181 ✓ lowerp90 181
WebKit · 1× CPU · 800 px/s
  • No library0.00%, p90 0.00%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
  • svg-scroll-draw, JS engine0.00%, p90 0.00%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG path drawn on scroll, WebKit · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Frame interval, median (ms)17.0p90 17.017.0p90 17.017.0p90 17.017.0p90 17.0
Frame interval, p95 (ms)18.0p90 18.018.0p90 18.018.0p90 18.018.0p90 18.0
Frame interval, p99 (ms)19.0p90 19.019.0p90 19.019.0p90 19.019.0p90 19.0
Frames longer than 1.5 × vsync (%)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Longest frame (ms)19.0p90 21.019.0p90 20.019.0p90 19.019.0p90 20.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.33p90 1.671.33p90 1.331.33p90 1.671.33p90 1.67
Tap to next frame during the scroll (ms)15.7p90 16.315.7p90 16.516.3p90 16.916.0p90 16.7
Startup
Setup call (ms)—3.00p90 4.002.00 ✓ lowerp90 2.002.00 ✓ lowerp90 2.00
First frame in the correct starting state (ms)—26.0p90 32.229.0p90 36.629.0p90 32.2
Runs that showed the finished state first—0%p90 100%100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00283p90 2830.00 ✓ lowerp90 0.00181 ✓ lowerp90 181
WebKit · 1× CPU · 3000 px/s
  • No library0.00%, p90 0.00%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
  • svg-scroll-draw, JS engine0.00%, p90 0.00%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG path drawn on scroll, WebKit · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Frame interval, median (ms)17.0p90 17.017.0p90 17.017.0p90 17.017.0p90 17.0
Frame interval, p95 (ms)18.0p90 18.018.0p90 18.018.0p90 18.018.0p90 18.0
Frame interval, p99 (ms)19.0p90 19.019.0p90 19.019.0p90 19.019.0p90 19.0
Frames longer than 1.5 × vsync (%)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Longest frame (ms)19.0p90 19.019.0p90 19.619.0p90 19.019.0p90 19.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.33p90 1.671.33p90 1.671.33p90 1.671.33p90 1.67
Tap to next frame during the scroll (ms)15.7p90 16.215.7p90 16.216.0p90 16.315.7p90 16.9
Startup
Setup call (ms)—3.00p90 4.002.00 ✓ lowerp90 2.002.00 ✓ lowerp90 2.00
First frame in the correct starting state (ms)—31.0p90 35.228.0p90 40.632.0p90 43.6
Runs that showed the finished state first—100%p90 100%0%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00209p90 2100.00 ✓ lowerp90 0.00181 ✓ lowerp90 181
04B1 · 40 SVGs

40 separate SVGs, each drawn on its own scroll.

Forty small SVGs of one path each, stacked down the page: forty ScrollTriggers against forty scrollDraw instances. The cost of many instances, and what they cost while idle.

Native CSS path where supported; “JS engine” forces the JavaScript engine for all forty.

4.1

The code each page runs

GSAP 3.15.0

b1-draw-many.gsap.js7 lines
gsap.registerPlugin(ScrollTrigger, DrawSVGPlugin);
gsap.utils.toArray('.b1 svg').forEach((svg) => {
  gsap.fromTo(svg.querySelectorAll('path'), { drawSVG: '0%' }, {
    drawSVG: '100%', ease: 'none',
    scrollTrigger: { trigger: svg, start: 'top bottom', end: 'bottom top', scrub: true },
  });
});

svg-scroll-draw 2.27.3

b1-draw-many.ours.js3 lines
import { scrollDraw } from 'svg-scroll-draw';

document.querySelectorAll('.b1 svg').forEach((svg) => scrollDraw(svg));

svg-scroll-draw, JS engine

b1-draw-many.ours-js.js3 lines
import { scrollDraw } from 'svg-scroll-draw';

document.querySelectorAll('.b1 svg').forEach((svg) => scrollDraw(svg, { native: false }));

Open the scenario page: No library · GSAP 3.15.0 · svg-scroll-draw 2.27.3 · svg-scroll-draw, JS engine

Chromium · 4× CPU · 800 px/s
  • No library4.53 ms, p90 6.53 ms
  • GSAP 3.15.078.2 ms, p90 104 ms
  • svg-scroll-draw 2.27.317.7 ms, p90 39.7 ms
  • svg-scroll-draw, JS engine56.6 ms, p90 99.2 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.15%, p90 0.24%
  • GSAP 3.15.00.15%, p90 0.24%
  • svg-scroll-draw 2.27.30.15%, p90 0.15%
  • svg-scroll-draw, JS engine0.15%, p90 0.15%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
40 separate SVGs, each drawn on its own scroll, Chromium · 4× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)4.53p90 6.5378.2p90 10417.7 ✓ lowerp90 39.756.6 ✓ lowerp90 99.2
Script during the scroll (ms)2.92p90 4.8862.5p90 78.63.23 ✓ lowerp90 7.4029.3 ✓ lowerp90 49.1
Style recalculation during the scroll (ms)0.69p90 0.9313.5 ✓ lowerp90 24.213.8p90 32.424.9p90 50.5
Layout during the scroll (ms)1.10p90 1.692.50p90 3.530.71 ✓ lowerp90 1.120.86 ✓ lowerp90 1.39
All main-thread tasks during the scroll (ms)64.7p90 95.3232p90 337219p90 380232p90 429
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.7p90 16.816.7 ✓ lowerp90 16.816.7p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.15p90 0.240.15p90 0.240.15p90 0.150.15p90 0.15
Longest frame (ms)33.3p90 33.433.3p90 33.433.3p90 33.433.3p90 33.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.20p90 1.351.17p90 1.251.20p90 1.370.93p90 1.17
Tap to next frame during the scroll (ms)14.8p90 18.314.3 ✓ lowerp90 17.616.4p90 19.415.8p90 19.2
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)25.1p90 32.2125 ✓ lowerp90 136131p90 185176p90 212
Style and layout (trace) (ms)1.82p90 2.6919.7 ✓ lowerp90 20.717.1p90 29.635.5p90 51.4
Script, including rAF callbacks (trace) (ms)13.3p90 18.9110 ✓ lowerp90 11212.6 ✓ lowerp90 21.6222p90 260
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—63.1p90 65.625.9 ✓ lowerp90 27.921.6 ✓ lowerp90 23.1
Main-thread work from navigation to ready (ms)45.2p90 49.0148p90 15684.3 ✓ lowerp90 94.077.8 ✓ lowerp90 88.1
First frame in the correct starting state (ms)—118p90 12286.6 ✓ lowerp90 10678.5 ✓ lowerp90 88.0
Runs that showed the finished state first—100%p90 100%100%p90 100%100%p90 100%
JS heap after ready (MB)2.49p90 2.502.89p90 2.912.34 ✓ lowerp90 2.342.41 ✓ lowerp90 2.42
Parked mid-page
Main-thread work while parked 3 s (ms)0.76p90 1.255.38 ✓ lowerp90 6.140.44 ✓ lowerp90 1.117.14p90 12.0
requestAnimationFrame calls while parked 3 s0.00p90 0.00206 ✓ lowerp90 2070.00 ✓ lowerp90 0.00900p90 900
Chromium · 4× CPU · 3000 px/s
  • No library2.94 ms, p90 4.37 ms
  • GSAP 3.15.052.1 ms, p90 78.4 ms
  • svg-scroll-draw 2.27.37.36 ms, p90 15.3 ms
  • svg-scroll-draw, JS engine19.2 ms, p90 38.3 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.54%, p90 1.08%
  • GSAP 3.15.00.54%, p90 0.87%
  • svg-scroll-draw 2.27.30.54%, p90 0.54%
  • svg-scroll-draw, JS engine0.54%, p90 0.87%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
40 separate SVGs, each drawn on its own scroll, Chromium · 4× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)2.94p90 4.3752.1p90 78.47.36 ✓ lowerp90 15.319.2 ✓ lowerp90 38.3
Script during the scroll (ms)1.78p90 3.1242.7p90 60.81.47 ✓ lowerp90 2.799.98 ✓ lowerp90 20.9
Style recalculation during the scroll (ms)0.16p90 0.785.78p90 11.76.19p90 11.59.44p90 17.3
Layout during the scroll (ms)0.81p90 1.132.85p90 4.570.82 ✓ lowerp90 1.500.85 ✓ lowerp90 1.16
All main-thread tasks during the scroll (ms)38.7p90 47.8126p90 19983.7 ✓ lowerp90 14386.3 ✓ lowerp90 156
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.8p90 16.816.8p90 16.816.7p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 19.516.8p90 18.616.8p90 16.816.8p90 18.5
Frames longer than 1.5 × vsync (%)0.54p90 1.080.54p90 0.870.54p90 0.540.54p90 0.87
Longest frame (ms)33.4p90 33.433.4p90 33.433.3p90 33.433.3p90 33.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.13p90 1.530.97p90 1.201.07p90 1.231.03p90 1.42
Tap to next frame during the scroll (ms)14.8p90 17.914.9p90 18.114.0p90 17.215.8p90 17.8
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)10.2p90 12.348.0p90 76.345.6p90 57.556.3p90 64.4
Style and layout (trace) (ms)0.76p90 1.3511.8p90 17.16.29 ✓ lowerp90 8.0212.6p90 16.6
Script, including rAF callbacks (trace) (ms)6.73p90 8.6371.2p90 93.68.83 ✓ lowerp90 10.772.4p90 79.7
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—63.8p90 67.225.7 ✓ lowerp90 27.021.3 ✓ lowerp90 22.3
Main-thread work from navigation to ready (ms)44.3p90 47.4150p90 16083.1 ✓ lowerp90 89.578.4 ✓ lowerp90 86.3
First frame in the correct starting state (ms)—118p90 12685.7 ✓ lowerp90 90.576.7 ✓ lowerp90 87.1
Runs that showed the finished state first—100%p90 100%100%p90 100%100%p90 100%
JS heap after ready (MB)2.49p90 2.502.89p90 2.902.33 ✓ lowerp90 2.342.41 ✓ lowerp90 2.42
Parked mid-page
Main-thread work while parked 3 s (ms)0.50p90 0.996.10p90 10.20.55 ✓ lowerp90 0.958.16p90 13.2
requestAnimationFrame calls while parked 3 s0.00p90 0.00210 ✓ lowerp90 2110.00 ✓ lowerp90 0.00900p90 900
Chromium · 1× CPU · 800 px/s
  • No library11.6 ms, p90 13.9 ms
  • GSAP 3.15.0232 ms, p90 244 ms
  • svg-scroll-draw 2.27.387.6 ms, p90 90.3 ms
  • svg-scroll-draw, JS engine263 ms, p90 276 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.15%, p90 0.30%
  • GSAP 3.15.00.15%, p90 0.30%
  • svg-scroll-draw 2.27.30.15%, p90 0.30%
  • svg-scroll-draw, JS engine0.15%, p90 0.24%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
40 separate SVGs, each drawn on its own scroll, Chromium · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)11.6p90 13.9232 ✓ lowerp90 24487.6 ✓ lowerp90 90.3263p90 276
Script during the scroll (ms)10.4p90 12.7161p90 16912.0 ✓ lowerp90 12.5135 ✓ lowerp90 143
Style recalculation during the scroll (ms)0.54p90 0.6364.1 ✓ lowerp90 69.175.0p90 77.2127p90 132
Layout during the scroll (ms)0.69p90 0.775.40p90 5.840.67 ✓ lowerp90 0.770.69 ✓ lowerp90 0.76
All main-thread tasks during the scroll (ms)233p90 259763 ✓ lowerp90 793794p90 822836p90 877
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.8p90 16.816.7p90 16.816.8p90 16.816.7p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.15p90 0.300.15p90 0.300.15p90 0.300.15p90 0.24
Longest frame (ms)50.0p90 50.150.0p90 50.150.0p90 50.050.0p90 50.1
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.07p90 1.221.10p90 1.361.10p90 1.411.03p90 1.28
Tap to next frame during the scroll (ms)22.6p90 25.522.3p90 24.623.4p90 24.422.6p90 25.1
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)75.5p90 79.2300p90 307298p90 311302p90 307
Style and layout (trace) (ms)1.29p90 1.5269.5 ✓ lowerp90 72.971.8p90 77.5117p90 120
Script, including rAF callbacks (trace) (ms)42.3p90 50.2311 ✓ lowerp90 31558.8 ✓ lowerp90 62.5630p90 647
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—15.1p90 15.76.20 ✓ lowerp90 7.785.30 ✓ lowerp90 6.86
Main-thread work from navigation to ready (ms)16.7p90 18.051.4p90 53.526.1 ✓ lowerp90 28.125.0 ✓ lowerp90 26.9
First frame in the correct starting state (ms)—33.2 ✓ lowerp90 36.349.5p90 60.331.1 ✓ lowerp90 36.0
Runs that showed the finished state first—0%p90 100%100%p90 100%100%p90 100%
JS heap after ready (MB)2.50p90 2.502.91p90 2.932.43 ✓ lowerp90 2.442.41 ✓ lowerp90 2.48
Parked mid-page
Main-thread work while parked 3 s (ms)0.93p90 1.0132.5 ✓ lowerp90 34.20.82 ✓ lowerp90 0.9741.2p90 44.4
requestAnimationFrame calls while parked 3 s0.00p90 0.00281 ✓ lowerp90 2830.00 ✓ lowerp90 0.00900p90 905
Chromium · 1× CPU · 3000 px/s
  • No library5.16 ms, p90 5.91 ms
  • GSAP 3.15.0106 ms, p90 113 ms
  • svg-scroll-draw 2.27.325.3 ms, p90 27.2 ms
  • svg-scroll-draw, JS engine69.9 ms, p90 75.9 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.54%, p90 0.55%
  • GSAP 3.15.00.54%, p90 0.55%
  • svg-scroll-draw 2.27.30.54%, p90 0.55%
  • svg-scroll-draw, JS engine0.54%, p90 0.87%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
40 separate SVGs, each drawn on its own scroll, Chromium · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)5.16p90 5.91106p90 11325.3 ✓ lowerp90 27.269.9 ✓ lowerp90 75.9
Script during the scroll (ms)3.81p90 4.5880.8p90 86.54.27 ✓ lowerp90 4.4336.0 ✓ lowerp90 39.8
Style recalculation during the scroll (ms)0.57p90 0.6219.8 ✓ lowerp90 20.920.2p90 22.233.0p90 35.5
Layout during the scroll (ms)0.70p90 0.864.93p90 5.380.68 ✓ lowerp90 0.770.71 ✓ lowerp90 0.76
All main-thread tasks during the scroll (ms)101p90 104281p90 293251p90 265250p90 270
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.8p90 16.816.8p90 16.816.8p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.816.8p90 18.6
Frames longer than 1.5 × vsync (%)0.54p90 0.550.54p90 0.550.54p90 0.550.54p90 0.87
Longest frame (ms)50.0p90 50.050.0p90 50.150.0p90 50.150.0p90 50.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.07p90 1.170.83p90 1.441.10p90 1.271.03p90 1.25
Tap to next frame during the scroll (ms)21.9p90 23.622.9p90 24.321.9p90 25.123.5p90 25.7
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)26.8p90 28.681.3p90 84.783.9p90 85.386.2p90 88.7
Style and layout (trace) (ms)1.31p90 1.4425.2 ✓ lowerp90 26.620.2 ✓ lowerp90 20.733.3p90 33.8
Script, including rAF callbacks (trace) (ms)15.4p90 18.4122 ✓ lowerp90 12917.7 ✓ lowerp90 18.0178p90 181
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—15.2p90 15.86.70 ✓ lowerp90 7.505.40 ✓ lowerp90 7.20
Main-thread work from navigation to ready (ms)17.0p90 18.051.6p90 54.225.6 ✓ lowerp90 26.924.4 ✓ lowerp90 25.9
First frame in the correct starting state (ms)—34.2 ✓ lowerp90 38.543.8p90 57.731.0 ✓ lowerp90 36.1
Runs that showed the finished state first—0%p90 100%100%p90 100%100%p90 100%
JS heap after ready (MB)2.50p90 2.502.91p90 2.932.40 ✓ lowerp90 2.452.43 ✓ lowerp90 2.49
Parked mid-page
Main-thread work while parked 3 s (ms)1.14p90 1.2729.6 ✓ lowerp90 33.91.19 ✓ lowerp90 1.3441.6p90 49.3
requestAnimationFrame calls while parked 3 s0.00p90 0.00193 ✓ lowerp90 1930.00 ✓ lowerp90 0.00905p90 905
Firefox · 1× CPU · 800 px/s
  • No library0.14%, p90 0.14%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
  • svg-scroll-draw, JS engine0.14%, p90 0.14%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
40 separate SVGs, each drawn on its own scroll, Firefox · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)18.3p90 18.318.2p90 18.318.2p90 18.318.2p90 18.3
Frame interval, p99 (ms)18.6p90 18.618.5p90 18.618.6p90 18.618.6p90 18.6
Frames longer than 1.5 × vsync (%)0.14p90 0.140.00 ✓ lowerp90 0.000.00p90 0.000.14p90 0.14
Longest frame (ms)38.2p90 40.518.7 ✓ lowerp90 18.718.7p90 18.738.7p90 42.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.67p90 1.000.33p90 1.000.33p90 0.670.33p90 0.67
Tap to next frame during the scroll (ms)1.67p90 2.202.67p90 3.731.67 ✓ lowerp90 2.001.67 ✓ lowerp90 2.20
Startup
Setup call (ms)—29.0p90 30.010.0 ✓ lowerp90 13.29.00 ✓ lowerp90 10.0
First frame in the correct starting state (ms)—67.0p90 82.854.0 ✓ lowerp90 72.245.0 ✓ lowerp90 47.6
Runs that showed the finished state first—100%p90 100%100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00281 ✓ lowerp90 2830.00 ✓ lowerp90 0.00900p90 903
Firefox · 1× CPU · 3000 px/s
  • No library0.36%, p90 0.36%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
  • svg-scroll-draw, JS engine0.36%, p90 0.36%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
40 separate SVGs, each drawn on its own scroll, Firefox · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)18.2p90 18.418.3p90 18.318.3p90 18.318.3p90 18.4
Frame interval, p99 (ms)18.6p90 18.618.5p90 18.618.6p90 18.618.6p90 18.6
Frames longer than 1.5 × vsync (%)0.36p90 0.360.00 ✓ lowerp90 0.000.00p90 0.000.36p90 0.36
Longest frame (ms)37.3p90 40.018.7 ✓ lowerp90 18.718.6p90 18.737.9p90 39.5
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.67p90 1.000.33p90 0.870.67p90 0.870.33p90 0.67
Tap to next frame during the scroll (ms)1.33p90 1.872.33p90 3.001.67 ✓ lowerp90 2.201.67 ✓ lowerp90 2.00
Startup
Setup call (ms)—29.0p90 30.010.0 ✓ lowerp90 11.09.00 ✓ lowerp90 13.0
First frame in the correct starting state (ms)—65.0p90 72.653.0 ✓ lowerp90 68.045.0 ✓ lowerp90 46.6
Runs that showed the finished state first—100%p90 100%100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00240 ✓ lowerp90 2410.00 ✓ lowerp90 0.00905p90 905
WebKit · 1× CPU · 800 px/s
  • No library0.00%, p90 0.00%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
  • svg-scroll-draw, JS engine0.00%, p90 0.00%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
40 separate SVGs, each drawn on its own scroll, WebKit · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Frame interval, median (ms)17.0p90 17.017.0p90 17.017.0p90 17.017.0p90 17.0
Frame interval, p95 (ms)18.0p90 18.018.0p90 18.018.0p90 18.018.0p90 18.0
Frame interval, p99 (ms)19.0p90 19.019.0p90 19.019.0p90 19.019.0p90 19.0
Frames longer than 1.5 × vsync (%)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Longest frame (ms)20.0p90 20.020.0p90 21.019.0p90 19.020.0p90 21.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.33p90 2.001.00p90 1.331.33p90 1.871.33p90 1.67
Tap to next frame during the scroll (ms)15.7p90 16.315.7 ✓ lowerp90 16.716.7p90 17.217.3p90 18.2
Startup
Setup call (ms)—20.0p90 20.014.0 ✓ lowerp90 14.67.00 ✓ lowerp90 7.00
First frame in the correct starting state (ms)—37.0p90 39.636.0p90 56.431.0 ✓ lowerp90 40.6
Runs that showed the finished state first—0%p90 100%100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00243 ✓ lowerp90 2820.00 ✓ lowerp90 0.00900p90 905
WebKit · 1× CPU · 3000 px/s
  • No library0.00%, p90 0.00%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
  • svg-scroll-draw, JS engine0.00%, p90 0.00%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
40 separate SVGs, each drawn on its own scroll, WebKit · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3native CSS pathsvg-scroll-draw, JS engineJS engine
During the scroll
Frame interval, median (ms)17.0p90 17.017.0p90 17.017.0p90 17.017.0p90 17.0
Frame interval, p95 (ms)18.0p90 18.018.0p90 18.018.0p90 18.018.0p90 18.0
Frame interval, p99 (ms)19.0p90 19.019.0p90 19.019.0p90 19.019.0p90 19.0
Frames longer than 1.5 × vsync (%)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Longest frame (ms)19.0p90 20.019.0p90 19.019.0p90 19.019.0p90 19.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.33p90 1.671.00p90 1.331.33p90 1.671.33p90 1.53
Tap to next frame during the scroll (ms)16.0p90 16.715.7 ✓ lowerp90 16.517.0p90 17.317.3p90 17.9
Startup
Setup call (ms)—20.0p90 20.613.0 ✓ lowerp90 14.06.00 ✓ lowerp90 7.00
First frame in the correct starting state (ms)—37.0p90 76.034.0p90 41.631.0 ✓ lowerp90 36.6
Runs that showed the finished state first—0%p90 100%0%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00202 ✓ lowerp90 2390.00 ✓ lowerp90 0.00905p90 905
05B2 · stagger

One SVG, 40 staggered paths.

Forty paths in one SVG with a 0.02 stagger. The GSAP setup is written to give the same per-path windows, which the parity gate checks.

A stagger rules out the native path, so svg-scroll-draw runs its JavaScript engine here in every browser: JS against JS.

5.1

The code each page runs

GSAP 3.15.0

b2-draw-stagger.gsap.js11 lines
gsap.registerPlugin(ScrollTrigger, DrawSVGPlugin);
// Written to match svg-scroll-draw's stagger: path i starts i × s × R later,
// where R is the trigger range, and each path lasts R.
const svg = document.querySelector('#b2'), n = 40, s = 0.02;
gsap.fromTo('#b2 path', { drawSVG: '0%' }, {
  drawSVG: '100%', ease: 'none', duration: 1, stagger: s,
  scrollTrigger: {
    trigger: svg, start: 'top bottom', scrub: true,
    end: () => '+=' + (svg.getBoundingClientRect().height + innerHeight) * (1 + (n - 1) * s),
  },
});

svg-scroll-draw 2.27.3

b2-draw-stagger.ours.js3 lines
import { scrollDraw } from 'svg-scroll-draw';

scrollDraw('#b2', { stagger: 0.02 });

Open the scenario page: No library · GSAP 3.15.0 · svg-scroll-draw 2.27.3

Chromium · 4× CPU · 800 px/s
  • No library4.57 ms, p90 6.05 ms
  • GSAP 3.15.068.4 ms, p90 120 ms
  • svg-scroll-draw 2.27.342.5 ms, p90 82.6 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.16%, p90 0.16%
  • GSAP 3.15.00.16%, p90 0.16%
  • svg-scroll-draw 2.27.30.16%, p90 0.16%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG, 40 staggered paths, Chromium · 4× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)4.57p90 6.0568.4p90 12042.5 ✓ lowerp90 82.6
Script during the scroll (ms)2.65p90 4.3945.3p90 80.915.8 ✓ lowerp90 33.3
Style recalculation during the scroll (ms)0.67p90 1.2922.1p90 35.227.0p90 48.6
Layout during the scroll (ms)0.74p90 1.612.73p90 4.240.60 ✓ lowerp90 1.23
All main-thread tasks during the scroll (ms)57.8p90 81.8203p90 382160 ✓ lowerp90 281
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.8p90 16.816.7p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.16p90 0.160.16p90 0.160.16p90 0.16
Longest frame (ms)33.3p90 33.433.3p90 33.433.3p90 33.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.27p90 1.431.17p90 1.511.13p90 1.31
Tap to next frame during the scroll (ms)13.8p90 20.716.7p90 19.416.8p90 20.6
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)21.1p90 34.7107p90 109101p90 114
Style and layout (trace) (ms)1.32p90 1.7027.4p90 28.829.1p90 30.8
Script, including rAF callbacks (trace) (ms)14.6p90 17.392.4p90 103110p90 119
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—14.3p90 15.69.30 ✓ lowerp90 10.9
Main-thread work from navigation to ready (ms)47.1p90 54.179.5p90 84.365.6 ✓ lowerp90 75.1
First frame in the correct starting state (ms)—69.6p90 71.566.9p90 76.9
Runs that showed the finished state first—100%p90 100%100%p90 100%
JS heap after ready (MB)2.52p90 2.562.72p90 2.742.18 ✓ lowerp90 2.20
Parked mid-page
Main-thread work while parked 3 s (ms)0.43p90 0.915.18p90 11.66.06p90 20.4
requestAnimationFrame calls while parked 3 s0.00p90 0.00282p90 282180 ✓ lowerp90 181
Chromium · 4× CPU · 3000 px/s
  • No library2.80 ms, p90 4.15 ms
  • GSAP 3.15.033.2 ms, p90 40.1 ms
  • svg-scroll-draw 2.27.313.2 ms, p90 18.6 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.59%, p90 1.19%
  • GSAP 3.15.00.59%, p90 0.95%
  • svg-scroll-draw 2.27.30.59%, p90 0.95%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG, 40 staggered paths, Chromium · 4× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)2.80p90 4.1533.2p90 40.113.2 ✓ lowerp90 18.6
Script during the scroll (ms)1.31p90 2.9024.6p90 27.65.01 ✓ lowerp90 6.93
Style recalculation during the scroll (ms)0.50p90 0.986.34p90 9.537.73p90 10.8
Layout during the scroll (ms)0.81p90 1.171.59p90 3.450.61 ✓ lowerp90 1.27
All main-thread tasks during the scroll (ms)37.6p90 49.493.5p90 11767.6 ✓ lowerp90 78.2
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 22.216.8p90 20.116.8p90 20.0
Frames longer than 1.5 × vsync (%)0.59p90 1.190.59p90 0.950.59 ✓ lowerp90 0.95
Longest frame (ms)33.3p90 33.433.3p90 33.433.3p90 33.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.13p90 1.380.97p90 1.091.03p90 1.22
Tap to next frame during the scroll (ms)15.9p90 19.613.8p90 17.413.4p90 16.4
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)8.82p90 11.436.6p90 48.031.7p90 38.8
Style and layout (trace) (ms)1.69p90 2.1910.7p90 16.67.19p90 11.6
Script, including rAF callbacks (trace) (ms)5.57p90 11.944.4p90 67.027.4p90 40.0
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—14.3p90 15.29.00 ✓ lowerp90 9.70
Main-thread work from navigation to ready (ms)45.8p90 54.879.7p90 83.064.7 ✓ lowerp90 68.9
First frame in the correct starting state (ms)—68.1p90 71.069.4p90 71.4
Runs that showed the finished state first—100%p90 100%100%p90 100%
JS heap after ready (MB)2.54p90 2.562.72p90 2.742.18 ✓ lowerp90 2.19
Parked mid-page
Main-thread work while parked 3 s (ms)0.66p90 0.856.30p90 7.795.25p90 7.18
requestAnimationFrame calls while parked 3 s0.00p90 0.00282p90 282180 ✓ lowerp90 180
Chromium · 1× CPU · 800 px/s
  • No library12.1 ms, p90 14.2 ms
  • GSAP 3.15.0228 ms, p90 241 ms
  • svg-scroll-draw 2.27.3165 ms, p90 176 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.16%, p90 0.16%
  • GSAP 3.15.00.16%, p90 0.16%
  • svg-scroll-draw 2.27.30.16%, p90 0.16%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG, 40 staggered paths, Chromium · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)12.1p90 14.2228p90 241165 ✓ lowerp90 176
Script during the scroll (ms)10.9p90 12.9151p90 15969.5 ✓ lowerp90 74.1
Style recalculation during the scroll (ms)0.57p90 0.6471.4 ✓ lowerp90 78.094.9p90 102
Layout during the scroll (ms)0.68p90 0.734.66p90 4.960.65 ✓ lowerp90 0.74
All main-thread tasks during the scroll (ms)220p90 244628p90 662551 ✓ lowerp90 583
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.7p90 16.816.7p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.16p90 0.160.16p90 0.160.16p90 0.16
Longest frame (ms)50.0p90 50.150.0p90 50.150.0p90 50.1
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.10p90 1.281.10p90 1.251.07p90 1.17
Tap to next frame during the scroll (ms)21.2p90 26.522.5p90 24.921.5p90 25.5
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)70.3p90 76.5217p90 226225p90 245
Style and layout (trace) (ms)1.31p90 1.3473.5 ✓ lowerp90 75.095.1p90 101
Script, including rAF callbacks (trace) (ms)44.5p90 50.1266 ✓ lowerp90 276345p90 379
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—3.50p90 3.782.40p90 4.02
Main-thread work from navigation to ready (ms)17.2p90 18.234.3p90 36.122.2 ✓ lowerp90 23.2
First frame in the correct starting state (ms)—23.8p90 30.627.9p90 33.5
Runs that showed the finished state first—0%p90 100%100%p90 100%
JS heap after ready (MB)2.56p90 2.572.75p90 2.782.19 ✓ lowerp90 2.23
Parked mid-page
Main-thread work while parked 3 s (ms)0.88p90 0.9731.0p90 39.933.9p90 36.9
requestAnimationFrame calls while parked 3 s0.00p90 0.00283p90 283180 ✓ lowerp90 181
Chromium · 1× CPU · 3000 px/s
  • No library4.90 ms, p90 5.21 ms
  • GSAP 3.15.083.1 ms, p90 89.2 ms
  • svg-scroll-draw 2.27.343.1 ms, p90 45.2 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.59%, p90 0.60%
  • GSAP 3.15.00.60%, p90 0.60%
  • svg-scroll-draw 2.27.30.60%, p90 0.60%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG, 40 staggered paths, Chromium · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)4.90p90 5.2183.1p90 89.243.1 ✓ lowerp90 45.2
Script during the scroll (ms)3.69p90 3.9858.6p90 62.618.6 ✓ lowerp90 19.3
Style recalculation during the scroll (ms)0.54p90 0.6320.5 ✓ lowerp90 22.523.7p90 25.6
Layout during the scroll (ms)0.65p90 0.823.62p90 4.080.63 ✓ lowerp90 0.73
All main-thread tasks during the scroll (ms)97.3p90 107222p90 232175 ✓ lowerp90 184
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.7p90 16.816.8p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.59p90 0.600.60p90 0.600.60p90 0.60
Longest frame (ms)50.0p90 50.050.0p90 50.150.0p90 50.1
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.07p90 1.200.97p90 1.221.03p90 1.31
Tap to next frame during the scroll (ms)21.9p90 24.221.4p90 24.522.8p90 26.0
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)22.5p90 23.759.6p90 62.162.0p90 64.7
Style and layout (trace) (ms)1.25p90 1.3124.6p90 25.824.0p90 25.6
Script, including rAF callbacks (trace) (ms)13.5p90 14.4100p90 10187.9 ✓ lowerp90 94.1
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—3.40p90 3.603.80p90 4.10
Main-thread work from navigation to ready (ms)17.4p90 18.234.3p90 36.322.6 ✓ lowerp90 23.6
First frame in the correct starting state (ms)—24.8p90 29.126.1p90 35.6
Runs that showed the finished state first—0%p90 100%0%p90 100%
JS heap after ready (MB)2.56p90 2.572.76p90 2.772.19 ✓ lowerp90 2.23
Parked mid-page
Main-thread work while parked 3 s (ms)1.17p90 1.3131.1p90 32.834.5p90 36.1
requestAnimationFrame calls while parked 3 s0.00p90 0.00193p90 193181 ✓ lowerp90 181
Firefox · 1× CPU · 800 px/s
  • No library0.15%, p90 0.15%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.15%, p90 0.15%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG, 40 staggered paths, Firefox · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)18.3p90 18.318.2p90 18.318.3p90 18.3
Frame interval, p99 (ms)18.6p90 18.618.5 ✓ lowerp90 18.618.6p90 18.6
Frames longer than 1.5 × vsync (%)0.15p90 0.150.00 ✓ lowerp90 0.000.15p90 0.15
Longest frame (ms)38.1p90 41.618.7 ✓ lowerp90 18.739.0p90 40.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.33p90 0.670.67p90 1.000.67p90 1.00
Tap to next frame during the scroll (ms)1.33p90 2.402.33p90 3.002.00 ✓ lowerp90 2.33
Startup
Setup call (ms)—8.00p90 8.004.00 ✓ lowerp90 5.00
First frame in the correct starting state (ms)—41.0p90 43.241.0p90 47.2
Runs that showed the finished state first—100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00283p90 283181 ✓ lowerp90 181
Firefox · 1× CPU · 3000 px/s
  • No library0.39%, p90 0.39%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.39%, p90 0.39%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG, 40 staggered paths, Firefox · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)18.3p90 18.318.2p90 18.318.3p90 18.3
Frame interval, p99 (ms)18.6p90 18.718.5p90 18.618.6p90 18.6
Frames longer than 1.5 × vsync (%)0.39p90 0.390.00 ✓ lowerp90 0.000.39p90 0.39
Longest frame (ms)38.4p90 39.218.6 ✓ lowerp90 18.738.1p90 39.8
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.33p90 0.870.33p90 0.530.67p90 1.00
Tap to next frame during the scroll (ms)1.00p90 1.672.00p90 3.001.67 ✓ lowerp90 2.00
Startup
Setup call (ms)—8.00p90 8.005.00 ✓ lowerp90 5.00
First frame in the correct starting state (ms)—38.0p90 41.639.0p90 47.0
Runs that showed the finished state first—100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00226p90 226181 ✓ lowerp90 181
WebKit · 1× CPU · 800 px/s
  • No library0.00%, p90 0.00%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG, 40 staggered paths, WebKit · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)17.0p90 17.017.0p90 17.017.0p90 17.0
Frame interval, p95 (ms)18.0p90 18.018.0p90 18.018.0p90 18.0
Frame interval, p99 (ms)19.0p90 19.019.0p90 19.019.0p90 19.0
Frames longer than 1.5 × vsync (%)0.00p90 0.000.00p90 0.000.00p90 0.00
Longest frame (ms)20.0p90 20.019.0p90 20.020.0p90 20.6
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.33p90 1.671.00 ✓ lowerp90 1.201.33p90 1.67
Tap to next frame during the scroll (ms)16.7p90 16.715.3 ✓ lowerp90 16.717.7p90 18.3
Startup
Setup call (ms)—5.00p90 5.004.00 ✓ lowerp90 4.00
First frame in the correct starting state (ms)—26.0p90 32.831.0p90 35.2
Runs that showed the finished state first—0%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00283p90 283181 ✓ lowerp90 181
WebKit · 1× CPU · 3000 px/s
  • No library0.00%, p90 0.00%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
One SVG, 40 staggered paths, WebKit · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)17.0p90 17.017.0p90 17.017.0p90 17.0
Frame interval, p95 (ms)18.0p90 18.018.0p90 18.018.0p90 18.6
Frame interval, p99 (ms)19.0p90 19.019.0p90 19.019.0p90 19.0
Frames longer than 1.5 × vsync (%)0.00p90 0.000.00p90 0.000.00p90 0.00
Longest frame (ms)19.0p90 19.019.0p90 20.019.0p90 19.6
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.33p90 1.671.00p90 1.331.33p90 1.53
Tap to next frame during the scroll (ms)16.7p90 17.515.3 ✓ lowerp90 15.917.7p90 18.0
Startup
Setup call (ms)—5.00p90 5.604.00 ✓ lowerp90 4.00
First frame in the correct starting state (ms)—22.0 ✓ lowerp90 29.034.0p90 43.4
Runs that showed the finished state first—0%p90 60%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00227p90 228181 ✓ lowerp90 181
06C1 · reveal, idiomatic

60 cards revealed, each library’s own way.

Sixty cards in a three-column grid. GSAP: ScrollTrigger.batch firing a timed 0.6 s tween, as its docs recommend. svg-scroll-draw: scrollReveal with its defaults, which scrubs each card with the scroll. The motion differs by design; the parity gate only checks both start hidden and end shown.

scrollReveal always runs the JavaScript engine.

6.1

The code each page runs

GSAP 3.15.0

c1-reveal-idiomatic.gsap.js8 lines
gsap.registerPlugin(ScrollTrigger);
gsap.set('.card', { opacity: 0, y: 32 });
ScrollTrigger.batch('.card', {
  start: 'top 88%', once: true,
  onEnter: (els) => gsap.to(els, {
    opacity: 1, y: 0, duration: 0.6, ease: 'power1.out', stagger: 0.15, overwrite: true,
  }),
});

svg-scroll-draw 2.27.3

c1-reveal-idiomatic.ours.js3 lines
import { scrollReveal } from 'svg-scroll-draw/reveal';

scrollReveal('.card');

Open the scenario page: No library · GSAP 3.15.0 · svg-scroll-draw 2.27.3

Chromium · 4× CPU · 800 px/s
  • No library4.15 ms, p90 6.64 ms
  • GSAP 3.15.034.0 ms, p90 76.4 ms
  • svg-scroll-draw 2.27.365.0 ms, p90 108 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.19%, p90 0.38%
  • GSAP 3.15.00.19%, p90 0.38%
  • svg-scroll-draw 2.27.30.19%, p90 0.38%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed, each library’s own way, Chromium · 4× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)4.15p90 6.6434.0 ✓ lowerp90 76.465.0p90 108
Script during the scroll (ms)2.45p90 4.2522.9p90 48.331.8p90 52.6
Style recalculation during the scroll (ms)0.74p90 1.1110.5 ✓ lowerp90 25.230.7p90 54.6
Layout during the scroll (ms)0.88p90 1.570.61p90 1.280.70p90 1.52
All main-thread tasks during the scroll (ms)62.5p90 85.2182p90 361234p90 368
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.7p90 16.816.7p90 16.816.7p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.19p90 0.380.19p90 0.380.19p90 0.38
Longest frame (ms)33.4p90 33.433.3p90 33.533.4p90 33.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.13p90 1.291.17p90 1.331.03p90 1.23
Tap to next frame during the scroll (ms)17.4p90 20.418.2p90 19.418.4p90 20.6
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)59.0p90 63.9166p90 244201p90 235
Style and layout (trace) (ms)1.23p90 1.6410.9 ✓ lowerp90 23.743.1p90 71.4
Script, including rAF callbacks (trace) (ms)10.7p90 12.965.2 ✓ lowerp90 97.6230p90 323
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—10.0p90 10.69.80p90 10.7
Main-thread work from navigation to ready (ms)49.9p90 58.481.4p90 87.970.3 ✓ lowerp90 79.3
First frame in the correct starting state (ms)—65.8p90 69.465.0p90 73.8
Runs that showed the finished state first—100%p90 100%100%p90 100%
JS heap after ready (MB)2.23p90 2.272.65p90 2.662.34 ✓ lowerp90 2.41
Parked mid-page
Main-thread work while parked 3 s (ms)0.64p90 1.066.79 ✓ lowerp90 11.511.0p90 15.9
requestAnimationFrame calls while parked 3 s0.00p90 0.00192 ✓ lowerp90 192540p90 540
Chromium · 4× CPU · 3000 px/s
  • No library2.34 ms, p90 3.39 ms
  • GSAP 3.15.019.6 ms, p90 35.1 ms
  • svg-scroll-draw 2.27.319.6 ms, p90 33.0 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.68%, p90 0.69%
  • GSAP 3.15.00.69%, p90 0.69%
  • svg-scroll-draw 2.27.30.68%, p90 0.68%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed, each library’s own way, Chromium · 4× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)2.34p90 3.3919.6p90 35.119.6p90 33.0
Script during the scroll (ms)1.33p90 1.9614.3p90 24.410.2 ✓ lowerp90 16.4
Style recalculation during the scroll (ms)0.16p90 1.014.60 ✓ lowerp90 10.29.45p90 16.7
Layout during the scroll (ms)0.68p90 1.100.88p90 1.310.68p90 1.09
All main-thread tasks during the scroll (ms)39.0p90 42.790.6p90 15288.5p90 140
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.7p90 16.816.8p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.68p90 0.690.69p90 0.690.68 ✓ lowerp90 0.68
Longest frame (ms)33.3p90 33.433.3p90 33.433.3p90 33.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.10p90 1.251.03p90 1.420.93p90 1.13
Tap to next frame during the scroll (ms)16.5p90 18.315.1p90 22.318.4p90 20.9
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)20.8p90 21.468.7p90 93.468.9p90 77.8
Style and layout (trace) (ms)0.57p90 1.0810.3p90 14.014.6p90 16.4
Script, including rAF callbacks (trace) (ms)5.93p90 7.5443.6 ✓ lowerp90 58.071.4p90 76.1
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—9.80p90 10.39.70p90 11.0
Main-thread work from navigation to ready (ms)50.0p90 53.581.1p90 96.870.1 ✓ lowerp90 77.0
First frame in the correct starting state (ms)—65.4p90 68.468.1p90 76.8
Runs that showed the finished state first—100%p90 100%100%p90 100%
JS heap after ready (MB)2.25p90 2.272.65p90 2.672.34 ✓ lowerp90 2.40
Parked mid-page
Main-thread work while parked 3 s (ms)0.69p90 1.247.59 ✓ lowerp90 13.112.5p90 16.0
requestAnimationFrame calls while parked 3 s0.00p90 0.00208 ✓ lowerp90 208540p90 540
Chromium · 1× CPU · 800 px/s
  • No library10.5 ms, p90 12.8 ms
  • GSAP 3.15.0137 ms, p90 147 ms
  • svg-scroll-draw 2.27.3243 ms, p90 256 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.19%, p90 0.30%
  • GSAP 3.15.00.19%, p90 0.38%
  • svg-scroll-draw 2.27.30.19%, p90 0.38%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed, each library’s own way, Chromium · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)10.5p90 12.8137 ✓ lowerp90 147243p90 256
Script during the scroll (ms)9.10p90 11.483.4 ✓ lowerp90 89.8113p90 120
Style recalculation during the scroll (ms)0.60p90 0.6552.5 ✓ lowerp90 56.2129p90 134
Layout during the scroll (ms)0.78p90 0.830.68p90 0.790.74p90 0.83
All main-thread tasks during the scroll (ms)223p90 247563 ✓ lowerp90 602692p90 728
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.7p90 16.816.7p90 16.816.7p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.19p90 0.300.19p90 0.380.19p90 0.38
Longest frame (ms)50.0p90 50.150.0p90 50.150.0p90 50.1
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.07p90 1.151.10p90 1.321.00p90 1.25
Tap to next frame during the scroll (ms)22.5p90 27.323.4p90 27.923.6p90 27.1
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)131p90 135311p90 340284 ✓ lowerp90 298
Style and layout (trace) (ms)1.37p90 1.4145.0 ✓ lowerp90 55.9111p90 127
Script, including rAF callbacks (trace) (ms)35.0p90 37.8167 ✓ lowerp90 198537p90 587
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—2.50p90 2.662.60p90 4.82
Main-thread work from navigation to ready (ms)18.4p90 19.635.0p90 38.423.9 ✓ lowerp90 25.5
First frame in the correct starting state (ms)—23.2p90 30.228.2p90 37.0
Runs that showed the finished state first—0%p90 100%100%p90 100%
JS heap after ready (MB)2.27p90 2.272.67p90 2.682.41 ✓ lowerp90 2.42
Parked mid-page
Main-thread work while parked 3 s (ms)0.81p90 0.9330.7 ✓ lowerp90 36.357.7p90 72.4
requestAnimationFrame calls while parked 3 s0.00p90 0.00193 ✓ lowerp90 193543p90 543
Chromium · 1× CPU · 3000 px/s
  • No library4.49 ms, p90 4.84 ms
  • GSAP 3.15.063.4 ms, p90 69.5 ms
  • svg-scroll-draw 2.27.366.5 ms, p90 73.1 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.69%, p90 0.69%
  • GSAP 3.15.00.69%, p90 1.11%
  • svg-scroll-draw 2.27.30.69%, p90 1.11%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed, each library’s own way, Chromium · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)4.49p90 4.8463.4p90 69.566.5p90 73.1
Script during the scroll (ms)3.13p90 3.4942.5p90 46.531.8 ✓ lowerp90 34.4
Style recalculation during the scroll (ms)0.57p90 0.6120.2 ✓ lowerp90 22.234.1p90 38.1
Layout during the scroll (ms)0.77p90 0.860.68p90 0.790.69p90 0.84
All main-thread tasks during the scroll (ms)96.7p90 101226p90 246226p90 241
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.8p90 16.816.8p90 16.816.7p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 22.516.8p90 22.4
Frames longer than 1.5 × vsync (%)0.69p90 0.690.69p90 1.110.69p90 1.11
Longest frame (ms)50.0p90 50.050.0p90 50.150.0p90 50.1
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.07p90 1.150.97p90 1.401.00p90 1.27
Tap to next frame during the scroll (ms)22.2p90 25.021.8p90 25.622.4p90 25.0
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)40.1p90 42.0101p90 10287.1 ✓ lowerp90 93.1
Style and layout (trace) (ms)1.30p90 1.4218.0 ✓ lowerp90 19.032.0p90 34.7
Script, including rAF callbacks (trace) (ms)12.4p90 15.980.3 ✓ lowerp90 84.3153p90 163
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—2.40p90 2.664.50p90 4.92
Main-thread work from navigation to ready (ms)18.5p90 19.336.6p90 39.223.2 ✓ lowerp90 24.1
First frame in the correct starting state (ms)—23.6p90 32.225.8p90 33.2
Runs that showed the finished state first—0%p90 100%0%p90 100%
JS heap after ready (MB)2.27p90 2.272.67p90 2.682.41 ✓ lowerp90 2.42
Parked mid-page
Main-thread work while parked 3 s (ms)1.06p90 1.1935.7 ✓ lowerp90 43.963.8p90 73.5
requestAnimationFrame calls while parked 3 s0.00p90 0.00211 ✓ lowerp90 237543p90 543
Firefox · 1× CPU · 800 px/s
  • No library0.17%, p90 0.17%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.17%, p90 0.17%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed, each library’s own way, Firefox · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)18.3p90 18.318.3p90 18.318.3p90 18.3
Frame interval, p99 (ms)18.6p90 18.618.6p90 18.618.6p90 18.6
Frames longer than 1.5 × vsync (%)0.17p90 0.170.00 ✓ lowerp90 0.000.17p90 0.17
Longest frame (ms)37.4p90 39.118.7 ✓ lowerp90 18.737.8p90 38.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.67p90 0.670.67p90 0.870.67p90 1.00
Tap to next frame during the scroll (ms)1.67p90 1.6711.3p90 12.52.00 ✓ lowerp90 2.33
Startup
Setup call (ms)—5.00p90 6.005.00p90 9.60
First frame in the correct starting state (ms)—32.0p90 39.632.0p90 38.2
Runs that showed the finished state first—100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00192 ✓ lowerp90 193540p90 543
Firefox · 1× CPU · 3000 px/s
  • No library0.45%, p90 0.45%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.45%, p90 0.45%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed, each library’s own way, Firefox · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)18.2p90 18.318.1p90 18.218.2p90 18.3
Frame interval, p99 (ms)18.6p90 18.718.5 ✓ lowerp90 18.618.6p90 18.6
Frames longer than 1.5 × vsync (%)0.45p90 0.450.00 ✓ lowerp90 0.000.45p90 0.45
Longest frame (ms)36.6p90 39.618.6 ✓ lowerp90 18.737.2p90 40.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.67p90 1.000.33p90 0.670.33p90 0.67
Tap to next frame during the scroll (ms)1.67p90 2.5311.3p90 11.72.00 ✓ lowerp90 2.20
Startup
Setup call (ms)—5.00p90 5.005.00p90 12.6
First frame in the correct starting state (ms)—34.0p90 35.637.0p90 45.2
Runs that showed the finished state first—100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00255 ✓ lowerp90 256543p90 543
WebKit · 1× CPU · 800 px/s
  • No library0.00%, p90 0.00%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed, each library’s own way, WebKit · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)17.0p90 17.017.0p90 17.017.0p90 17.0
Frame interval, p95 (ms)18.0p90 18.018.0p90 18.018.0p90 18.0
Frame interval, p99 (ms)19.0p90 19.019.0p90 19.019.0p90 19.0
Frames longer than 1.5 × vsync (%)0.00p90 0.000.00p90 0.000.00p90 0.00
Longest frame (ms)20.0p90 20.020.0p90 21.020.0p90 20.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.33p90 1.671.00p90 1.331.33p90 1.67
Tap to next frame during the scroll (ms)16.7p90 17.716.3 ✓ lowerp90 16.718.0p90 18.7
Startup
Setup call (ms)—4.00 ✓ lowerp90 5.008.00p90 8.00
First frame in the correct starting state (ms)—25.0p90 35.230.0p90 33.6
Runs that showed the finished state first—0%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00193 ✓ lowerp90 200543p90 543
WebKit · 1× CPU · 3000 px/s
  • No library0.00%, p90 0.00%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed, each library’s own way, WebKit · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)17.0p90 17.017.0p90 17.017.0p90 17.0
Frame interval, p95 (ms)18.0p90 18.018.0p90 18.618.0p90 18.0
Frame interval, p99 (ms)19.0p90 19.019.0p90 19.019.0p90 19.0
Frames longer than 1.5 × vsync (%)0.00p90 0.000.00p90 0.000.00p90 0.00
Longest frame (ms)19.0p90 20.619.0p90 20.019.0p90 19.6
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.33p90 1.671.00p90 1.331.33p90 1.33
Tap to next frame during the scroll (ms)16.7p90 17.216.0 ✓ lowerp90 17.118.3p90 19.0
Startup
Setup call (ms)—5.00 ✓ lowerp90 5.008.00p90 9.00
First frame in the correct starting state (ms)—25.0p90 33.227.0p90 38.0
Runs that showed the finished state first—0%p90 100%0%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00259 ✓ lowerp90 260543p90 543
07C2 · reveal, matched

60 cards revealed with the same motion.

The same cards, with GSAP written to produce scrollReveal’s motion exactly: scrubbed fade-up 32px over top 88% → top 53%, ease-out, once, shifted per column. The engine against the engine.

scrollReveal always runs the JavaScript engine.

7.1

The code each page runs

GSAP 3.15.0

c2-reveal-matched.gsap.js15 lines
gsap.registerPlugin(ScrollTrigger);
// scrollReveal's defaults: fade up 32px over 'top 88%' → 'top 53%', ease-out
// (= power1.out), once, each card's window shifted by its column × 0.15 of it.
// svg-scroll-draw measures a card where it sits before the 32px offset;
// ScrollTrigger measures it with the offset applied, hence top-=32.
const span = 88 - 53;
gsap.utils.toArray('.card').forEach((card, i) => {
  const shift = Math.min((i % 3) * 0.15 * span, span);
  gsap.fromTo(card, { opacity: 0, y: 32 }, {
    opacity: 1, y: 0, ease: 'power1.out',
    scrollTrigger: {
      trigger: card, start: `top-=32 ${88 - shift}%`, end: `top-=32 ${53 - shift}%`, scrub: true, once: true,
    },
  });
});

svg-scroll-draw 2.27.3

c2-reveal-matched.ours.js3 lines
import { scrollReveal } from 'svg-scroll-draw/reveal';

scrollReveal('.card');

Open the scenario page: No library · GSAP 3.15.0 · svg-scroll-draw 2.27.3

Chromium · 4× CPU · 800 px/s
  • No library4.00 ms, p90 5.46 ms
  • GSAP 3.15.035.0 ms, p90 62.4 ms
  • svg-scroll-draw 2.27.361.0 ms, p90 67.8 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.19%, p90 0.30%
  • GSAP 3.15.00.19%, p90 0.19%
  • svg-scroll-draw 2.27.30.19%, p90 0.30%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed with the same motion, Chromium · 4× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)4.00p90 5.4635.0 ✓ lowerp90 62.461.0p90 67.8
Script during the scroll (ms)2.65p90 4.3023.4 ✓ lowerp90 39.929.6p90 35.9
Style recalculation during the scroll (ms)0.43p90 0.9211.5 ✓ lowerp90 22.528.8p90 34.9
Layout during the scroll (ms)0.79p90 1.400.52p90 1.430.92p90 1.66
All main-thread tasks during the scroll (ms)61.5p90 85.8179 ✓ lowerp90 308232p90 269
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.8p90 16.816.7p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.19p90 0.300.19p90 0.190.19p90 0.30
Longest frame (ms)33.3p90 33.433.3p90 33.433.4p90 33.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.17p90 1.321.10p90 1.220.93p90 1.19
Tap to next frame during the scroll (ms)16.9p90 19.216.2p90 19.218.1p90 19.8
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)59.7p90 73.3156 ✓ lowerp90 164199p90 241
Style and layout (trace) (ms)1.38p90 1.8910.2 ✓ lowerp90 14.146.4p90 60.6
Script, including rAF callbacks (trace) (ms)10.9p90 16.751.8 ✓ lowerp90 65.3231p90 276
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—21.2p90 22.010.0 ✓ lowerp90 10.2
Main-thread work from navigation to ready (ms)50.0p90 55.997.3p90 10569.8 ✓ lowerp90 76.7
First frame in the correct starting state (ms)—77.0p90 83.766.6 ✓ lowerp90 75.2
Runs that showed the finished state first—100%p90 100%100%p90 100%
JS heap after ready (MB)2.24p90 2.272.96p90 2.982.34 ✓ lowerp90 2.35
Parked mid-page
Main-thread work while parked 3 s (ms)0.41p90 0.936.95 ✓ lowerp90 11.110.7p90 14.5
requestAnimationFrame calls while parked 3 s0.00p90 0.00192 ✓ lowerp90 192540p90 540
Chromium · 4× CPU · 3000 px/s
  • No library3.07 ms, p90 5.48 ms
  • GSAP 3.15.014.6 ms, p90 38.2 ms
  • svg-scroll-draw 2.27.319.7 ms, p90 25.9 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.68%, p90 0.69%
  • GSAP 3.15.00.69%, p90 0.69%
  • svg-scroll-draw 2.27.30.68%, p90 0.68%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed with the same motion, Chromium · 4× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)3.07p90 5.4814.6 ✓ lowerp90 38.219.7p90 25.9
Script during the scroll (ms)1.56p90 4.429.79p90 22.49.92p90 13.0
Style recalculation during the scroll (ms)0.66p90 1.144.38 ✓ lowerp90 14.08.47p90 12.7
Layout during the scroll (ms)0.89p90 1.851.05p90 1.610.73p90 1.38
All main-thread tasks during the scroll (ms)41.9p90 55.680.8p90 15589.3p90 118
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.8p90 16.816.8p90 16.816.7p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.68p90 0.690.69p90 0.690.68 ✓ lowerp90 0.68
Longest frame (ms)33.3p90 33.433.3p90 33.433.3p90 33.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.27p90 1.531.03p90 1.271.00p90 1.25
Tap to next frame during the scroll (ms)17.3p90 19.317.7p90 18.518.3p90 20.4
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)19.0p90 20.654.5p90 66.270.3p90 74.9
Style and layout (trace) (ms)1.51p90 1.656.87 ✓ lowerp90 8.4120.5p90 23.7
Script, including rAF callbacks (trace) (ms)5.39p90 7.0323.9 ✓ lowerp90 32.881.5p90 95.2
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—20.7p90 23.39.80 ✓ lowerp90 10.8
Main-thread work from navigation to ready (ms)52.0p90 61.896.9p90 10768.9 ✓ lowerp90 73.2
First frame in the correct starting state (ms)—75.8p90 83.364.5 ✓ lowerp90 72.1
Runs that showed the finished state first—100%p90 100%100%p90 100%
JS heap after ready (MB)2.21p90 2.272.94p90 2.972.34 ✓ lowerp90 2.40
Parked mid-page
Main-thread work while parked 3 s (ms)0.40p90 1.177.45 ✓ lowerp90 15.110.2p90 24.3
requestAnimationFrame calls while parked 3 s0.00p90 0.00251 ✓ lowerp90 252540p90 540
Chromium · 1× CPU · 800 px/s
  • No library10.1 ms, p90 12.4 ms
  • GSAP 3.15.0140 ms, p90 149 ms
  • svg-scroll-draw 2.27.3245 ms, p90 257 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.19%, p90 0.30%
  • GSAP 3.15.00.19%, p90 0.38%
  • svg-scroll-draw 2.27.30.19%, p90 0.38%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed with the same motion, Chromium · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)10.1p90 12.4140 ✓ lowerp90 149245p90 257
Script during the scroll (ms)8.72p90 11.183.7 ✓ lowerp90 89.0114p90 120
Style recalculation during the scroll (ms)0.58p90 0.6455.2 ✓ lowerp90 59.0130p90 135
Layout during the scroll (ms)0.80p90 0.860.76p90 0.900.74p90 0.79
All main-thread tasks during the scroll (ms)220p90 245573 ✓ lowerp90 584711p90 733
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.19p90 0.300.19p90 0.380.19p90 0.38
Longest frame (ms)50.0p90 50.150.0p90 50.050.0p90 50.1
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.10p90 1.251.10p90 1.291.07p90 1.29
Tap to next frame during the scroll (ms)23.4p90 27.223.9p90 29.123.9p90 29.2
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)136p90 144300p90 303278p90 311
Style and layout (trace) (ms)1.31p90 1.3744.7 ✓ lowerp90 45.3111p90 127
Script, including rAF callbacks (trace) (ms)38.4p90 44.3176 ✓ lowerp90 178544p90 603
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—5.10p90 5.504.60 ✓ lowerp90 4.80
Main-thread work from navigation to ready (ms)18.7p90 20.241.3p90 44.423.1 ✓ lowerp90 24.8
First frame in the correct starting state (ms)—23.8p90 26.224.1p90 30.8
Runs that showed the finished state first—0%p90 100%0%p90 100%
JS heap after ready (MB)2.27p90 2.272.98p90 3.002.40 ✓ lowerp90 2.42
Parked mid-page
Main-thread work while parked 3 s (ms)0.77p90 0.8535.9 ✓ lowerp90 40.661.0p90 71.3
requestAnimationFrame calls while parked 3 s0.00p90 0.00193 ✓ lowerp90 193540p90 543
Chromium · 1× CPU · 3000 px/s
  • No library4.61 ms, p90 4.92 ms
  • GSAP 3.15.055.4 ms, p90 56.3 ms
  • svg-scroll-draw 2.27.370.6 ms, p90 75.6 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.69%, p90 0.69%
  • GSAP 3.15.00.69%, p90 0.69%
  • svg-scroll-draw 2.27.30.69%, p90 1.10%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed with the same motion, Chromium · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)4.61p90 4.9255.4 ✓ lowerp90 56.370.6p90 75.6
Script during the scroll (ms)3.20p90 3.4235.0p90 36.433.2p90 35.8
Style recalculation during the scroll (ms)0.59p90 0.6218.5 ✓ lowerp90 19.936.5p90 39.0
Layout during the scroll (ms)0.80p90 0.920.76p90 0.890.68p90 0.82
All main-thread tasks during the scroll (ms)96.4p90 101213 ✓ lowerp90 218239p90 247
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 22.4
Frames longer than 1.5 × vsync (%)0.69p90 0.690.69p90 0.690.69p90 1.10
Longest frame (ms)50.0p90 50.050.0p90 50.150.0p90 50.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.07p90 1.191.13p90 1.221.07p90 1.39
Tap to next frame during the scroll (ms)22.2p90 25.322.2p90 25.320.6p90 23.9
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)43.2p90 45.292.5p90 96.484.8 ✓ lowerp90 87.2
Style and layout (trace) (ms)1.27p90 1.3817.4 ✓ lowerp90 19.332.3p90 33.6
Script, including rAF callbacks (trace) (ms)12.3p90 16.366.6 ✓ lowerp90 69.0150p90 158
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—5.20p90 5.664.50 ✓ lowerp90 5.00
Main-thread work from navigation to ready (ms)18.4p90 19.340.6p90 44.023.0 ✓ lowerp90 24.0
First frame in the correct starting state (ms)—23.3p90 33.725.3p90 30.8
Runs that showed the finished state first—0%p90 100%0%p90 100%
JS heap after ready (MB)2.27p90 2.272.98p90 2.992.41 ✓ lowerp90 2.42
Parked mid-page
Main-thread work while parked 3 s (ms)1.04p90 1.2434.0 ✓ lowerp90 37.561.1p90 67.6
requestAnimationFrame calls while parked 3 s0.00p90 0.00211 ✓ lowerp90 212543p90 543
Firefox · 1× CPU · 800 px/s
  • No library0.17%, p90 0.17%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.17%, p90 0.17%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed with the same motion, Firefox · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)18.3p90 18.318.2p90 18.318.3p90 18.3
Frame interval, p99 (ms)18.6p90 18.618.5p90 18.618.6p90 18.6
Frames longer than 1.5 × vsync (%)0.17p90 0.170.00 ✓ lowerp90 0.000.17p90 0.17
Longest frame (ms)37.8p90 38.918.7 ✓ lowerp90 18.738.2p90 41.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.33p90 0.870.33p90 0.670.67p90 0.87
Tap to next frame during the scroll (ms)1.67p90 1.672.33p90 2.532.00p90 2.53
Startup
Setup call (ms)—11.0p90 11.65.00 ✓ lowerp90 11.6
First frame in the correct starting state (ms)—41.0p90 45.635.0p90 51.0
Runs that showed the finished state first—100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00193 ✓ lowerp90 199540p90 543
Firefox · 1× CPU · 3000 px/s
  • No library0.45%, p90 0.45%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.45%, p90 0.45%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed with the same motion, Firefox · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)18.3p90 18.318.2p90 18.318.2p90 18.3
Frame interval, p99 (ms)18.6p90 18.718.6p90 18.618.6p90 18.7
Frames longer than 1.5 × vsync (%)0.45p90 0.450.00 ✓ lowerp90 0.000.45p90 0.45
Longest frame (ms)37.6p90 43.618.6 ✓ lowerp90 18.737.5p90 40.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.67p90 1.000.67p90 0.870.33p90 0.67
Tap to next frame during the scroll (ms)1.67p90 2.002.00p90 2.532.00p90 2.33
Startup
Setup call (ms)—10.0p90 11.65.00 ✓ lowerp90 12.0
First frame in the correct starting state (ms)—41.0p90 43.034.0 ✓ lowerp90 44.8
Runs that showed the finished state first—100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00193 ✓ lowerp90 193543p90 543
WebKit · 1× CPU · 800 px/s
  • No library0.00%, p90 0.00%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed with the same motion, WebKit · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)17.0p90 17.017.0p90 17.017.0p90 17.0
Frame interval, p95 (ms)18.0p90 18.018.0p90 18.018.0p90 18.0
Frame interval, p99 (ms)19.0p90 19.019.0p90 19.019.0p90 19.0
Frames longer than 1.5 × vsync (%)0.00p90 0.000.00p90 0.000.00p90 0.00
Longest frame (ms)19.0p90 20.019.0p90 21.020.0p90 20.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.33p90 1.671.00p90 1.331.33p90 1.67
Tap to next frame during the scroll (ms)16.7p90 17.215.0 ✓ lowerp90 16.218.3p90 18.7
Startup
Setup call (ms)—18.0p90 18.08.00 ✓ lowerp90 9.00
First frame in the correct starting state (ms)—34.0p90 39.426.0 ✓ lowerp90 85.4
Runs that showed the finished state first—0%p90 100%0%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00193 ✓ lowerp90 193540p90 543
WebKit · 1× CPU · 3000 px/s
  • No library0.00%, p90 0.00%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
60 cards revealed with the same motion, WebKit · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)17.0p90 17.017.0p90 17.017.0p90 17.0
Frame interval, p95 (ms)18.0p90 18.018.0p90 18.018.0p90 18.1
Frame interval, p99 (ms)19.0p90 19.019.0p90 19.019.0p90 19.0
Frames longer than 1.5 × vsync (%)0.00p90 0.000.00p90 0.000.00p90 0.00
Longest frame (ms)19.0p90 19.019.0p90 19.619.0p90 19.6
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.33p90 1.671.33p90 1.531.33p90 1.53
Tap to next frame during the scroll (ms)16.7p90 17.215.3 ✓ lowerp90 16.018.0p90 19.1
Startup
Setup call (ms)—17.0p90 18.08.00 ✓ lowerp90 8.00
First frame in the correct starting state (ms)—34.0p90 39.226.0 ✓ lowerp90 35.4
Runs that showed the finished state first—0%p90 100%0%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00193 ✓ lowerp90 193540p90 543
08D · pin + draw

A pinned section with a scrubbed drawing.

A full-height panel pinned for two viewports while thirty paths draw across the pin. GSAP: a pinned, scrubbed timeline. svg-scroll-draw: scrollPin’s onProgress driving scrollDraw’s seek().

scrollPin has no native path, so this is JavaScript on both sides.

8.1

The code each page runs

GSAP 3.15.0

d-pin-scrub.gsap.js4 lines
gsap.registerPlugin(ScrollTrigger, DrawSVGPlugin);
gsap.timeline({
  scrollTrigger: { trigger: '#d', pin: true, start: 'top top', end: () => '+=' + innerHeight * 2, scrub: true },
}).fromTo('#d path', { drawSVG: '0%' }, { drawSVG: '100%', ease: 'none' });

svg-scroll-draw 2.27.3

d-pin-scrub.ours.js7 lines
import { scrollDraw } from 'svg-scroll-draw';
import { scrollPin } from 'svg-scroll-draw/pin';

// The documented pattern: the pin's progress drives the drawing (seek() leaves
// the drawing's own timeline, so the pin is what moves it).
const draw = scrollDraw('#d svg');
scrollPin('#d', { pinDistance: '200vh', onProgress: (p) => draw.seek(p) });

Open the scenario page: No library · GSAP 3.15.0 · svg-scroll-draw 2.27.3

Chromium · 4× CPU · 800 px/s
  • No library4.20 ms, p90 6.84 ms
  • GSAP 3.15.047.0 ms, p90 64.8 ms
  • svg-scroll-draw 2.27.325.4 ms, p90 32.0 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.20%, p90 0.20%
  • GSAP 3.15.00.41%, p90 0.41%
  • svg-scroll-draw 2.27.30.20%, p90 0.20%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
A pinned section with a scrubbed drawing, Chromium · 4× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)4.20p90 6.8447.0p90 64.825.4 ✓ lowerp90 32.0
Script during the scroll (ms)2.39p90 5.4232.1p90 46.014.6 ✓ lowerp90 18.2
Style recalculation during the scroll (ms)0.54p90 1.038.78p90 13.39.57p90 11.8
Layout during the scroll (ms)0.73p90 1.854.61p90 6.990.97 ✓ lowerp90 1.56
All main-thread tasks during the scroll (ms)52.7p90 95.0117p90 18798.9 ✓ lowerp90 125
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.7p90 16.816.8p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.20p90 0.200.41p90 0.410.20 ✓ lowerp90 0.20
Longest frame (ms)33.3p90 33.433.3p90 33.433.3p90 33.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.13p90 1.271.20p90 1.541.07 ✓ lowerp90 1.24
Tap to next frame during the scroll (ms)16.9p90 20.714.0p90 17.214.9p90 18.7
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)19.2p90 30.552.5p90 55.544.9p90 62.8
Style and layout (trace) (ms)1.21p90 2.9413.3p90 14.111.6p90 17.1
Script, including rAF callbacks (trace) (ms)12.8p90 16.567.1p90 67.141.3 ✓ lowerp90 54.5
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—17.1p90 18.516.7p90 17.8
Main-thread work from navigation to ready (ms)46.0p90 52.9170p90 18374.1 ✓ lowerp90 77.6
First frame in the correct starting state (ms)—162p90 17079.5 ✓ lowerp90 85.7
Runs that showed the finished state first—100%p90 100%100%p90 100%
JS heap after ready (MB)2.42p90 2.462.89p90 2.962.18 ✓ lowerp90 2.69
Parked mid-page
Main-thread work while parked 3 s (ms)0.34p90 0.955.45p90 9.100.45 ✓ lowerp90 0.95
requestAnimationFrame calls while parked 3 s0.00p90 0.00282p90 2820.00 ✓ lowerp90 0.00
Chromium · 4× CPU · 3000 px/s
  • No library2.68 ms, p90 3.27 ms
  • GSAP 3.15.035.2 ms, p90 36.9 ms
  • svg-scroll-draw 2.27.39.76 ms, p90 11.2 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.73%, p90 0.73%
  • GSAP 3.15.01.48%, p90 1.48%
  • svg-scroll-draw 2.27.30.73%, p90 0.73%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
A pinned section with a scrubbed drawing, Chromium · 4× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)2.68p90 3.2735.2p90 36.99.76 ✓ lowerp90 11.2
Script during the scroll (ms)1.45p90 2.4927.4p90 30.44.77 ✓ lowerp90 6.61
Style recalculation during the scroll (ms)0.43p90 1.013.77p90 5.013.12p90 4.37
Layout during the scroll (ms)0.67p90 1.274.00p90 4.920.89 ✓ lowerp90 1.53
All main-thread tasks during the scroll (ms)35.3p90 45.474.3p90 80.947.1 ✓ lowerp90 53.2
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.8p90 16.816.8p90 16.816.7p90 16.8
Frame interval, p99 (ms)16.8p90 16.827.7p90 27.716.8 ✓ lowerp90 16.8
Frames longer than 1.5 × vsync (%)0.73p90 0.731.48p90 1.480.73 ✓ lowerp90 0.73
Longest frame (ms)33.4p90 33.433.3p90 33.433.3p90 33.4
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.13p90 1.330.90p90 1.151.07p90 1.23
Tap to next frame during the scroll (ms)13.6p90 15.713.0p90 14.512.8p90 19.6
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)8.69p90 11.319.1p90 21.818.2p90 25.6
Style and layout (trace) (ms)0.93p90 1.5010.4p90 11.24.10 ✓ lowerp90 7.56
Script, including rAF callbacks (trace) (ms)5.32p90 6.0042.4p90 45.418.0 ✓ lowerp90 21.0
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—17.2p90 18.516.2 ✓ lowerp90 16.9
Main-thread work from navigation to ready (ms)45.2p90 49.7169p90 18375.3 ✓ lowerp90 77.8
First frame in the correct starting state (ms)—162p90 17282.4 ✓ lowerp90 87.9
Runs that showed the finished state first—100%p90 100%100%p90 100%
JS heap after ready (MB)2.42p90 2.482.89p90 2.972.18 ✓ lowerp90 2.71
Parked mid-page
Main-thread work while parked 3 s (ms)0.53p90 0.835.34p90 7.740.46 ✓ lowerp90 1.44
requestAnimationFrame calls while parked 3 s0.00p90 0.00192p90 1920.00 ✓ lowerp90 0.00
Chromium · 1× CPU · 800 px/s
  • No library10.1 ms, p90 10.5 ms
  • GSAP 3.15.091.3 ms, p90 94.3 ms
  • svg-scroll-draw 2.27.3100 ms, p90 107 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.20%, p90 0.20%
  • GSAP 3.15.00.41%, p90 0.53%
  • svg-scroll-draw 2.27.30.20%, p90 0.20%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
A pinned section with a scrubbed drawing, Chromium · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)10.1p90 10.591.3 ✓ lowerp90 94.3100p90 107
Script during the scroll (ms)8.83p90 9.5261.9p90 65.464.7p90 69.6
Style recalculation during the scroll (ms)0.54p90 0.6424.8 ✓ lowerp90 25.635.2p90 37.3
Layout during the scroll (ms)0.66p90 0.723.87p90 3.990.98 ✓ lowerp90 1.08
All main-thread tasks during the scroll (ms)184p90 191316 ✓ lowerp90 327351p90 369
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.7p90 16.816.8p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 16.816.8p90 16.816.8p90 16.8
Frames longer than 1.5 × vsync (%)0.20p90 0.200.41p90 0.530.20 ✓ lowerp90 0.20
Longest frame (ms)50.0p90 50.150.0p90 50.150.0p90 50.1
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.97p90 1.140.93p90 1.131.00p90 1.22
Tap to next frame during the scroll (ms)20.1p90 23.021.4p90 22.121.8p90 23.7
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)59.1p90 67.2104p90 117103p90 107
Style and layout (trace) (ms)1.29p90 1.3028.5p90 29.833.2p90 35.3
Script, including rAF callbacks (trace) (ms)34.7p90 44.2129p90 143126p90 131
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—4.10p90 4.424.70p90 5.80
Main-thread work from navigation to ready (ms)16.8p90 18.145.4p90 51.224.6 ✓ lowerp90 26.0
First frame in the correct starting state (ms)—35.5 ✓ lowerp90 42.046.9p90 54.9
Runs that showed the finished state first—100%p90 100%100%p90 100%
JS heap after ready (MB)2.46p90 2.472.80p90 2.832.17 ✓ lowerp90 2.18
Parked mid-page
Main-thread work while parked 3 s (ms)0.84p90 0.9533.9p90 37.00.90 ✓ lowerp90 1.02
requestAnimationFrame calls while parked 3 s0.00p90 0.00283p90 2830.00 ✓ lowerp90 0.00
Chromium · 1× CPU · 3000 px/s
  • No library4.41 ms, p90 4.79 ms
  • GSAP 3.15.040.1 ms, p90 44.7 ms
  • svg-scroll-draw 2.27.328.9 ms, p90 30.4 ms
Main-thread script + style + layout during the scroll: median bar, p90 whisker, the page with no library as the vertical rule.
  • No library0.73%, p90 0.74%
  • GSAP 3.15.01.49%, p90 1.49%
  • svg-scroll-draw 2.27.30.73%, p90 0.74%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
A pinned section with a scrubbed drawing, Chromium · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Main-thread script + style + layout during the scroll (ms)4.41p90 4.7940.1p90 44.728.9 ✓ lowerp90 30.4
Script during the scroll (ms)3.19p90 3.6728.6p90 33.017.8 ✓ lowerp90 18.7
Style recalculation during the scroll (ms)0.54p90 0.607.26 ✓ lowerp90 7.7210.4p90 11.1
Layout during the scroll (ms)0.67p90 0.733.81p90 4.530.94 ✓ lowerp90 1.06
All main-thread tasks during the scroll (ms)85.9p90 93.6135p90 145128p90 134
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)16.7p90 16.816.8p90 16.816.8p90 16.8
Frame interval, p99 (ms)16.8p90 16.827.9p90 27.916.8 ✓ lowerp90 16.8
Frames longer than 1.5 × vsync (%)0.73p90 0.741.49p90 1.490.73 ✓ lowerp90 0.74
Longest frame (ms)50.0p90 50.150.0p90 50.050.0p90 50.1
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.07p90 1.121.00p90 1.100.93p90 1.09
Tap to next frame during the scroll (ms)21.2p90 23.321.0p90 23.820.3p90 23.3
From a trace of the scroll
Paint, pre-paint, layerize and commit (trace) (ms)18.3p90 19.229.7p90 31.830.2p90 32.0
Style and layout (trace) (ms)1.25p90 1.3611.1p90 11.810.5p90 11.3
Script, including rAF callbacks (trace) (ms)11.4p90 12.952.3p90 52.936.7 ✓ lowerp90 40.9
Dropped frames (trace)0.00p90 0.000.00p90 0.000.00p90 0.00
Startup
Setup call (ms)—4.20p90 5.144.20p90 5.66
Main-thread work from navigation to ready (ms)17.0p90 18.544.5p90 51.925.3 ✓ lowerp90 25.8
First frame in the correct starting state (ms)—32.3 ✓ lowerp90 47.645.0p90 56.9
Runs that showed the finished state first—100%p90 100%100%p90 100%
JS heap after ready (MB)2.46p90 2.472.70p90 2.832.16 ✓ lowerp90 2.18
Parked mid-page
Main-thread work while parked 3 s (ms)1.17p90 1.2831.6p90 37.21.14 ✓ lowerp90 1.33
requestAnimationFrame calls while parked 3 s0.00p90 0.00282p90 2830.00 ✓ lowerp90 0.00
Firefox · 1× CPU · 800 px/s
  • No library0.19%, p90 0.19%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.19%, p90 0.19%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
A pinned section with a scrubbed drawing, Firefox · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)18.2p90 18.318.2p90 18.318.2p90 18.3
Frame interval, p99 (ms)18.6p90 18.618.5 ✓ lowerp90 18.618.6p90 18.6
Frames longer than 1.5 × vsync (%)0.19p90 0.190.00 ✓ lowerp90 0.000.19p90 0.19
Longest frame (ms)37.9p90 38.518.7 ✓ lowerp90 18.738.7p90 40.5
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.67p90 0.870.33p90 0.670.33p90 0.87
Tap to next frame during the scroll (ms)1.67p90 2.001.67p90 1.871.67p90 2.00
Startup
Setup call (ms)—8.00p90 9.007.00p90 8.00
First frame in the correct starting state (ms)—56.0p90 61.445.0 ✓ lowerp90 48.0
Runs that showed the finished state first—100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00281p90 2830.00 ✓ lowerp90 0.00
Firefox · 1× CPU · 3000 px/s
  • No library0.48%, p90 0.48%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.48%, p90 0.48%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
A pinned section with a scrubbed drawing, Firefox · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)16.7p90 16.716.7p90 16.716.7p90 16.7
Frame interval, p95 (ms)18.2p90 18.318.2p90 18.418.3p90 18.3
Frame interval, p99 (ms)18.6p90 18.618.5p90 18.618.6p90 18.6
Frames longer than 1.5 × vsync (%)0.48p90 0.480.00 ✓ lowerp90 0.000.48p90 0.48
Longest frame (ms)37.8p90 39.818.6 ✓ lowerp90 18.738.0p90 39.7
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)0.33p90 1.000.67p90 0.670.33p90 0.53
Tap to next frame during the scroll (ms)1.00p90 1.531.33p90 2.001.33p90 1.67
Startup
Setup call (ms)—8.00p90 9.007.00 ✓ lowerp90 8.00
First frame in the correct starting state (ms)—57.0p90 59.040.0 ✓ lowerp90 46.6
Runs that showed the finished state first—100%p90 100%100%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00283p90 2830.00 ✓ lowerp90 0.00
WebKit · 1× CPU · 800 px/s
  • No library0.00%, p90 0.00%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
A pinned section with a scrubbed drawing, WebKit · 1× CPU · 800 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)17.0p90 17.017.0p90 17.017.0p90 17.0
Frame interval, p95 (ms)18.0p90 18.018.0p90 19.018.0p90 18.0
Frame interval, p99 (ms)19.0p90 19.019.0p90 19.019.0p90 19.0
Frames longer than 1.5 × vsync (%)0.00p90 0.000.00p90 0.000.00p90 0.00
Longest frame (ms)20.0p90 22.623.0p90 25.021.0 ✓ lowerp90 22.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.33p90 1.671.00p90 1.331.33p90 1.53
Tap to next frame during the scroll (ms)16.0p90 16.715.3 ✓ lowerp90 16.216.3p90 17.0
Startup
Setup call (ms)—5.00p90 5.005.00p90 6.00
First frame in the correct starting state (ms)—36.0p90 43.226.0 ✓ lowerp90 37.8
Runs that showed the finished state first—100%p90 100%0%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00282p90 2830.00 ✓ lowerp90 0.00
WebKit · 1× CPU · 3000 px/s
  • No library0.00%, p90 0.00%
  • GSAP 3.15.00.00%, p90 0.00%
  • svg-scroll-draw 2.27.30.00%, p90 0.00%
Frames longer than 1.5 × vsync: median bar, p90 whisker, the page with no library as the vertical rule.
A pinned section with a scrubbed drawing, WebKit · 1× CPU · 3000 px/s: median, with p90 below
MetricNo libraryGSAP 3.15.0svg-scroll-draw 2.27.3JS engine
During the scroll
Frame interval, median (ms)17.0p90 17.017.0p90 17.017.0p90 17.0
Frame interval, p95 (ms)18.0p90 18.018.0p90 19.018.0p90 18.0
Frame interval, p99 (ms)19.0p90 19.019.0p90 19.019.0p90 19.0
Frames longer than 1.5 × vsync (%)0.00p90 0.000.00p90 0.000.00p90 0.00
Longest frame (ms)19.0p90 19.023.0p90 23.619.0 ✓ lowerp90 21.0
Long tasks (> 50 ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-task blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Long-animation-frame blocking time (ms)0.00p90 0.000.00p90 0.000.00p90 0.00
Tap input delay during the scroll (ms)1.67p90 1.671.67p90 1.671.33p90 1.53
Tap to next frame during the scroll (ms)16.0p90 16.315.0 ✓ lowerp90 15.716.0p90 17.0
Startup
Setup call (ms)—5.00p90 6.005.00p90 6.00
First frame in the correct starting state (ms)—34.0p90 43.228.0p90 43.2
Runs that showed the finished state first—100%p90 100%0%p90 100%
Parked mid-page
requestAnimationFrame calls while parked 3 s0.00p90 0.00283p90 2830.00 ✓ lowerp90 0.00
09equal work

Parity gate.

Before any timing, each library’s page is scrolled to eleven positions and every path’s drawn share, or every card’s opacity and offset, is read and compared with GSAP’s. A run stops if they disagree by more than the tolerance, so the timings compare the same work. The figure is the largest disagreement found, in units of that tolerance (1 is the limit).

ScenarioBrowserAgainst GSAPRuleWorstEngine taken
A · one pathChromiumsvg-scroll-draw 2.27.3drawn share within 1%0.00native CSS
A · one pathChromiumsvg-scroll-draw, JS enginedrawn share within 1%0.00JS engine
B1 · 40 SVGsChromiumsvg-scroll-draw 2.27.3drawn share within 1%0.25native CSS
B1 · 40 SVGsChromiumsvg-scroll-draw, JS enginedrawn share within 1%0.25JS engine
B2 · staggerChromiumsvg-scroll-draw 2.27.3drawn share within 1%0.25JS engine
C1 · reveal, idiomaticChromiumsvg-scroll-draw 2.27.3start hidden, end shownpassJS engine
C2 · reveal, matchedChromiumsvg-scroll-draw 2.27.3opacity within 0.01, translateY within 0.32px0.20JS engine
D · pin + drawChromiumsvg-scroll-draw 2.27.3drawn share within 1%0.25JS engine
A · one pathFirefoxsvg-scroll-draw 2.27.3drawn share within 1%0.00native CSS
A · one pathFirefoxsvg-scroll-draw, JS enginedrawn share within 1%0.00JS engine
B1 · 40 SVGsFirefoxsvg-scroll-draw 2.27.3drawn share within 1%0.25native CSS
B1 · 40 SVGsFirefoxsvg-scroll-draw, JS enginedrawn share within 1%0.25JS engine
B2 · staggerFirefoxsvg-scroll-draw 2.27.3drawn share within 1%0.25JS engine
C1 · reveal, idiomaticFirefoxsvg-scroll-draw 2.27.3start hidden, end shownpassJS engine
C2 · reveal, matchedFirefoxsvg-scroll-draw 2.27.3opacity within 0.01, translateY within 0.32px0.25JS engine
D · pin + drawFirefoxsvg-scroll-draw 2.27.3drawn share within 1%0.25JS engine
A · one pathWebKitsvg-scroll-draw 2.27.3drawn share within 1%0.00native CSS
A · one pathWebKitsvg-scroll-draw, JS enginedrawn share within 1%0.00JS engine
B1 · 40 SVGsWebKitsvg-scroll-draw 2.27.3drawn share within 1%0.50native CSS
B1 · 40 SVGsWebKitsvg-scroll-draw, JS enginedrawn share within 1%0.50JS engine
B2 · staggerWebKitsvg-scroll-draw 2.27.3drawn share within 1%0.25JS engine
C1 · reveal, idiomaticWebKitsvg-scroll-draw 2.27.3start hidden, end shownpassJS engine
C2 · reveal, matchedWebKitsvg-scroll-draw 2.27.3opacity within 0.01, translateY within 0.32px0.20JS engine
D · pin + drawWebKitsvg-scroll-draw 2.27.3drawn share within 1%0.25JS engine
10bytes

Bytes.

The scenarios load GSAP core and ScrollTrigger (45.3 KB), plus DrawSVGPlugin for the drawing scenarios (47.5 KB). svg-scroll-draw’s main entry is 11.9 KB with every API in it, its reveal entry 6.1 KB. Those are the figures on the size comparison, measured with gzip -9.

The harness re-measures the files it served and checks them against those figures: gsap.min.js 27.7 KB, ScrollTrigger.min.js 17.6 KB, DrawSVGPlugin.min.js 2.2 KB; svg-scroll-draw main 11.9 KB, reveal 6.1 KB, main + pin 12.8 KB. gzip level 9 (Node zlib). GSAP: each dist file the pages load. svg-scroll-draw: each ES module entry with every chunk it imports, as npm run size measures it.

11how

Method.

  • The same page for every library: one HTML file per scenario takes ?lib=, and a seeded generator builds identical paths and cards. The page with no library is the baseline. Viewport 1280 × 800 at 1× pixel ratio.
  • Each run gets a fresh browser context; the page loads, waits for fonts, then one second for GSAP’s load-time refresh and svg-scroll-draw’s first measure to settle. Only then does the timed scroll start.
  • The scroll covers the whole page at 800 and 3000 px/s. In Chromium it is CDP’s synthetic scroll gesture; in Firefox (smooth scrolling off) and WebKit, 100px wheel steps at the same rate. Three taps on a fixed button land at a quarter, half and three quarters of the way.
  • Chromium runs at 1× and 4× CPU throttling; Firefox and WebKit have no equivalent and run unthrottled. Main-thread times come from CDP’s performance counters read either side of the gesture; frame times from requestAnimationFrame; long tasks and long animation frames from PerformanceObserver.
  • After the scroll the page is parked mid-way for 3 s to count what each library does when nothing moves.
  • 2 warm-up round(s) are discarded, then 15 timed rounds and, in Chromium, 5 traced round(s) for the paint split. Each round runs every cell once in a seeded random order, in a freshly launched browser, so drift spreads across libraries.
  • This run: one laptop on mains power from start to end (the log reads the power source at both), its lid open and kept awake.
  • For about an hour and a half during the Chromium rounds, light work ran alongside: type checks, one short test of a Svelte app and a few page loads. Every round runs all cells in a shuffled order, so it fell on both libraries alike, but it widens the Chromium intervals.
  • Medians and p90 are reported. A difference is called only when the 95% bootstrap interval of the difference in medians excludes zero; otherwise the page says there is no measurable difference.
12read this

Threats to validity.

  • The native CSS path is our advantage. In A and B1, wherever the browser supports scroll timelines, svg-scroll-draw runs no JavaScript per frame: the browser animates the stroke itself. That compares a JavaScript library with the browser’s own CSS, which anyone can write by hand without either library. Every native cell sits next to the JS-engine cell, which is the engine-against-engine number. stroke-dashoffset is not composited, so style and paint still happen on the main thread either way.
  • Where svg-scroll-draw is JavaScript anyway (B2, C1, C2, D), the comparison is JS against JS. These are the fairest head-to-heads.
  • Loading differs. GSAP loads as its UMD files in classic script tags; svg-scroll-draw as ES modules through an import map, because its single-file script build has no scrollReveal or scrollPin. Module scripts run after the document is parsed, so the first-correct-frame and flash metrics partly measure the loading method rather than the library.
  • Defaults stay defaults. No gsap.config, lagSmoothing or ScrollTrigger.config changes, and nothing beyond each scenario’s needs for svg-scroll-draw. Both libraries schedule work with requestAnimationFrame; how much of it continues once the page stops moving is a real cost of each design, and the parked metrics count it rather than hide it.
  • Startup is kept apart from the scroll. ScrollTrigger’s load-time refresh and svg-scroll-draw’s first measure count under startup, not under the scroll.
  • Matched setups are translations. GSAP’s stagger maths in B2, the per-card triggers in C2 (with a top-=32 offset, because ScrollTrigger measures a card with its starting offset applied) and the explicit pin length in D exist only to reproduce svg-scroll-draw’s motion. The parity gate proves each one.
  • Throttling is partial. Chromium’s CPU throttle slows the renderer main thread only; compositor, raster and GPU work run at full speed, which flatters work done off the main thread for both libraries.
  • Lab, not field. One machine; synthetic input, not a trackpad; no phone GPU. Run it on the hardware you care about.
  • Author bias. svg-scroll-draw’s author wrote the harness. The code shown is the code that runs, the scenario pages are public, and the GSAP setups follow GSAP’s documentation. If there is a faster idiomatic GSAP setup, open a pull request and it will be re-run and published.
  • No cherry-picking. The page renders every cell and comparison in the results file. The harness has no option to leave one out.
13gaps

Not measured.

  • Main-thread counters, long tasks and the trace split exist in Chromium only; Firefox and WebKit report frame pacing, input delay, setup time and rAF calls.
  • Tap-to-frame is the time from a tap to the frame after its handler ran, an approximation of INP rather than INP.
  • Scroll-to-paint sync error (how far a drawing lags the scroll) is not measured yet; reading styles every frame would distort the timings, so it needs a separate pass.
  • Resize and refresh cost, a 2× pixel ratio pass and real phones are not in this run.
14reproduce

Run it yourself.

14.1

Clone, install, run

Terminal

sh6 lines
git clone https://github.com/DhruvilChauahan0210/ink-scroll
cd ink-scroll && npm ci
npx playwright install chromium firefox webkit
npm run bench:gsap               # the full run (hours)
npm run bench:gsap -- --quick    # a short pass, one speed
npm run bench:gsap -- --smoke    # parity gate only

Results go to apps/demo/src/data/bench-gsap.json, which this page renders. Pull requests with results from other machines are welcome.

N.B.

Bundle size, licence and features are on svg-scroll-draw vs GSAP; why scroll animations jank in the first place is in the performance post.