From d759c548aab33a7a6f5171cbeab40a59e91d90aa Mon Sep 17 00:00:00 2001 From: Luke Parker <10430890+Hona@users.noreply.github.com> Date: Sat, 14 Nov 2026 05:53:15 -0600 Subject: [PATCH] perf(app): measure main-thread work to scroll history (#63923) --- packages/app/perf/timeline.bench.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/app/perf/timeline.bench.ts b/packages/app/perf/timeline.bench.ts index 4ed253c415c..ee71ef6ca2f 100644 --- a/packages/app/perf/timeline.bench.ts +++ b/packages/app/perf/timeline.bench.ts @@ -65,7 +65,9 @@ export default bench({ cases: { "scroll history": { - primary: "main.busy", + // Work to scroll the same distance in both directions; keep busy share for lit-display runs. + primary: "main.work", + metrics: ["main.busy"], async run({ page, phase }) { await phase("up", () => page.scroll(timeline, { by: -4000, speed: 3000 })) await phase("down", () => page.scroll(timeline, { by: 4000, speed: 3000 }))