Skip to content

Commit d759c54

Browse files
authored
perf(app): measure main-thread work to scroll history (#63923)
1 parent c9957fd commit d759c54

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/app/perf/timeline.bench.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ export default bench({
6565

6666
cases: {
6767
"scroll history": {
68-
primary: "main.busy",
68+
// Work to scroll the same distance in both directions; keep busy share for lit-display runs.
69+
primary: "main.work",
70+
metrics: ["main.busy"],
6971
async run({ page, phase }) {
7072
await phase("up", () => page.scroll(timeline, { by: -4000, speed: 3000 }))
7173
await phase("down", () => page.scroll(timeline, { by: 4000, speed: 3000 }))

0 commit comments

Comments
 (0)