mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 05:01:03 +03:00
perf(app): measure main-thread work to scroll history (#63923)
This commit is contained in:
committed by
GitHub
Unverified
parent
c9957fd508
commit
d759c548aa
@@ -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 }))
|
||||
|
||||
Reference in New Issue
Block a user