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
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
Machine and versions.
| Measured | 2026-11-16 00:14 UTC, in 581.7 min |
|---|---|
| Machine | Apple M5, 10 cores, 24 GB, darwin 25.6.0, power: ac |
| Chromium | 158.0.8127.18, 60 Hz, scroll timelines supported, GPU: ANGLE (Apple, ANGLE Metal Renderer: Apple M5, Unspecified Version) |
| Firefox | 159.0, 60 Hz, scroll timelines supported, GPU: Apple M1, or similar |
| WebKit | 27.2, 59 Hz, scroll timelines supported, GPU: Apple GPU |
| GSAP | 3.15.0: gsap.min.js, ScrollTrigger.min.js, DrawSVGPlugin.min.js, unmodified |
| svg-scroll-draw | 2.27.3 at 22ca77d, ES modules from dist |
| Harness | Node v22.15.0, Playwright 1.65.0, seed 20261113 |
Raw results, every sample: results.json.
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.
The code each page runs
GSAP 3.15.0
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
import { scrollDraw } from 'svg-scroll-draw';
scrollDraw('#a');svg-scroll-draw, JS engine
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
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Main-thread script + style + layout during the scroll (ms) | 2.73p90 3.98 | 14.0p90 17.4 | 4.85 ✓ lowerp90 6.28 | 7.16 ✓ lowerp90 14.9 |
| Script during the scroll (ms) | 1.66p90 2.89 | 12.0p90 14.1 | 1.87 ✓ lowerp90 2.31 | 3.92 ✓ lowerp90 7.30 |
| Style recalculation during the scroll (ms) | 0.70p90 1.05 | 2.04p90 2.37 | 1.97p90 3.35 | 2.59p90 7.07 |
| Layout during the scroll (ms) | 0.36p90 0.88 | 0.55 ✓ lowerp90 1.14 | 0.92p90 1.36 | 0.90p90 1.33 |
| All main-thread tasks during the scroll (ms) | 45.2p90 52.8 | 66.6p90 89.7 | 57.0 ✓ lowerp90 82.5 | 57.6p90 99.3 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.7p90 16.8 | 16.7p90 16.8 | 16.7p90 16.8 | 16.7p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.28p90 0.28 | 0.28p90 0.28 | 0.28 ✓ lowerp90 0.28 | 0.28 ✓ lowerp90 0.28 |
| Longest frame (ms) | 33.3p90 33.4 | 33.4p90 33.4 | 33.3p90 33.4 | 33.4p90 33.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.23p90 1.51 | 1.10p90 1.33 | 1.10p90 1.25 | 1.13p90 1.41 |
| Tap to next frame during the scroll (ms) | 16.5p90 17.7 | 15.7p90 18.5 | 16.7p90 17.2 | 15.7p90 18.3 |
| From a trace of the scroll | ||||
| Paint, pre-paint, layerize and commit (trace) (ms) | 14.4p90 17.8 | 29.5p90 41.6 | 33.5p90 37.1 | 41.1p90 53.3 |
| Style and layout (trace) (ms) | 1.27p90 1.70 | 3.46p90 4.61 | 2.43p90 4.00 | 3.51p90 6.00 |
| Script, including rAF callbacks (trace) (ms) | 9.54p90 11.3 | 24.9p90 37.7 | 8.47 ✓ lowerp90 10.3 | 24.7p90 29.6 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | ||||
| Setup call (ms) | — | 12.5p90 13.2 | 4.90 ✓ lowerp90 5.06 | 4.90 ✓ lowerp90 5.30 |
| Main-thread work from navigation to ready (ms) | 46.6p90 48.4 | 83.1p90 88.0 | 69.3 ✓ lowerp90 74.2 | 68.7 ✓ lowerp90 74.8 |
| First frame in the correct starting state (ms) | — | 70.1 ✓ lowerp90 74.1 | 85.2p90 90.2 | 72.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.29 | 2.91p90 2.91 | 2.54 ✓ lowerp90 2.54 | 2.49 ✓ lowerp90 2.49 |
| Parked mid-page | ||||
| Main-thread work while parked 3 s (ms) | 0.32p90 0.89 | 6.06p90 11.3 | 0.39 ✓ lowerp90 0.89 | 5.50p90 15.2 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 282p90 282 | 0.00 ✓ lowerp90 0.00 | 180 ✓ lowerp90 180 |
Chromium · 4× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Main-thread script + style + layout during the scroll (ms) | 2.57p90 3.22 | 10.0p90 11.4 | 2.82 ✓ lowerp90 4.59 | 4.51 ✓ lowerp90 6.16 |
| Script during the scroll (ms) | 1.07p90 2.22 | 8.29p90 9.85 | 1.14 ✓ lowerp90 2.40 | 2.74 ✓ lowerp90 4.90 |
| Style recalculation during the scroll (ms) | 0.44p90 1.14 | 0.93p90 1.78 | 0.84p90 1.86 | 1.15p90 1.97 |
| Layout during the scroll (ms) | 0.76p90 1.58 | 0.74p90 1.16 | 0.66p90 1.28 | 0.68p90 1.22 |
| All main-thread tasks during the scroll (ms) | 30.8p90 40.1 | 42.4p90 46.9 | 35.7 ✓ lowerp90 45.9 | 38.7 ✓ lowerp90 45.2 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.8p90 16.8 | 16.7p90 16.8 | 16.8p90 16.8 | 16.7p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.9 | 17.0p90 17.0 | 16.8 ✓ lowerp90 16.8 | 16.8 ✓ lowerp90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.99p90 1.00 | 1.00p90 1.00 | 0.99 ✓ lowerp90 0.99 | 0.99 ✓ lowerp90 0.99 |
| Longest frame (ms) | 33.3p90 33.3 | 33.3p90 33.4 | 33.4p90 33.4 | 33.3p90 33.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.07p90 1.47 | 1.10p90 1.20 | 1.17p90 1.39 | 1.10p90 1.26 |
| Tap to next frame during the scroll (ms) | 13.8p90 18.0 | 12.7p90 15.7 | 12.9p90 15.5 | 13.3p90 16.6 |
| From a trace of the scroll | ||||
| Paint, pre-paint, layerize and commit (trace) (ms) | 5.64p90 7.97 | 11.7p90 13.9 | 10.3p90 10.9 | 7.89p90 11.4 |
| Style and layout (trace) (ms) | 1.25p90 1.75 | 1.93p90 2.60 | 1.76p90 2.32 | 1.53p90 2.77 |
| Script, including rAF callbacks (trace) (ms) | 4.68p90 9.91 | 14.3p90 16.8 | 4.57 ✓ lowerp90 9.38 | 6.30 ✓ lowerp90 9.69 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | ||||
| Setup call (ms) | — | 12.4p90 13.1 | 4.90 ✓ lowerp90 5.46 | 4.80 ✓ lowerp90 5.26 |
| Main-thread work from navigation to ready (ms) | 44.6p90 51.1 | 82.8p90 88.4 | 70.8 ✓ lowerp90 77.0 | 65.7 ✓ lowerp90 69.6 |
| First frame in the correct starting state (ms) | — | 69.9 ✓ lowerp90 76.7 | 88.1p90 92.4 | 67.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.29 | 2.91p90 2.91 | 2.54 ✓ lowerp90 2.54 | 2.49 ✓ lowerp90 2.49 |
| Parked mid-page | ||||
| Main-thread work while parked 3 s (ms) | 0.79p90 1.22 | 5.22p90 7.05 | 0.43 ✓ lowerp90 1.17 | 5.66p90 8.53 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 282p90 282 | 0.00 ✓ lowerp90 0.00 | 180 ✓ lowerp90 180 |
Chromium · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Main-thread script + style + layout during the scroll (ms) | 7.67p90 8.97 | 42.3p90 44.8 | 16.3 ✓ lowerp90 17.2 | 31.6 ✓ lowerp90 33.5 |
| Script during the scroll (ms) | 6.47p90 7.71 | 33.6p90 36.0 | 6.83 ✓ lowerp90 7.65 | 19.8 ✓ lowerp90 20.7 |
| Style recalculation during the scroll (ms) | 0.56p90 0.65 | 7.81 ✓ lowerp90 8.48 | 8.61p90 9.30 | 11.6p90 12.1 |
| Layout during the scroll (ms) | 0.68p90 0.74 | 0.70p90 0.83 | 0.68p90 0.80 | 0.64p90 0.73 |
| All main-thread tasks during the scroll (ms) | 139p90 152 | 221p90 230 | 199 ✓ lowerp90 207 | 204 ✓ lowerp90 214 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.7p90 16.8 | 16.7p90 16.8 | 16.7p90 16.8 | 16.7p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.28p90 0.28 | 0.28p90 0.28 | 0.28p90 0.28 | 0.28p90 0.28 |
| Longest frame (ms) | 49.9p90 50.0 | 49.9p90 50.1 | 50.0p90 50.0 | 50.0p90 50.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.00p90 1.17 | 0.97p90 1.19 | 1.00p90 1.07 | 0.93p90 1.10 |
| Tap to next frame during the scroll (ms) | 22.9p90 27.9 | 24.6 ✓ lowerp90 27.4 | 28.6p90 29.6 | 24.4p90 28.1 |
| From a trace of the scroll | ||||
| Paint, pre-paint, layerize and commit (trace) (ms) | 40.2p90 44.2 | 80.6p90 82.9 | 80.1p90 81.6 | 81.5p90 83.8 |
| Style and layout (trace) (ms) | 1.10p90 1.17 | 8.58 ✓ lowerp90 8.84 | 8.46p90 8.83 | 11.2p90 12.2 |
| Script, including rAF callbacks (trace) (ms) | 27.3p90 29.6 | 72.3p90 73.8 | 26.8 ✓ lowerp90 29.0 | 64.8 ✓ lowerp90 67.9 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | ||||
| Setup call (ms) | — | 3.00p90 3.06 | 1.20 ✓ lowerp90 2.96 | 1.30 ✓ lowerp90 3.02 |
| Main-thread work from navigation to ready (ms) | 16.5p90 18.6 | 34.3p90 37.0 | 21.7 ✓ lowerp90 23.7 | 21.9 ✓ lowerp90 26.4 |
| First frame in the correct starting state (ms) | — | 24.0 ✓ lowerp90 27.9 | 48.4p90 55.9 | 35.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.29 | 2.91p90 2.91 | 2.54 ✓ lowerp90 2.54 | 2.49 ✓ lowerp90 2.49 |
| Parked mid-page | ||||
| Main-thread work while parked 3 s (ms) | 0.74p90 0.84 | 30.8p90 35.5 | 0.97 ✓ lowerp90 1.02 | 30.0p90 36.3 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 283p90 283 | 0.00 ✓ lowerp90 0.00 | 181 ✓ lowerp90 181 |
Chromium · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Main-thread script + style + layout during the scroll (ms) | 3.76p90 4.06 | 17.0p90 18.4 | 5.76 ✓ lowerp90 6.33 | 10.6 ✓ lowerp90 11.4 |
| Script during the scroll (ms) | 2.58p90 2.87 | 13.7p90 14.9 | 2.45 ✓ lowerp90 2.71 | 6.59 ✓ lowerp90 6.92 |
| Style recalculation during the scroll (ms) | 0.53p90 0.65 | 2.62 ✓ lowerp90 2.86 | 2.65p90 2.87 | 3.50p90 3.81 |
| Layout during the scroll (ms) | 0.64p90 0.75 | 0.79p90 0.86 | 0.67 ✓ lowerp90 0.71 | 0.66 ✓ lowerp90 0.74 |
| All main-thread tasks during the scroll (ms) | 73.4p90 78.4 | 95.2p90 102 | 84.5 ✓ lowerp90 89.8 | 91.1 ✓ lowerp90 95.3 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.7p90 16.8 | 16.7p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 17.1p90 17.5 | 17.5p90 17.5 | 17.1p90 17.5 | 17.1p90 17.5 |
| Frames longer than 1.5 × vsync (%) | 1.00p90 1.01 | 1.01p90 1.01 | 1.00p90 1.01 | 1.00p90 1.01 |
| Longest frame (ms) | 50.0p90 50.1 | 50.0p90 50.1 | 50.0p90 50.1 | 50.0p90 50.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.03p90 1.19 | 1.07p90 1.22 | 1.00p90 1.15 | 1.00p90 1.15 |
| Tap to next frame during the scroll (ms) | 20.9p90 24.6 | 20.7 ✓ lowerp90 23.9 | 22.4p90 25.9 | 22.3p90 24.1 |
| From a trace of the scroll | ||||
| Paint, pre-paint, layerize and commit (trace) (ms) | 12.1p90 12.3 | 23.9p90 24.9 | 24.4p90 25.9 | 22.1p90 23.5 |
| Style and layout (trace) (ms) | 1.19p90 1.26 | 3.49p90 3.78 | 3.48p90 3.59 | 3.83p90 4.10 |
| Script, including rAF callbacks (trace) (ms) | 9.06p90 9.28 | 27.1p90 28.3 | 9.70 ✓ lowerp90 11.4 | 19.7 ✓ lowerp90 21.1 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | ||||
| Setup call (ms) | — | 2.90p90 3.10 | 1.20 ✓ lowerp90 2.90 | 1.80p90 3.14 |
| Main-thread work from navigation to ready (ms) | 17.0p90 17.6 | 35.7p90 37.2 | 21.8 ✓ lowerp90 23.0 | 21.2 ✓ lowerp90 24.0 |
| First frame in the correct starting state (ms) | — | 24.0 ✓ lowerp90 30.7 | 45.3p90 49.2 | 25.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.29 | 2.91p90 2.91 | 2.54 ✓ lowerp90 2.54 | 2.49 ✓ lowerp90 2.49 |
| Parked mid-page | ||||
| Main-thread work while parked 3 s (ms) | 1.13p90 1.29 | 31.2p90 34.7 | 1.09 ✓ lowerp90 1.27 | 34.5p90 42.1 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 283p90 283 | 0.00 ✓ lowerp90 0.00 | 181 ✓ lowerp90 181 |
Firefox · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 18.3p90 18.3 | 18.2p90 18.3 | 18.3p90 18.3 | 18.2p90 18.3 |
| Frame interval, p99 (ms) | 18.6p90 18.6 | 18.6p90 18.6 | 18.6p90 18.6 | 18.6p90 18.6 |
| Frames longer than 1.5 × vsync (%) | 0.26p90 0.26 | 0.00 ✓ lowerp90 0.00 | 0.00p90 0.00 | 0.26p90 0.26 |
| Longest frame (ms) | 37.6p90 38.5 | 18.7 ✓ lowerp90 18.7 | 18.7p90 18.7 | 38.5p90 40.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.33p90 1.00 | 0.67p90 0.67 | 0.33p90 0.87 | 0.33p90 0.67 |
| Tap to next frame during the scroll (ms) | 1.33p90 2.00 | 1.67p90 1.87 | 1.33p90 1.87 | 1.67p90 1.67 |
| Startup | ||||
| Setup call (ms) | — | 5.00p90 6.00 | 2.00 ✓ lowerp90 6.60 | 2.00 ✓ lowerp90 2.00 |
| First frame in the correct starting state (ms) | — | 42.0p90 46.4 | 46.0p90 49.0 | 42.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 s | 0.00p90 0.00 | 283p90 283 | 0.00 ✓ lowerp90 0.00 | 180 ✓ lowerp90 181 |
Firefox · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 18.1p90 18.2 | 18.2p90 18.3 | 18.2p90 18.3 | 18.2p90 18.4 |
| Frame interval, p99 (ms) | 18.5p90 18.6 | 18.5 ✓ lowerp90 18.6 | 18.5p90 18.6 | 18.6p90 18.6 |
| Frames longer than 1.5 × vsync (%) | 0.65p90 0.65 | 0.00 ✓ lowerp90 0.00 | 0.00p90 0.00 | 0.65p90 0.65 |
| Longest frame (ms) | 37.2p90 39.2 | 18.6 ✓ lowerp90 18.7 | 18.6p90 18.7 | 37.9p90 39.5 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.67p90 1.00 | 0.33p90 0.87 | 0.67p90 0.87 | 0.33p90 0.87 |
| Tap to next frame during the scroll (ms) | 1.67p90 2.00 | 1.33p90 1.87 | 1.33p90 2.27 | 1.67p90 2.40 |
| Startup | ||||
| Setup call (ms) | — | 5.00p90 6.00 | 2.00 ✓ lowerp90 2.00 | 1.00 ✓ lowerp90 2.00 |
| First frame in the correct starting state (ms) | — | 34.0p90 43.6 | 45.0p90 49.0 | 44.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 s | 0.00p90 0.00 | 206p90 206 | 0.00 ✓ lowerp90 0.00 | 181 ✓ lowerp90 181 |
WebKit · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Frame interval, median (ms) | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 |
| Frame interval, p95 (ms) | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.0 |
| Frame interval, p99 (ms) | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Frames longer than 1.5 × vsync (%) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Longest frame (ms) | 19.0p90 21.0 | 19.0p90 20.0 | 19.0p90 19.0 | 19.0p90 20.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.33p90 1.67 | 1.33p90 1.33 | 1.33p90 1.67 | 1.33p90 1.67 |
| Tap to next frame during the scroll (ms) | 15.7p90 16.3 | 15.7p90 16.5 | 16.3p90 16.9 | 16.0p90 16.7 |
| Startup | ||||
| Setup call (ms) | — | 3.00p90 4.00 | 2.00 ✓ lowerp90 2.00 | 2.00 ✓ lowerp90 2.00 |
| First frame in the correct starting state (ms) | — | 26.0p90 32.2 | 29.0p90 36.6 | 29.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 s | 0.00p90 0.00 | 283p90 283 | 0.00 ✓ lowerp90 0.00 | 181 ✓ lowerp90 181 |
WebKit · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Frame interval, median (ms) | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 |
| Frame interval, p95 (ms) | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.0 |
| Frame interval, p99 (ms) | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Frames longer than 1.5 × vsync (%) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Longest frame (ms) | 19.0p90 19.0 | 19.0p90 19.6 | 19.0p90 19.0 | 19.0p90 19.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.33p90 1.67 | 1.33p90 1.67 | 1.33p90 1.67 | 1.33p90 1.67 |
| Tap to next frame during the scroll (ms) | 15.7p90 16.2 | 15.7p90 16.2 | 16.0p90 16.3 | 15.7p90 16.9 |
| Startup | ||||
| Setup call (ms) | — | 3.00p90 4.00 | 2.00 ✓ lowerp90 2.00 | 2.00 ✓ lowerp90 2.00 |
| First frame in the correct starting state (ms) | — | 31.0p90 35.2 | 28.0p90 40.6 | 32.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 s | 0.00p90 0.00 | 209p90 210 | 0.00 ✓ lowerp90 0.00 | 181 ✓ lowerp90 181 |
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.
The code each page runs
GSAP 3.15.0
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
import { scrollDraw } from 'svg-scroll-draw';
document.querySelectorAll('.b1 svg').forEach((svg) => scrollDraw(svg));svg-scroll-draw, JS engine
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
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Main-thread script + style + layout during the scroll (ms) | 4.53p90 6.53 | 78.2p90 104 | 17.7 ✓ lowerp90 39.7 | 56.6 ✓ lowerp90 99.2 |
| Script during the scroll (ms) | 2.92p90 4.88 | 62.5p90 78.6 | 3.23 ✓ lowerp90 7.40 | 29.3 ✓ lowerp90 49.1 |
| Style recalculation during the scroll (ms) | 0.69p90 0.93 | 13.5 ✓ lowerp90 24.2 | 13.8p90 32.4 | 24.9p90 50.5 |
| Layout during the scroll (ms) | 1.10p90 1.69 | 2.50p90 3.53 | 0.71 ✓ lowerp90 1.12 | 0.86 ✓ lowerp90 1.39 |
| All main-thread tasks during the scroll (ms) | 64.7p90 95.3 | 232p90 337 | 219p90 380 | 232p90 429 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.7p90 16.8 | 16.7 ✓ lowerp90 16.8 | 16.7p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.15p90 0.24 | 0.15p90 0.24 | 0.15p90 0.15 | 0.15p90 0.15 |
| Longest frame (ms) | 33.3p90 33.4 | 33.3p90 33.4 | 33.3p90 33.4 | 33.3p90 33.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.20p90 1.35 | 1.17p90 1.25 | 1.20p90 1.37 | 0.93p90 1.17 |
| Tap to next frame during the scroll (ms) | 14.8p90 18.3 | 14.3 ✓ lowerp90 17.6 | 16.4p90 19.4 | 15.8p90 19.2 |
| From a trace of the scroll | ||||
| Paint, pre-paint, layerize and commit (trace) (ms) | 25.1p90 32.2 | 125 ✓ lowerp90 136 | 131p90 185 | 176p90 212 |
| Style and layout (trace) (ms) | 1.82p90 2.69 | 19.7 ✓ lowerp90 20.7 | 17.1p90 29.6 | 35.5p90 51.4 |
| Script, including rAF callbacks (trace) (ms) | 13.3p90 18.9 | 110 ✓ lowerp90 112 | 12.6 ✓ lowerp90 21.6 | 222p90 260 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | ||||
| Setup call (ms) | — | 63.1p90 65.6 | 25.9 ✓ lowerp90 27.9 | 21.6 ✓ lowerp90 23.1 |
| Main-thread work from navigation to ready (ms) | 45.2p90 49.0 | 148p90 156 | 84.3 ✓ lowerp90 94.0 | 77.8 ✓ lowerp90 88.1 |
| First frame in the correct starting state (ms) | — | 118p90 122 | 86.6 ✓ lowerp90 106 | 78.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.50 | 2.89p90 2.91 | 2.34 ✓ lowerp90 2.34 | 2.41 ✓ lowerp90 2.42 |
| Parked mid-page | ||||
| Main-thread work while parked 3 s (ms) | 0.76p90 1.25 | 5.38 ✓ lowerp90 6.14 | 0.44 ✓ lowerp90 1.11 | 7.14p90 12.0 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 206 ✓ lowerp90 207 | 0.00 ✓ lowerp90 0.00 | 900p90 900 |
Chromium · 4× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Main-thread script + style + layout during the scroll (ms) | 2.94p90 4.37 | 52.1p90 78.4 | 7.36 ✓ lowerp90 15.3 | 19.2 ✓ lowerp90 38.3 |
| Script during the scroll (ms) | 1.78p90 3.12 | 42.7p90 60.8 | 1.47 ✓ lowerp90 2.79 | 9.98 ✓ lowerp90 20.9 |
| Style recalculation during the scroll (ms) | 0.16p90 0.78 | 5.78p90 11.7 | 6.19p90 11.5 | 9.44p90 17.3 |
| Layout during the scroll (ms) | 0.81p90 1.13 | 2.85p90 4.57 | 0.82 ✓ lowerp90 1.50 | 0.85 ✓ lowerp90 1.16 |
| All main-thread tasks during the scroll (ms) | 38.7p90 47.8 | 126p90 199 | 83.7 ✓ lowerp90 143 | 86.3 ✓ lowerp90 156 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.7p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 19.5 | 16.8p90 18.6 | 16.8p90 16.8 | 16.8p90 18.5 |
| Frames longer than 1.5 × vsync (%) | 0.54p90 1.08 | 0.54p90 0.87 | 0.54p90 0.54 | 0.54p90 0.87 |
| Longest frame (ms) | 33.4p90 33.4 | 33.4p90 33.4 | 33.3p90 33.4 | 33.3p90 33.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.13p90 1.53 | 0.97p90 1.20 | 1.07p90 1.23 | 1.03p90 1.42 |
| Tap to next frame during the scroll (ms) | 14.8p90 17.9 | 14.9p90 18.1 | 14.0p90 17.2 | 15.8p90 17.8 |
| From a trace of the scroll | ||||
| Paint, pre-paint, layerize and commit (trace) (ms) | 10.2p90 12.3 | 48.0p90 76.3 | 45.6p90 57.5 | 56.3p90 64.4 |
| Style and layout (trace) (ms) | 0.76p90 1.35 | 11.8p90 17.1 | 6.29 ✓ lowerp90 8.02 | 12.6p90 16.6 |
| Script, including rAF callbacks (trace) (ms) | 6.73p90 8.63 | 71.2p90 93.6 | 8.83 ✓ lowerp90 10.7 | 72.4p90 79.7 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | ||||
| Setup call (ms) | — | 63.8p90 67.2 | 25.7 ✓ lowerp90 27.0 | 21.3 ✓ lowerp90 22.3 |
| Main-thread work from navigation to ready (ms) | 44.3p90 47.4 | 150p90 160 | 83.1 ✓ lowerp90 89.5 | 78.4 ✓ lowerp90 86.3 |
| First frame in the correct starting state (ms) | — | 118p90 126 | 85.7 ✓ lowerp90 90.5 | 76.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.50 | 2.89p90 2.90 | 2.33 ✓ lowerp90 2.34 | 2.41 ✓ lowerp90 2.42 |
| Parked mid-page | ||||
| Main-thread work while parked 3 s (ms) | 0.50p90 0.99 | 6.10p90 10.2 | 0.55 ✓ lowerp90 0.95 | 8.16p90 13.2 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 210 ✓ lowerp90 211 | 0.00 ✓ lowerp90 0.00 | 900p90 900 |
Chromium · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Main-thread script + style + layout during the scroll (ms) | 11.6p90 13.9 | 232 ✓ lowerp90 244 | 87.6 ✓ lowerp90 90.3 | 263p90 276 |
| Script during the scroll (ms) | 10.4p90 12.7 | 161p90 169 | 12.0 ✓ lowerp90 12.5 | 135 ✓ lowerp90 143 |
| Style recalculation during the scroll (ms) | 0.54p90 0.63 | 64.1 ✓ lowerp90 69.1 | 75.0p90 77.2 | 127p90 132 |
| Layout during the scroll (ms) | 0.69p90 0.77 | 5.40p90 5.84 | 0.67 ✓ lowerp90 0.77 | 0.69 ✓ lowerp90 0.76 |
| All main-thread tasks during the scroll (ms) | 233p90 259 | 763 ✓ lowerp90 793 | 794p90 822 | 836p90 877 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.8p90 16.8 | 16.7p90 16.8 | 16.8p90 16.8 | 16.7p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.15p90 0.30 | 0.15p90 0.30 | 0.15p90 0.30 | 0.15p90 0.24 |
| Longest frame (ms) | 50.0p90 50.1 | 50.0p90 50.1 | 50.0p90 50.0 | 50.0p90 50.1 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.07p90 1.22 | 1.10p90 1.36 | 1.10p90 1.41 | 1.03p90 1.28 |
| Tap to next frame during the scroll (ms) | 22.6p90 25.5 | 22.3p90 24.6 | 23.4p90 24.4 | 22.6p90 25.1 |
| From a trace of the scroll | ||||
| Paint, pre-paint, layerize and commit (trace) (ms) | 75.5p90 79.2 | 300p90 307 | 298p90 311 | 302p90 307 |
| Style and layout (trace) (ms) | 1.29p90 1.52 | 69.5 ✓ lowerp90 72.9 | 71.8p90 77.5 | 117p90 120 |
| Script, including rAF callbacks (trace) (ms) | 42.3p90 50.2 | 311 ✓ lowerp90 315 | 58.8 ✓ lowerp90 62.5 | 630p90 647 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | ||||
| Setup call (ms) | — | 15.1p90 15.7 | 6.20 ✓ lowerp90 7.78 | 5.30 ✓ lowerp90 6.86 |
| Main-thread work from navigation to ready (ms) | 16.7p90 18.0 | 51.4p90 53.5 | 26.1 ✓ lowerp90 28.1 | 25.0 ✓ lowerp90 26.9 |
| First frame in the correct starting state (ms) | — | 33.2 ✓ lowerp90 36.3 | 49.5p90 60.3 | 31.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.50 | 2.91p90 2.93 | 2.43 ✓ lowerp90 2.44 | 2.41 ✓ lowerp90 2.48 |
| Parked mid-page | ||||
| Main-thread work while parked 3 s (ms) | 0.93p90 1.01 | 32.5 ✓ lowerp90 34.2 | 0.82 ✓ lowerp90 0.97 | 41.2p90 44.4 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 281 ✓ lowerp90 283 | 0.00 ✓ lowerp90 0.00 | 900p90 905 |
Chromium · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Main-thread script + style + layout during the scroll (ms) | 5.16p90 5.91 | 106p90 113 | 25.3 ✓ lowerp90 27.2 | 69.9 ✓ lowerp90 75.9 |
| Script during the scroll (ms) | 3.81p90 4.58 | 80.8p90 86.5 | 4.27 ✓ lowerp90 4.43 | 36.0 ✓ lowerp90 39.8 |
| Style recalculation during the scroll (ms) | 0.57p90 0.62 | 19.8 ✓ lowerp90 20.9 | 20.2p90 22.2 | 33.0p90 35.5 |
| Layout during the scroll (ms) | 0.70p90 0.86 | 4.93p90 5.38 | 0.68 ✓ lowerp90 0.77 | 0.71 ✓ lowerp90 0.76 |
| All main-thread tasks during the scroll (ms) | 101p90 104 | 281p90 293 | 251p90 265 | 250p90 270 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 18.6 |
| Frames longer than 1.5 × vsync (%) | 0.54p90 0.55 | 0.54p90 0.55 | 0.54p90 0.55 | 0.54p90 0.87 |
| Longest frame (ms) | 50.0p90 50.0 | 50.0p90 50.1 | 50.0p90 50.1 | 50.0p90 50.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.07p90 1.17 | 0.83p90 1.44 | 1.10p90 1.27 | 1.03p90 1.25 |
| Tap to next frame during the scroll (ms) | 21.9p90 23.6 | 22.9p90 24.3 | 21.9p90 25.1 | 23.5p90 25.7 |
| From a trace of the scroll | ||||
| Paint, pre-paint, layerize and commit (trace) (ms) | 26.8p90 28.6 | 81.3p90 84.7 | 83.9p90 85.3 | 86.2p90 88.7 |
| Style and layout (trace) (ms) | 1.31p90 1.44 | 25.2 ✓ lowerp90 26.6 | 20.2 ✓ lowerp90 20.7 | 33.3p90 33.8 |
| Script, including rAF callbacks (trace) (ms) | 15.4p90 18.4 | 122 ✓ lowerp90 129 | 17.7 ✓ lowerp90 18.0 | 178p90 181 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | ||||
| Setup call (ms) | — | 15.2p90 15.8 | 6.70 ✓ lowerp90 7.50 | 5.40 ✓ lowerp90 7.20 |
| Main-thread work from navigation to ready (ms) | 17.0p90 18.0 | 51.6p90 54.2 | 25.6 ✓ lowerp90 26.9 | 24.4 ✓ lowerp90 25.9 |
| First frame in the correct starting state (ms) | — | 34.2 ✓ lowerp90 38.5 | 43.8p90 57.7 | 31.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.50 | 2.91p90 2.93 | 2.40 ✓ lowerp90 2.45 | 2.43 ✓ lowerp90 2.49 |
| Parked mid-page | ||||
| Main-thread work while parked 3 s (ms) | 1.14p90 1.27 | 29.6 ✓ lowerp90 33.9 | 1.19 ✓ lowerp90 1.34 | 41.6p90 49.3 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 193 ✓ lowerp90 193 | 0.00 ✓ lowerp90 0.00 | 905p90 905 |
Firefox · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 18.3p90 18.3 | 18.2p90 18.3 | 18.2p90 18.3 | 18.2p90 18.3 |
| Frame interval, p99 (ms) | 18.6p90 18.6 | 18.5p90 18.6 | 18.6p90 18.6 | 18.6p90 18.6 |
| Frames longer than 1.5 × vsync (%) | 0.14p90 0.14 | 0.00 ✓ lowerp90 0.00 | 0.00p90 0.00 | 0.14p90 0.14 |
| Longest frame (ms) | 38.2p90 40.5 | 18.7 ✓ lowerp90 18.7 | 18.7p90 18.7 | 38.7p90 42.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.67p90 1.00 | 0.33p90 1.00 | 0.33p90 0.67 | 0.33p90 0.67 |
| Tap to next frame during the scroll (ms) | 1.67p90 2.20 | 2.67p90 3.73 | 1.67 ✓ lowerp90 2.00 | 1.67 ✓ lowerp90 2.20 |
| Startup | ||||
| Setup call (ms) | — | 29.0p90 30.0 | 10.0 ✓ lowerp90 13.2 | 9.00 ✓ lowerp90 10.0 |
| First frame in the correct starting state (ms) | — | 67.0p90 82.8 | 54.0 ✓ lowerp90 72.2 | 45.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 s | 0.00p90 0.00 | 281 ✓ lowerp90 283 | 0.00 ✓ lowerp90 0.00 | 900p90 903 |
Firefox · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 18.2p90 18.4 | 18.3p90 18.3 | 18.3p90 18.3 | 18.3p90 18.4 |
| Frame interval, p99 (ms) | 18.6p90 18.6 | 18.5p90 18.6 | 18.6p90 18.6 | 18.6p90 18.6 |
| Frames longer than 1.5 × vsync (%) | 0.36p90 0.36 | 0.00 ✓ lowerp90 0.00 | 0.00p90 0.00 | 0.36p90 0.36 |
| Longest frame (ms) | 37.3p90 40.0 | 18.7 ✓ lowerp90 18.7 | 18.6p90 18.7 | 37.9p90 39.5 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.67p90 1.00 | 0.33p90 0.87 | 0.67p90 0.87 | 0.33p90 0.67 |
| Tap to next frame during the scroll (ms) | 1.33p90 1.87 | 2.33p90 3.00 | 1.67 ✓ lowerp90 2.20 | 1.67 ✓ lowerp90 2.00 |
| Startup | ||||
| Setup call (ms) | — | 29.0p90 30.0 | 10.0 ✓ lowerp90 11.0 | 9.00 ✓ lowerp90 13.0 |
| First frame in the correct starting state (ms) | — | 65.0p90 72.6 | 53.0 ✓ lowerp90 68.0 | 45.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 s | 0.00p90 0.00 | 240 ✓ lowerp90 241 | 0.00 ✓ lowerp90 0.00 | 905p90 905 |
WebKit · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Frame interval, median (ms) | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 |
| Frame interval, p95 (ms) | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.0 |
| Frame interval, p99 (ms) | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Frames longer than 1.5 × vsync (%) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Longest frame (ms) | 20.0p90 20.0 | 20.0p90 21.0 | 19.0p90 19.0 | 20.0p90 21.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.33p90 2.00 | 1.00p90 1.33 | 1.33p90 1.87 | 1.33p90 1.67 |
| Tap to next frame during the scroll (ms) | 15.7p90 16.3 | 15.7 ✓ lowerp90 16.7 | 16.7p90 17.2 | 17.3p90 18.2 |
| Startup | ||||
| Setup call (ms) | — | 20.0p90 20.0 | 14.0 ✓ lowerp90 14.6 | 7.00 ✓ lowerp90 7.00 |
| First frame in the correct starting state (ms) | — | 37.0p90 39.6 | 36.0p90 56.4 | 31.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 s | 0.00p90 0.00 | 243 ✓ lowerp90 282 | 0.00 ✓ lowerp90 0.00 | 900p90 905 |
WebKit · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3native CSS path | svg-scroll-draw, JS engineJS engine |
|---|---|---|---|---|
| During the scroll | ||||
| Frame interval, median (ms) | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 |
| Frame interval, p95 (ms) | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.0 |
| Frame interval, p99 (ms) | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Frames longer than 1.5 × vsync (%) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Longest frame (ms) | 19.0p90 20.0 | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.33p90 1.67 | 1.00p90 1.33 | 1.33p90 1.67 | 1.33p90 1.53 |
| Tap to next frame during the scroll (ms) | 16.0p90 16.7 | 15.7 ✓ lowerp90 16.5 | 17.0p90 17.3 | 17.3p90 17.9 |
| Startup | ||||
| Setup call (ms) | — | 20.0p90 20.6 | 13.0 ✓ lowerp90 14.0 | 6.00 ✓ lowerp90 7.00 |
| First frame in the correct starting state (ms) | — | 37.0p90 76.0 | 34.0p90 41.6 | 31.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 s | 0.00p90 0.00 | 202 ✓ lowerp90 239 | 0.00 ✓ lowerp90 0.00 | 905p90 905 |
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.
The code each page runs
GSAP 3.15.0
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
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
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 4.57p90 6.05 | 68.4p90 120 | 42.5 ✓ lowerp90 82.6 |
| Script during the scroll (ms) | 2.65p90 4.39 | 45.3p90 80.9 | 15.8 ✓ lowerp90 33.3 |
| Style recalculation during the scroll (ms) | 0.67p90 1.29 | 22.1p90 35.2 | 27.0p90 48.6 |
| Layout during the scroll (ms) | 0.74p90 1.61 | 2.73p90 4.24 | 0.60 ✓ lowerp90 1.23 |
| All main-thread tasks during the scroll (ms) | 57.8p90 81.8 | 203p90 382 | 160 ✓ lowerp90 281 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.8p90 16.8 | 16.7p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.16p90 0.16 | 0.16p90 0.16 | 0.16p90 0.16 |
| Longest frame (ms) | 33.3p90 33.4 | 33.3p90 33.4 | 33.3p90 33.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.27p90 1.43 | 1.17p90 1.51 | 1.13p90 1.31 |
| Tap to next frame during the scroll (ms) | 13.8p90 20.7 | 16.7p90 19.4 | 16.8p90 20.6 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 21.1p90 34.7 | 107p90 109 | 101p90 114 |
| Style and layout (trace) (ms) | 1.32p90 1.70 | 27.4p90 28.8 | 29.1p90 30.8 |
| Script, including rAF callbacks (trace) (ms) | 14.6p90 17.3 | 92.4p90 103 | 110p90 119 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 14.3p90 15.6 | 9.30 ✓ lowerp90 10.9 |
| Main-thread work from navigation to ready (ms) | 47.1p90 54.1 | 79.5p90 84.3 | 65.6 ✓ lowerp90 75.1 |
| First frame in the correct starting state (ms) | — | 69.6p90 71.5 | 66.9p90 76.9 |
| Runs that showed the finished state first | — | 100%p90 100% | 100%p90 100% |
| JS heap after ready (MB) | 2.52p90 2.56 | 2.72p90 2.74 | 2.18 ✓ lowerp90 2.20 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 0.43p90 0.91 | 5.18p90 11.6 | 6.06p90 20.4 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 282p90 282 | 180 ✓ lowerp90 181 |
Chromium · 4× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 2.80p90 4.15 | 33.2p90 40.1 | 13.2 ✓ lowerp90 18.6 |
| Script during the scroll (ms) | 1.31p90 2.90 | 24.6p90 27.6 | 5.01 ✓ lowerp90 6.93 |
| Style recalculation during the scroll (ms) | 0.50p90 0.98 | 6.34p90 9.53 | 7.73p90 10.8 |
| Layout during the scroll (ms) | 0.81p90 1.17 | 1.59p90 3.45 | 0.61 ✓ lowerp90 1.27 |
| All main-thread tasks during the scroll (ms) | 37.6p90 49.4 | 93.5p90 117 | 67.6 ✓ lowerp90 78.2 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 22.2 | 16.8p90 20.1 | 16.8p90 20.0 |
| Frames longer than 1.5 × vsync (%) | 0.59p90 1.19 | 0.59p90 0.95 | 0.59 ✓ lowerp90 0.95 |
| Longest frame (ms) | 33.3p90 33.4 | 33.3p90 33.4 | 33.3p90 33.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.13p90 1.38 | 0.97p90 1.09 | 1.03p90 1.22 |
| Tap to next frame during the scroll (ms) | 15.9p90 19.6 | 13.8p90 17.4 | 13.4p90 16.4 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 8.82p90 11.4 | 36.6p90 48.0 | 31.7p90 38.8 |
| Style and layout (trace) (ms) | 1.69p90 2.19 | 10.7p90 16.6 | 7.19p90 11.6 |
| Script, including rAF callbacks (trace) (ms) | 5.57p90 11.9 | 44.4p90 67.0 | 27.4p90 40.0 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 14.3p90 15.2 | 9.00 ✓ lowerp90 9.70 |
| Main-thread work from navigation to ready (ms) | 45.8p90 54.8 | 79.7p90 83.0 | 64.7 ✓ lowerp90 68.9 |
| First frame in the correct starting state (ms) | — | 68.1p90 71.0 | 69.4p90 71.4 |
| Runs that showed the finished state first | — | 100%p90 100% | 100%p90 100% |
| JS heap after ready (MB) | 2.54p90 2.56 | 2.72p90 2.74 | 2.18 ✓ lowerp90 2.19 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 0.66p90 0.85 | 6.30p90 7.79 | 5.25p90 7.18 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 282p90 282 | 180 ✓ lowerp90 180 |
Chromium · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 12.1p90 14.2 | 228p90 241 | 165 ✓ lowerp90 176 |
| Script during the scroll (ms) | 10.9p90 12.9 | 151p90 159 | 69.5 ✓ lowerp90 74.1 |
| Style recalculation during the scroll (ms) | 0.57p90 0.64 | 71.4 ✓ lowerp90 78.0 | 94.9p90 102 |
| Layout during the scroll (ms) | 0.68p90 0.73 | 4.66p90 4.96 | 0.65 ✓ lowerp90 0.74 |
| All main-thread tasks during the scroll (ms) | 220p90 244 | 628p90 662 | 551 ✓ lowerp90 583 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.7p90 16.8 | 16.7p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.16p90 0.16 | 0.16p90 0.16 | 0.16p90 0.16 |
| Longest frame (ms) | 50.0p90 50.1 | 50.0p90 50.1 | 50.0p90 50.1 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.10p90 1.28 | 1.10p90 1.25 | 1.07p90 1.17 |
| Tap to next frame during the scroll (ms) | 21.2p90 26.5 | 22.5p90 24.9 | 21.5p90 25.5 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 70.3p90 76.5 | 217p90 226 | 225p90 245 |
| Style and layout (trace) (ms) | 1.31p90 1.34 | 73.5 ✓ lowerp90 75.0 | 95.1p90 101 |
| Script, including rAF callbacks (trace) (ms) | 44.5p90 50.1 | 266 ✓ lowerp90 276 | 345p90 379 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 3.50p90 3.78 | 2.40p90 4.02 |
| Main-thread work from navigation to ready (ms) | 17.2p90 18.2 | 34.3p90 36.1 | 22.2 ✓ lowerp90 23.2 |
| First frame in the correct starting state (ms) | — | 23.8p90 30.6 | 27.9p90 33.5 |
| Runs that showed the finished state first | — | 0%p90 100% | 100%p90 100% |
| JS heap after ready (MB) | 2.56p90 2.57 | 2.75p90 2.78 | 2.19 ✓ lowerp90 2.23 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 0.88p90 0.97 | 31.0p90 39.9 | 33.9p90 36.9 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 283p90 283 | 180 ✓ lowerp90 181 |
Chromium · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 4.90p90 5.21 | 83.1p90 89.2 | 43.1 ✓ lowerp90 45.2 |
| Script during the scroll (ms) | 3.69p90 3.98 | 58.6p90 62.6 | 18.6 ✓ lowerp90 19.3 |
| Style recalculation during the scroll (ms) | 0.54p90 0.63 | 20.5 ✓ lowerp90 22.5 | 23.7p90 25.6 |
| Layout during the scroll (ms) | 0.65p90 0.82 | 3.62p90 4.08 | 0.63 ✓ lowerp90 0.73 |
| All main-thread tasks during the scroll (ms) | 97.3p90 107 | 222p90 232 | 175 ✓ lowerp90 184 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.7p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.59p90 0.60 | 0.60p90 0.60 | 0.60p90 0.60 |
| Longest frame (ms) | 50.0p90 50.0 | 50.0p90 50.1 | 50.0p90 50.1 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.07p90 1.20 | 0.97p90 1.22 | 1.03p90 1.31 |
| Tap to next frame during the scroll (ms) | 21.9p90 24.2 | 21.4p90 24.5 | 22.8p90 26.0 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 22.5p90 23.7 | 59.6p90 62.1 | 62.0p90 64.7 |
| Style and layout (trace) (ms) | 1.25p90 1.31 | 24.6p90 25.8 | 24.0p90 25.6 |
| Script, including rAF callbacks (trace) (ms) | 13.5p90 14.4 | 100p90 101 | 87.9 ✓ lowerp90 94.1 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 3.40p90 3.60 | 3.80p90 4.10 |
| Main-thread work from navigation to ready (ms) | 17.4p90 18.2 | 34.3p90 36.3 | 22.6 ✓ lowerp90 23.6 |
| First frame in the correct starting state (ms) | — | 24.8p90 29.1 | 26.1p90 35.6 |
| Runs that showed the finished state first | — | 0%p90 100% | 0%p90 100% |
| JS heap after ready (MB) | 2.56p90 2.57 | 2.76p90 2.77 | 2.19 ✓ lowerp90 2.23 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 1.17p90 1.31 | 31.1p90 32.8 | 34.5p90 36.1 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 193p90 193 | 181 ✓ lowerp90 181 |
Firefox · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 18.3p90 18.3 | 18.2p90 18.3 | 18.3p90 18.3 |
| Frame interval, p99 (ms) | 18.6p90 18.6 | 18.5 ✓ lowerp90 18.6 | 18.6p90 18.6 |
| Frames longer than 1.5 × vsync (%) | 0.15p90 0.15 | 0.00 ✓ lowerp90 0.00 | 0.15p90 0.15 |
| Longest frame (ms) | 38.1p90 41.6 | 18.7 ✓ lowerp90 18.7 | 39.0p90 40.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.33p90 0.67 | 0.67p90 1.00 | 0.67p90 1.00 |
| Tap to next frame during the scroll (ms) | 1.33p90 2.40 | 2.33p90 3.00 | 2.00 ✓ lowerp90 2.33 |
| Startup | |||
| Setup call (ms) | — | 8.00p90 8.00 | 4.00 ✓ lowerp90 5.00 |
| First frame in the correct starting state (ms) | — | 41.0p90 43.2 | 41.0p90 47.2 |
| Runs that showed the finished state first | — | 100%p90 100% | 100%p90 100% |
| Parked mid-page | |||
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 283p90 283 | 181 ✓ lowerp90 181 |
Firefox · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 18.3p90 18.3 | 18.2p90 18.3 | 18.3p90 18.3 |
| Frame interval, p99 (ms) | 18.6p90 18.7 | 18.5p90 18.6 | 18.6p90 18.6 |
| Frames longer than 1.5 × vsync (%) | 0.39p90 0.39 | 0.00 ✓ lowerp90 0.00 | 0.39p90 0.39 |
| Longest frame (ms) | 38.4p90 39.2 | 18.6 ✓ lowerp90 18.7 | 38.1p90 39.8 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.33p90 0.87 | 0.33p90 0.53 | 0.67p90 1.00 |
| Tap to next frame during the scroll (ms) | 1.00p90 1.67 | 2.00p90 3.00 | 1.67 ✓ lowerp90 2.00 |
| Startup | |||
| Setup call (ms) | — | 8.00p90 8.00 | 5.00 ✓ lowerp90 5.00 |
| First frame in the correct starting state (ms) | — | 38.0p90 41.6 | 39.0p90 47.0 |
| Runs that showed the finished state first | — | 100%p90 100% | 100%p90 100% |
| Parked mid-page | |||
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 226p90 226 | 181 ✓ lowerp90 181 |
WebKit · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 |
| Frame interval, p95 (ms) | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.0 |
| Frame interval, p99 (ms) | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Frames longer than 1.5 × vsync (%) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Longest frame (ms) | 20.0p90 20.0 | 19.0p90 20.0 | 20.0p90 20.6 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.33p90 1.67 | 1.00 ✓ lowerp90 1.20 | 1.33p90 1.67 |
| Tap to next frame during the scroll (ms) | 16.7p90 16.7 | 15.3 ✓ lowerp90 16.7 | 17.7p90 18.3 |
| Startup | |||
| Setup call (ms) | — | 5.00p90 5.00 | 4.00 ✓ lowerp90 4.00 |
| First frame in the correct starting state (ms) | — | 26.0p90 32.8 | 31.0p90 35.2 |
| Runs that showed the finished state first | — | 0%p90 100% | 100%p90 100% |
| Parked mid-page | |||
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 283p90 283 | 181 ✓ lowerp90 181 |
WebKit · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 |
| Frame interval, p95 (ms) | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.6 |
| Frame interval, p99 (ms) | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Frames longer than 1.5 × vsync (%) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Longest frame (ms) | 19.0p90 19.0 | 19.0p90 20.0 | 19.0p90 19.6 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.33p90 1.67 | 1.00p90 1.33 | 1.33p90 1.53 |
| Tap to next frame during the scroll (ms) | 16.7p90 17.5 | 15.3 ✓ lowerp90 15.9 | 17.7p90 18.0 |
| Startup | |||
| Setup call (ms) | — | 5.00p90 5.60 | 4.00 ✓ lowerp90 4.00 |
| First frame in the correct starting state (ms) | — | 22.0 ✓ lowerp90 29.0 | 34.0p90 43.4 |
| Runs that showed the finished state first | — | 0%p90 60% | 100%p90 100% |
| Parked mid-page | |||
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 227p90 228 | 181 ✓ lowerp90 181 |
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.
The code each page runs
GSAP 3.15.0
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
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
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 4.15p90 6.64 | 34.0 ✓ lowerp90 76.4 | 65.0p90 108 |
| Script during the scroll (ms) | 2.45p90 4.25 | 22.9p90 48.3 | 31.8p90 52.6 |
| Style recalculation during the scroll (ms) | 0.74p90 1.11 | 10.5 ✓ lowerp90 25.2 | 30.7p90 54.6 |
| Layout during the scroll (ms) | 0.88p90 1.57 | 0.61p90 1.28 | 0.70p90 1.52 |
| All main-thread tasks during the scroll (ms) | 62.5p90 85.2 | 182p90 361 | 234p90 368 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.7p90 16.8 | 16.7p90 16.8 | 16.7p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.19p90 0.38 | 0.19p90 0.38 | 0.19p90 0.38 |
| Longest frame (ms) | 33.4p90 33.4 | 33.3p90 33.5 | 33.4p90 33.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.13p90 1.29 | 1.17p90 1.33 | 1.03p90 1.23 |
| Tap to next frame during the scroll (ms) | 17.4p90 20.4 | 18.2p90 19.4 | 18.4p90 20.6 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 59.0p90 63.9 | 166p90 244 | 201p90 235 |
| Style and layout (trace) (ms) | 1.23p90 1.64 | 10.9 ✓ lowerp90 23.7 | 43.1p90 71.4 |
| Script, including rAF callbacks (trace) (ms) | 10.7p90 12.9 | 65.2 ✓ lowerp90 97.6 | 230p90 323 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 10.0p90 10.6 | 9.80p90 10.7 |
| Main-thread work from navigation to ready (ms) | 49.9p90 58.4 | 81.4p90 87.9 | 70.3 ✓ lowerp90 79.3 |
| First frame in the correct starting state (ms) | — | 65.8p90 69.4 | 65.0p90 73.8 |
| Runs that showed the finished state first | — | 100%p90 100% | 100%p90 100% |
| JS heap after ready (MB) | 2.23p90 2.27 | 2.65p90 2.66 | 2.34 ✓ lowerp90 2.41 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 0.64p90 1.06 | 6.79 ✓ lowerp90 11.5 | 11.0p90 15.9 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 192 ✓ lowerp90 192 | 540p90 540 |
Chromium · 4× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 2.34p90 3.39 | 19.6p90 35.1 | 19.6p90 33.0 |
| Script during the scroll (ms) | 1.33p90 1.96 | 14.3p90 24.4 | 10.2 ✓ lowerp90 16.4 |
| Style recalculation during the scroll (ms) | 0.16p90 1.01 | 4.60 ✓ lowerp90 10.2 | 9.45p90 16.7 |
| Layout during the scroll (ms) | 0.68p90 1.10 | 0.88p90 1.31 | 0.68p90 1.09 |
| All main-thread tasks during the scroll (ms) | 39.0p90 42.7 | 90.6p90 152 | 88.5p90 140 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.7p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.68p90 0.69 | 0.69p90 0.69 | 0.68 ✓ lowerp90 0.68 |
| Longest frame (ms) | 33.3p90 33.4 | 33.3p90 33.4 | 33.3p90 33.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.10p90 1.25 | 1.03p90 1.42 | 0.93p90 1.13 |
| Tap to next frame during the scroll (ms) | 16.5p90 18.3 | 15.1p90 22.3 | 18.4p90 20.9 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 20.8p90 21.4 | 68.7p90 93.4 | 68.9p90 77.8 |
| Style and layout (trace) (ms) | 0.57p90 1.08 | 10.3p90 14.0 | 14.6p90 16.4 |
| Script, including rAF callbacks (trace) (ms) | 5.93p90 7.54 | 43.6 ✓ lowerp90 58.0 | 71.4p90 76.1 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 9.80p90 10.3 | 9.70p90 11.0 |
| Main-thread work from navigation to ready (ms) | 50.0p90 53.5 | 81.1p90 96.8 | 70.1 ✓ lowerp90 77.0 |
| First frame in the correct starting state (ms) | — | 65.4p90 68.4 | 68.1p90 76.8 |
| Runs that showed the finished state first | — | 100%p90 100% | 100%p90 100% |
| JS heap after ready (MB) | 2.25p90 2.27 | 2.65p90 2.67 | 2.34 ✓ lowerp90 2.40 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 0.69p90 1.24 | 7.59 ✓ lowerp90 13.1 | 12.5p90 16.0 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 208 ✓ lowerp90 208 | 540p90 540 |
Chromium · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 10.5p90 12.8 | 137 ✓ lowerp90 147 | 243p90 256 |
| Script during the scroll (ms) | 9.10p90 11.4 | 83.4 ✓ lowerp90 89.8 | 113p90 120 |
| Style recalculation during the scroll (ms) | 0.60p90 0.65 | 52.5 ✓ lowerp90 56.2 | 129p90 134 |
| Layout during the scroll (ms) | 0.78p90 0.83 | 0.68p90 0.79 | 0.74p90 0.83 |
| All main-thread tasks during the scroll (ms) | 223p90 247 | 563 ✓ lowerp90 602 | 692p90 728 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.7p90 16.8 | 16.7p90 16.8 | 16.7p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.19p90 0.30 | 0.19p90 0.38 | 0.19p90 0.38 |
| Longest frame (ms) | 50.0p90 50.1 | 50.0p90 50.1 | 50.0p90 50.1 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.07p90 1.15 | 1.10p90 1.32 | 1.00p90 1.25 |
| Tap to next frame during the scroll (ms) | 22.5p90 27.3 | 23.4p90 27.9 | 23.6p90 27.1 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 131p90 135 | 311p90 340 | 284 ✓ lowerp90 298 |
| Style and layout (trace) (ms) | 1.37p90 1.41 | 45.0 ✓ lowerp90 55.9 | 111p90 127 |
| Script, including rAF callbacks (trace) (ms) | 35.0p90 37.8 | 167 ✓ lowerp90 198 | 537p90 587 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 2.50p90 2.66 | 2.60p90 4.82 |
| Main-thread work from navigation to ready (ms) | 18.4p90 19.6 | 35.0p90 38.4 | 23.9 ✓ lowerp90 25.5 |
| First frame in the correct starting state (ms) | — | 23.2p90 30.2 | 28.2p90 37.0 |
| Runs that showed the finished state first | — | 0%p90 100% | 100%p90 100% |
| JS heap after ready (MB) | 2.27p90 2.27 | 2.67p90 2.68 | 2.41 ✓ lowerp90 2.42 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 0.81p90 0.93 | 30.7 ✓ lowerp90 36.3 | 57.7p90 72.4 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 193 ✓ lowerp90 193 | 543p90 543 |
Chromium · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 4.49p90 4.84 | 63.4p90 69.5 | 66.5p90 73.1 |
| Script during the scroll (ms) | 3.13p90 3.49 | 42.5p90 46.5 | 31.8 ✓ lowerp90 34.4 |
| Style recalculation during the scroll (ms) | 0.57p90 0.61 | 20.2 ✓ lowerp90 22.2 | 34.1p90 38.1 |
| Layout during the scroll (ms) | 0.77p90 0.86 | 0.68p90 0.79 | 0.69p90 0.84 |
| All main-thread tasks during the scroll (ms) | 96.7p90 101 | 226p90 246 | 226p90 241 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.7p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 22.5 | 16.8p90 22.4 |
| Frames longer than 1.5 × vsync (%) | 0.69p90 0.69 | 0.69p90 1.11 | 0.69p90 1.11 |
| Longest frame (ms) | 50.0p90 50.0 | 50.0p90 50.1 | 50.0p90 50.1 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.07p90 1.15 | 0.97p90 1.40 | 1.00p90 1.27 |
| Tap to next frame during the scroll (ms) | 22.2p90 25.0 | 21.8p90 25.6 | 22.4p90 25.0 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 40.1p90 42.0 | 101p90 102 | 87.1 ✓ lowerp90 93.1 |
| Style and layout (trace) (ms) | 1.30p90 1.42 | 18.0 ✓ lowerp90 19.0 | 32.0p90 34.7 |
| Script, including rAF callbacks (trace) (ms) | 12.4p90 15.9 | 80.3 ✓ lowerp90 84.3 | 153p90 163 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 2.40p90 2.66 | 4.50p90 4.92 |
| Main-thread work from navigation to ready (ms) | 18.5p90 19.3 | 36.6p90 39.2 | 23.2 ✓ lowerp90 24.1 |
| First frame in the correct starting state (ms) | — | 23.6p90 32.2 | 25.8p90 33.2 |
| Runs that showed the finished state first | — | 0%p90 100% | 0%p90 100% |
| JS heap after ready (MB) | 2.27p90 2.27 | 2.67p90 2.68 | 2.41 ✓ lowerp90 2.42 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 1.06p90 1.19 | 35.7 ✓ lowerp90 43.9 | 63.8p90 73.5 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 211 ✓ lowerp90 237 | 543p90 543 |
Firefox · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 18.3p90 18.3 | 18.3p90 18.3 | 18.3p90 18.3 |
| Frame interval, p99 (ms) | 18.6p90 18.6 | 18.6p90 18.6 | 18.6p90 18.6 |
| Frames longer than 1.5 × vsync (%) | 0.17p90 0.17 | 0.00 ✓ lowerp90 0.00 | 0.17p90 0.17 |
| Longest frame (ms) | 37.4p90 39.1 | 18.7 ✓ lowerp90 18.7 | 37.8p90 38.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.67p90 0.67 | 0.67p90 0.87 | 0.67p90 1.00 |
| Tap to next frame during the scroll (ms) | 1.67p90 1.67 | 11.3p90 12.5 | 2.00 ✓ lowerp90 2.33 |
| Startup | |||
| Setup call (ms) | — | 5.00p90 6.00 | 5.00p90 9.60 |
| First frame in the correct starting state (ms) | — | 32.0p90 39.6 | 32.0p90 38.2 |
| Runs that showed the finished state first | — | 100%p90 100% | 100%p90 100% |
| Parked mid-page | |||
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 192 ✓ lowerp90 193 | 540p90 543 |
Firefox · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 18.2p90 18.3 | 18.1p90 18.2 | 18.2p90 18.3 |
| Frame interval, p99 (ms) | 18.6p90 18.7 | 18.5 ✓ lowerp90 18.6 | 18.6p90 18.6 |
| Frames longer than 1.5 × vsync (%) | 0.45p90 0.45 | 0.00 ✓ lowerp90 0.00 | 0.45p90 0.45 |
| Longest frame (ms) | 36.6p90 39.6 | 18.6 ✓ lowerp90 18.7 | 37.2p90 40.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.67p90 1.00 | 0.33p90 0.67 | 0.33p90 0.67 |
| Tap to next frame during the scroll (ms) | 1.67p90 2.53 | 11.3p90 11.7 | 2.00 ✓ lowerp90 2.20 |
| Startup | |||
| Setup call (ms) | — | 5.00p90 5.00 | 5.00p90 12.6 |
| First frame in the correct starting state (ms) | — | 34.0p90 35.6 | 37.0p90 45.2 |
| Runs that showed the finished state first | — | 100%p90 100% | 100%p90 100% |
| Parked mid-page | |||
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 255 ✓ lowerp90 256 | 543p90 543 |
WebKit · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 |
| Frame interval, p95 (ms) | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.0 |
| Frame interval, p99 (ms) | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Frames longer than 1.5 × vsync (%) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Longest frame (ms) | 20.0p90 20.0 | 20.0p90 21.0 | 20.0p90 20.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.33p90 1.67 | 1.00p90 1.33 | 1.33p90 1.67 |
| Tap to next frame during the scroll (ms) | 16.7p90 17.7 | 16.3 ✓ lowerp90 16.7 | 18.0p90 18.7 |
| Startup | |||
| Setup call (ms) | — | 4.00 ✓ lowerp90 5.00 | 8.00p90 8.00 |
| First frame in the correct starting state (ms) | — | 25.0p90 35.2 | 30.0p90 33.6 |
| Runs that showed the finished state first | — | 0%p90 100% | 100%p90 100% |
| Parked mid-page | |||
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 193 ✓ lowerp90 200 | 543p90 543 |
WebKit · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 |
| Frame interval, p95 (ms) | 18.0p90 18.0 | 18.0p90 18.6 | 18.0p90 18.0 |
| Frame interval, p99 (ms) | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Frames longer than 1.5 × vsync (%) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Longest frame (ms) | 19.0p90 20.6 | 19.0p90 20.0 | 19.0p90 19.6 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.33p90 1.67 | 1.00p90 1.33 | 1.33p90 1.33 |
| Tap to next frame during the scroll (ms) | 16.7p90 17.2 | 16.0 ✓ lowerp90 17.1 | 18.3p90 19.0 |
| Startup | |||
| Setup call (ms) | — | 5.00 ✓ lowerp90 5.00 | 8.00p90 9.00 |
| First frame in the correct starting state (ms) | — | 25.0p90 33.2 | 27.0p90 38.0 |
| Runs that showed the finished state first | — | 0%p90 100% | 0%p90 100% |
| Parked mid-page | |||
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 259 ✓ lowerp90 260 | 543p90 543 |
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.
The code each page runs
GSAP 3.15.0
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
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
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 4.00p90 5.46 | 35.0 ✓ lowerp90 62.4 | 61.0p90 67.8 |
| Script during the scroll (ms) | 2.65p90 4.30 | 23.4 ✓ lowerp90 39.9 | 29.6p90 35.9 |
| Style recalculation during the scroll (ms) | 0.43p90 0.92 | 11.5 ✓ lowerp90 22.5 | 28.8p90 34.9 |
| Layout during the scroll (ms) | 0.79p90 1.40 | 0.52p90 1.43 | 0.92p90 1.66 |
| All main-thread tasks during the scroll (ms) | 61.5p90 85.8 | 179 ✓ lowerp90 308 | 232p90 269 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.8p90 16.8 | 16.7p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.19p90 0.30 | 0.19p90 0.19 | 0.19p90 0.30 |
| Longest frame (ms) | 33.3p90 33.4 | 33.3p90 33.4 | 33.4p90 33.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.17p90 1.32 | 1.10p90 1.22 | 0.93p90 1.19 |
| Tap to next frame during the scroll (ms) | 16.9p90 19.2 | 16.2p90 19.2 | 18.1p90 19.8 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 59.7p90 73.3 | 156 ✓ lowerp90 164 | 199p90 241 |
| Style and layout (trace) (ms) | 1.38p90 1.89 | 10.2 ✓ lowerp90 14.1 | 46.4p90 60.6 |
| Script, including rAF callbacks (trace) (ms) | 10.9p90 16.7 | 51.8 ✓ lowerp90 65.3 | 231p90 276 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 21.2p90 22.0 | 10.0 ✓ lowerp90 10.2 |
| Main-thread work from navigation to ready (ms) | 50.0p90 55.9 | 97.3p90 105 | 69.8 ✓ lowerp90 76.7 |
| First frame in the correct starting state (ms) | — | 77.0p90 83.7 | 66.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.27 | 2.96p90 2.98 | 2.34 ✓ lowerp90 2.35 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 0.41p90 0.93 | 6.95 ✓ lowerp90 11.1 | 10.7p90 14.5 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 192 ✓ lowerp90 192 | 540p90 540 |
Chromium · 4× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 3.07p90 5.48 | 14.6 ✓ lowerp90 38.2 | 19.7p90 25.9 |
| Script during the scroll (ms) | 1.56p90 4.42 | 9.79p90 22.4 | 9.92p90 13.0 |
| Style recalculation during the scroll (ms) | 0.66p90 1.14 | 4.38 ✓ lowerp90 14.0 | 8.47p90 12.7 |
| Layout during the scroll (ms) | 0.89p90 1.85 | 1.05p90 1.61 | 0.73p90 1.38 |
| All main-thread tasks during the scroll (ms) | 41.9p90 55.6 | 80.8p90 155 | 89.3p90 118 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.7p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.68p90 0.69 | 0.69p90 0.69 | 0.68 ✓ lowerp90 0.68 |
| Longest frame (ms) | 33.3p90 33.4 | 33.3p90 33.4 | 33.3p90 33.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.27p90 1.53 | 1.03p90 1.27 | 1.00p90 1.25 |
| Tap to next frame during the scroll (ms) | 17.3p90 19.3 | 17.7p90 18.5 | 18.3p90 20.4 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 19.0p90 20.6 | 54.5p90 66.2 | 70.3p90 74.9 |
| Style and layout (trace) (ms) | 1.51p90 1.65 | 6.87 ✓ lowerp90 8.41 | 20.5p90 23.7 |
| Script, including rAF callbacks (trace) (ms) | 5.39p90 7.03 | 23.9 ✓ lowerp90 32.8 | 81.5p90 95.2 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 20.7p90 23.3 | 9.80 ✓ lowerp90 10.8 |
| Main-thread work from navigation to ready (ms) | 52.0p90 61.8 | 96.9p90 107 | 68.9 ✓ lowerp90 73.2 |
| First frame in the correct starting state (ms) | — | 75.8p90 83.3 | 64.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.27 | 2.94p90 2.97 | 2.34 ✓ lowerp90 2.40 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 0.40p90 1.17 | 7.45 ✓ lowerp90 15.1 | 10.2p90 24.3 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 251 ✓ lowerp90 252 | 540p90 540 |
Chromium · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 10.1p90 12.4 | 140 ✓ lowerp90 149 | 245p90 257 |
| Script during the scroll (ms) | 8.72p90 11.1 | 83.7 ✓ lowerp90 89.0 | 114p90 120 |
| Style recalculation during the scroll (ms) | 0.58p90 0.64 | 55.2 ✓ lowerp90 59.0 | 130p90 135 |
| Layout during the scroll (ms) | 0.80p90 0.86 | 0.76p90 0.90 | 0.74p90 0.79 |
| All main-thread tasks during the scroll (ms) | 220p90 245 | 573 ✓ lowerp90 584 | 711p90 733 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.19p90 0.30 | 0.19p90 0.38 | 0.19p90 0.38 |
| Longest frame (ms) | 50.0p90 50.1 | 50.0p90 50.0 | 50.0p90 50.1 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.10p90 1.25 | 1.10p90 1.29 | 1.07p90 1.29 |
| Tap to next frame during the scroll (ms) | 23.4p90 27.2 | 23.9p90 29.1 | 23.9p90 29.2 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 136p90 144 | 300p90 303 | 278p90 311 |
| Style and layout (trace) (ms) | 1.31p90 1.37 | 44.7 ✓ lowerp90 45.3 | 111p90 127 |
| Script, including rAF callbacks (trace) (ms) | 38.4p90 44.3 | 176 ✓ lowerp90 178 | 544p90 603 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 5.10p90 5.50 | 4.60 ✓ lowerp90 4.80 |
| Main-thread work from navigation to ready (ms) | 18.7p90 20.2 | 41.3p90 44.4 | 23.1 ✓ lowerp90 24.8 |
| First frame in the correct starting state (ms) | — | 23.8p90 26.2 | 24.1p90 30.8 |
| Runs that showed the finished state first | — | 0%p90 100% | 0%p90 100% |
| JS heap after ready (MB) | 2.27p90 2.27 | 2.98p90 3.00 | 2.40 ✓ lowerp90 2.42 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 0.77p90 0.85 | 35.9 ✓ lowerp90 40.6 | 61.0p90 71.3 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 193 ✓ lowerp90 193 | 540p90 543 |
Chromium · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 4.61p90 4.92 | 55.4 ✓ lowerp90 56.3 | 70.6p90 75.6 |
| Script during the scroll (ms) | 3.20p90 3.42 | 35.0p90 36.4 | 33.2p90 35.8 |
| Style recalculation during the scroll (ms) | 0.59p90 0.62 | 18.5 ✓ lowerp90 19.9 | 36.5p90 39.0 |
| Layout during the scroll (ms) | 0.80p90 0.92 | 0.76p90 0.89 | 0.68p90 0.82 |
| All main-thread tasks during the scroll (ms) | 96.4p90 101 | 213 ✓ lowerp90 218 | 239p90 247 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 22.4 |
| Frames longer than 1.5 × vsync (%) | 0.69p90 0.69 | 0.69p90 0.69 | 0.69p90 1.10 |
| Longest frame (ms) | 50.0p90 50.0 | 50.0p90 50.1 | 50.0p90 50.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.07p90 1.19 | 1.13p90 1.22 | 1.07p90 1.39 |
| Tap to next frame during the scroll (ms) | 22.2p90 25.3 | 22.2p90 25.3 | 20.6p90 23.9 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 43.2p90 45.2 | 92.5p90 96.4 | 84.8 ✓ lowerp90 87.2 |
| Style and layout (trace) (ms) | 1.27p90 1.38 | 17.4 ✓ lowerp90 19.3 | 32.3p90 33.6 |
| Script, including rAF callbacks (trace) (ms) | 12.3p90 16.3 | 66.6 ✓ lowerp90 69.0 | 150p90 158 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 5.20p90 5.66 | 4.50 ✓ lowerp90 5.00 |
| Main-thread work from navigation to ready (ms) | 18.4p90 19.3 | 40.6p90 44.0 | 23.0 ✓ lowerp90 24.0 |
| First frame in the correct starting state (ms) | — | 23.3p90 33.7 | 25.3p90 30.8 |
| Runs that showed the finished state first | — | 0%p90 100% | 0%p90 100% |
| JS heap after ready (MB) | 2.27p90 2.27 | 2.98p90 2.99 | 2.41 ✓ lowerp90 2.42 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 1.04p90 1.24 | 34.0 ✓ lowerp90 37.5 | 61.1p90 67.6 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 211 ✓ lowerp90 212 | 543p90 543 |
Firefox · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 18.3p90 18.3 | 18.2p90 18.3 | 18.3p90 18.3 |
| Frame interval, p99 (ms) | 18.6p90 18.6 | 18.5p90 18.6 | 18.6p90 18.6 |
| Frames longer than 1.5 × vsync (%) | 0.17p90 0.17 | 0.00 ✓ lowerp90 0.00 | 0.17p90 0.17 |
| Longest frame (ms) | 37.8p90 38.9 | 18.7 ✓ lowerp90 18.7 | 38.2p90 41.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.33p90 0.87 | 0.33p90 0.67 | 0.67p90 0.87 |
| Tap to next frame during the scroll (ms) | 1.67p90 1.67 | 2.33p90 2.53 | 2.00p90 2.53 |
| Startup | |||
| Setup call (ms) | — | 11.0p90 11.6 | 5.00 ✓ lowerp90 11.6 |
| First frame in the correct starting state (ms) | — | 41.0p90 45.6 | 35.0p90 51.0 |
| Runs that showed the finished state first | — | 100%p90 100% | 100%p90 100% |
| Parked mid-page | |||
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 193 ✓ lowerp90 199 | 540p90 543 |
Firefox · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 18.3p90 18.3 | 18.2p90 18.3 | 18.2p90 18.3 |
| Frame interval, p99 (ms) | 18.6p90 18.7 | 18.6p90 18.6 | 18.6p90 18.7 |
| Frames longer than 1.5 × vsync (%) | 0.45p90 0.45 | 0.00 ✓ lowerp90 0.00 | 0.45p90 0.45 |
| Longest frame (ms) | 37.6p90 43.6 | 18.6 ✓ lowerp90 18.7 | 37.5p90 40.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.67p90 1.00 | 0.67p90 0.87 | 0.33p90 0.67 |
| Tap to next frame during the scroll (ms) | 1.67p90 2.00 | 2.00p90 2.53 | 2.00p90 2.33 |
| Startup | |||
| Setup call (ms) | — | 10.0p90 11.6 | 5.00 ✓ lowerp90 12.0 |
| First frame in the correct starting state (ms) | — | 41.0p90 43.0 | 34.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 s | 0.00p90 0.00 | 193 ✓ lowerp90 193 | 543p90 543 |
WebKit · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 |
| Frame interval, p95 (ms) | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.0 |
| Frame interval, p99 (ms) | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Frames longer than 1.5 × vsync (%) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Longest frame (ms) | 19.0p90 20.0 | 19.0p90 21.0 | 20.0p90 20.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.33p90 1.67 | 1.00p90 1.33 | 1.33p90 1.67 |
| Tap to next frame during the scroll (ms) | 16.7p90 17.2 | 15.0 ✓ lowerp90 16.2 | 18.3p90 18.7 |
| Startup | |||
| Setup call (ms) | — | 18.0p90 18.0 | 8.00 ✓ lowerp90 9.00 |
| First frame in the correct starting state (ms) | — | 34.0p90 39.4 | 26.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 s | 0.00p90 0.00 | 193 ✓ lowerp90 193 | 540p90 543 |
WebKit · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 |
| Frame interval, p95 (ms) | 18.0p90 18.0 | 18.0p90 18.0 | 18.0p90 18.1 |
| Frame interval, p99 (ms) | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Frames longer than 1.5 × vsync (%) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Longest frame (ms) | 19.0p90 19.0 | 19.0p90 19.6 | 19.0p90 19.6 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.33p90 1.67 | 1.33p90 1.53 | 1.33p90 1.53 |
| Tap to next frame during the scroll (ms) | 16.7p90 17.2 | 15.3 ✓ lowerp90 16.0 | 18.0p90 19.1 |
| Startup | |||
| Setup call (ms) | — | 17.0p90 18.0 | 8.00 ✓ lowerp90 8.00 |
| First frame in the correct starting state (ms) | — | 34.0p90 39.2 | 26.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 s | 0.00p90 0.00 | 193 ✓ lowerp90 193 | 540p90 543 |
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.
The code each page runs
GSAP 3.15.0
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
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
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 4.20p90 6.84 | 47.0p90 64.8 | 25.4 ✓ lowerp90 32.0 |
| Script during the scroll (ms) | 2.39p90 5.42 | 32.1p90 46.0 | 14.6 ✓ lowerp90 18.2 |
| Style recalculation during the scroll (ms) | 0.54p90 1.03 | 8.78p90 13.3 | 9.57p90 11.8 |
| Layout during the scroll (ms) | 0.73p90 1.85 | 4.61p90 6.99 | 0.97 ✓ lowerp90 1.56 |
| All main-thread tasks during the scroll (ms) | 52.7p90 95.0 | 117p90 187 | 98.9 ✓ lowerp90 125 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.7p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.20p90 0.20 | 0.41p90 0.41 | 0.20 ✓ lowerp90 0.20 |
| Longest frame (ms) | 33.3p90 33.4 | 33.3p90 33.4 | 33.3p90 33.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.13p90 1.27 | 1.20p90 1.54 | 1.07 ✓ lowerp90 1.24 |
| Tap to next frame during the scroll (ms) | 16.9p90 20.7 | 14.0p90 17.2 | 14.9p90 18.7 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 19.2p90 30.5 | 52.5p90 55.5 | 44.9p90 62.8 |
| Style and layout (trace) (ms) | 1.21p90 2.94 | 13.3p90 14.1 | 11.6p90 17.1 |
| Script, including rAF callbacks (trace) (ms) | 12.8p90 16.5 | 67.1p90 67.1 | 41.3 ✓ lowerp90 54.5 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 17.1p90 18.5 | 16.7p90 17.8 |
| Main-thread work from navigation to ready (ms) | 46.0p90 52.9 | 170p90 183 | 74.1 ✓ lowerp90 77.6 |
| First frame in the correct starting state (ms) | — | 162p90 170 | 79.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.46 | 2.89p90 2.96 | 2.18 ✓ lowerp90 2.69 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 0.34p90 0.95 | 5.45p90 9.10 | 0.45 ✓ lowerp90 0.95 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 282p90 282 | 0.00 ✓ lowerp90 0.00 |
Chromium · 4× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 2.68p90 3.27 | 35.2p90 36.9 | 9.76 ✓ lowerp90 11.2 |
| Script during the scroll (ms) | 1.45p90 2.49 | 27.4p90 30.4 | 4.77 ✓ lowerp90 6.61 |
| Style recalculation during the scroll (ms) | 0.43p90 1.01 | 3.77p90 5.01 | 3.12p90 4.37 |
| Layout during the scroll (ms) | 0.67p90 1.27 | 4.00p90 4.92 | 0.89 ✓ lowerp90 1.53 |
| All main-thread tasks during the scroll (ms) | 35.3p90 45.4 | 74.3p90 80.9 | 47.1 ✓ lowerp90 53.2 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.7p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 27.7p90 27.7 | 16.8 ✓ lowerp90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.73p90 0.73 | 1.48p90 1.48 | 0.73 ✓ lowerp90 0.73 |
| Longest frame (ms) | 33.4p90 33.4 | 33.3p90 33.4 | 33.3p90 33.4 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.13p90 1.33 | 0.90p90 1.15 | 1.07p90 1.23 |
| Tap to next frame during the scroll (ms) | 13.6p90 15.7 | 13.0p90 14.5 | 12.8p90 19.6 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 8.69p90 11.3 | 19.1p90 21.8 | 18.2p90 25.6 |
| Style and layout (trace) (ms) | 0.93p90 1.50 | 10.4p90 11.2 | 4.10 ✓ lowerp90 7.56 |
| Script, including rAF callbacks (trace) (ms) | 5.32p90 6.00 | 42.4p90 45.4 | 18.0 ✓ lowerp90 21.0 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 17.2p90 18.5 | 16.2 ✓ lowerp90 16.9 |
| Main-thread work from navigation to ready (ms) | 45.2p90 49.7 | 169p90 183 | 75.3 ✓ lowerp90 77.8 |
| First frame in the correct starting state (ms) | — | 162p90 172 | 82.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.48 | 2.89p90 2.97 | 2.18 ✓ lowerp90 2.71 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 0.53p90 0.83 | 5.34p90 7.74 | 0.46 ✓ lowerp90 1.44 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 192p90 192 | 0.00 ✓ lowerp90 0.00 |
Chromium · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 10.1p90 10.5 | 91.3 ✓ lowerp90 94.3 | 100p90 107 |
| Script during the scroll (ms) | 8.83p90 9.52 | 61.9p90 65.4 | 64.7p90 69.6 |
| Style recalculation during the scroll (ms) | 0.54p90 0.64 | 24.8 ✓ lowerp90 25.6 | 35.2p90 37.3 |
| Layout during the scroll (ms) | 0.66p90 0.72 | 3.87p90 3.99 | 0.98 ✓ lowerp90 1.08 |
| All main-thread tasks during the scroll (ms) | 184p90 191 | 316 ✓ lowerp90 327 | 351p90 369 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.7p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.20p90 0.20 | 0.41p90 0.53 | 0.20 ✓ lowerp90 0.20 |
| Longest frame (ms) | 50.0p90 50.1 | 50.0p90 50.1 | 50.0p90 50.1 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.97p90 1.14 | 0.93p90 1.13 | 1.00p90 1.22 |
| Tap to next frame during the scroll (ms) | 20.1p90 23.0 | 21.4p90 22.1 | 21.8p90 23.7 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 59.1p90 67.2 | 104p90 117 | 103p90 107 |
| Style and layout (trace) (ms) | 1.29p90 1.30 | 28.5p90 29.8 | 33.2p90 35.3 |
| Script, including rAF callbacks (trace) (ms) | 34.7p90 44.2 | 129p90 143 | 126p90 131 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 4.10p90 4.42 | 4.70p90 5.80 |
| Main-thread work from navigation to ready (ms) | 16.8p90 18.1 | 45.4p90 51.2 | 24.6 ✓ lowerp90 26.0 |
| First frame in the correct starting state (ms) | — | 35.5 ✓ lowerp90 42.0 | 46.9p90 54.9 |
| Runs that showed the finished state first | — | 100%p90 100% | 100%p90 100% |
| JS heap after ready (MB) | 2.46p90 2.47 | 2.80p90 2.83 | 2.17 ✓ lowerp90 2.18 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 0.84p90 0.95 | 33.9p90 37.0 | 0.90 ✓ lowerp90 1.02 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 283p90 283 | 0.00 ✓ lowerp90 0.00 |
Chromium · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Main-thread script + style + layout during the scroll (ms) | 4.41p90 4.79 | 40.1p90 44.7 | 28.9 ✓ lowerp90 30.4 |
| Script during the scroll (ms) | 3.19p90 3.67 | 28.6p90 33.0 | 17.8 ✓ lowerp90 18.7 |
| Style recalculation during the scroll (ms) | 0.54p90 0.60 | 7.26 ✓ lowerp90 7.72 | 10.4p90 11.1 |
| Layout during the scroll (ms) | 0.67p90 0.73 | 3.81p90 4.53 | 0.94 ✓ lowerp90 1.06 |
| All main-thread tasks during the scroll (ms) | 85.9p90 93.6 | 135p90 145 | 128p90 134 |
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 16.7p90 16.8 | 16.8p90 16.8 | 16.8p90 16.8 |
| Frame interval, p99 (ms) | 16.8p90 16.8 | 27.9p90 27.9 | 16.8 ✓ lowerp90 16.8 |
| Frames longer than 1.5 × vsync (%) | 0.73p90 0.74 | 1.49p90 1.49 | 0.73 ✓ lowerp90 0.74 |
| Longest frame (ms) | 50.0p90 50.1 | 50.0p90 50.0 | 50.0p90 50.1 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.07p90 1.12 | 1.00p90 1.10 | 0.93p90 1.09 |
| Tap to next frame during the scroll (ms) | 21.2p90 23.3 | 21.0p90 23.8 | 20.3p90 23.3 |
| From a trace of the scroll | |||
| Paint, pre-paint, layerize and commit (trace) (ms) | 18.3p90 19.2 | 29.7p90 31.8 | 30.2p90 32.0 |
| Style and layout (trace) (ms) | 1.25p90 1.36 | 11.1p90 11.8 | 10.5p90 11.3 |
| Script, including rAF callbacks (trace) (ms) | 11.4p90 12.9 | 52.3p90 52.9 | 36.7 ✓ lowerp90 40.9 |
| Dropped frames (trace) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Startup | |||
| Setup call (ms) | — | 4.20p90 5.14 | 4.20p90 5.66 |
| Main-thread work from navigation to ready (ms) | 17.0p90 18.5 | 44.5p90 51.9 | 25.3 ✓ lowerp90 25.8 |
| First frame in the correct starting state (ms) | — | 32.3 ✓ lowerp90 47.6 | 45.0p90 56.9 |
| Runs that showed the finished state first | — | 100%p90 100% | 100%p90 100% |
| JS heap after ready (MB) | 2.46p90 2.47 | 2.70p90 2.83 | 2.16 ✓ lowerp90 2.18 |
| Parked mid-page | |||
| Main-thread work while parked 3 s (ms) | 1.17p90 1.28 | 31.6p90 37.2 | 1.14 ✓ lowerp90 1.33 |
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 282p90 283 | 0.00 ✓ lowerp90 0.00 |
Firefox · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 18.2p90 18.3 | 18.2p90 18.3 | 18.2p90 18.3 |
| Frame interval, p99 (ms) | 18.6p90 18.6 | 18.5 ✓ lowerp90 18.6 | 18.6p90 18.6 |
| Frames longer than 1.5 × vsync (%) | 0.19p90 0.19 | 0.00 ✓ lowerp90 0.00 | 0.19p90 0.19 |
| Longest frame (ms) | 37.9p90 38.5 | 18.7 ✓ lowerp90 18.7 | 38.7p90 40.5 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.67p90 0.87 | 0.33p90 0.67 | 0.33p90 0.87 |
| Tap to next frame during the scroll (ms) | 1.67p90 2.00 | 1.67p90 1.87 | 1.67p90 2.00 |
| Startup | |||
| Setup call (ms) | — | 8.00p90 9.00 | 7.00p90 8.00 |
| First frame in the correct starting state (ms) | — | 56.0p90 61.4 | 45.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 s | 0.00p90 0.00 | 281p90 283 | 0.00 ✓ lowerp90 0.00 |
Firefox · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 16.7p90 16.7 | 16.7p90 16.7 | 16.7p90 16.7 |
| Frame interval, p95 (ms) | 18.2p90 18.3 | 18.2p90 18.4 | 18.3p90 18.3 |
| Frame interval, p99 (ms) | 18.6p90 18.6 | 18.5p90 18.6 | 18.6p90 18.6 |
| Frames longer than 1.5 × vsync (%) | 0.48p90 0.48 | 0.00 ✓ lowerp90 0.00 | 0.48p90 0.48 |
| Longest frame (ms) | 37.8p90 39.8 | 18.6 ✓ lowerp90 18.7 | 38.0p90 39.7 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 0.33p90 1.00 | 0.67p90 0.67 | 0.33p90 0.53 |
| Tap to next frame during the scroll (ms) | 1.00p90 1.53 | 1.33p90 2.00 | 1.33p90 1.67 |
| Startup | |||
| Setup call (ms) | — | 8.00p90 9.00 | 7.00 ✓ lowerp90 8.00 |
| First frame in the correct starting state (ms) | — | 57.0p90 59.0 | 40.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 s | 0.00p90 0.00 | 283p90 283 | 0.00 ✓ lowerp90 0.00 |
WebKit · 1× CPU · 800 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 |
| Frame interval, p95 (ms) | 18.0p90 18.0 | 18.0p90 19.0 | 18.0p90 18.0 |
| Frame interval, p99 (ms) | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Frames longer than 1.5 × vsync (%) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Longest frame (ms) | 20.0p90 22.6 | 23.0p90 25.0 | 21.0 ✓ lowerp90 22.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.33p90 1.67 | 1.00p90 1.33 | 1.33p90 1.53 |
| Tap to next frame during the scroll (ms) | 16.0p90 16.7 | 15.3 ✓ lowerp90 16.2 | 16.3p90 17.0 |
| Startup | |||
| Setup call (ms) | — | 5.00p90 5.00 | 5.00p90 6.00 |
| First frame in the correct starting state (ms) | — | 36.0p90 43.2 | 26.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 s | 0.00p90 0.00 | 282p90 283 | 0.00 ✓ lowerp90 0.00 |
WebKit · 1× CPU · 3000 px/s
| Metric | No library | GSAP 3.15.0 | svg-scroll-draw 2.27.3JS engine |
|---|---|---|---|
| During the scroll | |||
| Frame interval, median (ms) | 17.0p90 17.0 | 17.0p90 17.0 | 17.0p90 17.0 |
| Frame interval, p95 (ms) | 18.0p90 18.0 | 18.0p90 19.0 | 18.0p90 18.0 |
| Frame interval, p99 (ms) | 19.0p90 19.0 | 19.0p90 19.0 | 19.0p90 19.0 |
| Frames longer than 1.5 × vsync (%) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Longest frame (ms) | 19.0p90 19.0 | 23.0p90 23.6 | 19.0 ✓ lowerp90 21.0 |
| Long tasks (> 50 ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-task blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Long-animation-frame blocking time (ms) | 0.00p90 0.00 | 0.00p90 0.00 | 0.00p90 0.00 |
| Tap input delay during the scroll (ms) | 1.67p90 1.67 | 1.67p90 1.67 | 1.33p90 1.53 |
| Tap to next frame during the scroll (ms) | 16.0p90 16.3 | 15.0 ✓ lowerp90 15.7 | 16.0p90 17.0 |
| Startup | |||
| Setup call (ms) | — | 5.00p90 6.00 | 5.00p90 6.00 |
| First frame in the correct starting state (ms) | — | 34.0p90 43.2 | 28.0p90 43.2 |
| Runs that showed the finished state first | — | 100%p90 100% | 0%p90 100% |
| Parked mid-page | |||
| requestAnimationFrame calls while parked 3 s | 0.00p90 0.00 | 283p90 283 | 0.00 ✓ lowerp90 0.00 |
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).
| Scenario | Browser | Against GSAP | Rule | Worst | Engine taken |
|---|---|---|---|---|---|
| A · one path | Chromium | svg-scroll-draw 2.27.3 | drawn share within 1% | 0.00 | native CSS |
| A · one path | Chromium | svg-scroll-draw, JS engine | drawn share within 1% | 0.00 | JS engine |
| B1 · 40 SVGs | Chromium | svg-scroll-draw 2.27.3 | drawn share within 1% | 0.25 | native CSS |
| B1 · 40 SVGs | Chromium | svg-scroll-draw, JS engine | drawn share within 1% | 0.25 | JS engine |
| B2 · stagger | Chromium | svg-scroll-draw 2.27.3 | drawn share within 1% | 0.25 | JS engine |
| C1 · reveal, idiomatic | Chromium | svg-scroll-draw 2.27.3 | start hidden, end shown | pass | JS engine |
| C2 · reveal, matched | Chromium | svg-scroll-draw 2.27.3 | opacity within 0.01, translateY within 0.32px | 0.20 | JS engine |
| D · pin + draw | Chromium | svg-scroll-draw 2.27.3 | drawn share within 1% | 0.25 | JS engine |
| A · one path | Firefox | svg-scroll-draw 2.27.3 | drawn share within 1% | 0.00 | native CSS |
| A · one path | Firefox | svg-scroll-draw, JS engine | drawn share within 1% | 0.00 | JS engine |
| B1 · 40 SVGs | Firefox | svg-scroll-draw 2.27.3 | drawn share within 1% | 0.25 | native CSS |
| B1 · 40 SVGs | Firefox | svg-scroll-draw, JS engine | drawn share within 1% | 0.25 | JS engine |
| B2 · stagger | Firefox | svg-scroll-draw 2.27.3 | drawn share within 1% | 0.25 | JS engine |
| C1 · reveal, idiomatic | Firefox | svg-scroll-draw 2.27.3 | start hidden, end shown | pass | JS engine |
| C2 · reveal, matched | Firefox | svg-scroll-draw 2.27.3 | opacity within 0.01, translateY within 0.32px | 0.25 | JS engine |
| D · pin + draw | Firefox | svg-scroll-draw 2.27.3 | drawn share within 1% | 0.25 | JS engine |
| A · one path | WebKit | svg-scroll-draw 2.27.3 | drawn share within 1% | 0.00 | native CSS |
| A · one path | WebKit | svg-scroll-draw, JS engine | drawn share within 1% | 0.00 | JS engine |
| B1 · 40 SVGs | WebKit | svg-scroll-draw 2.27.3 | drawn share within 1% | 0.50 | native CSS |
| B1 · 40 SVGs | WebKit | svg-scroll-draw, JS engine | drawn share within 1% | 0.50 | JS engine |
| B2 · stagger | WebKit | svg-scroll-draw 2.27.3 | drawn share within 1% | 0.25 | JS engine |
| C1 · reveal, idiomatic | WebKit | svg-scroll-draw 2.27.3 | start hidden, end shown | pass | JS engine |
| C2 · reveal, matched | WebKit | svg-scroll-draw 2.27.3 | opacity within 0.01, translateY within 0.32px | 0.20 | JS engine |
| D · pin + draw | WebKit | svg-scroll-draw 2.27.3 | drawn share within 1% | 0.25 | JS engine |
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.
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.
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.
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.
Run it yourself.
Clone, install, run
Terminal
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 onlyResults go to apps/demo/src/data/bench-gsap.json, which this page renders. Pull requests with results from other machines are welcome.
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.