$ node scripts/metrics/web/client-metrics.ts ab --skip-build --renders --unminified --rounds 1 --switch-rounds 3 --cases switches --slot-diff MarkdownFileLink,WorkspaceEntryIcon --out-dir /recording ⊘ cache disabled round 1/1: A seeding threads through the CLI... round 1/3 short: paint 128 ms, LoAF 94 ms, 1231 renders round 1/3 long: paint 160 ms, LoAF 116 ms, 2282 renders round 1/3 working: paint 136 ms, LoAF 94 ms, 2706 renders round 1/3 approval: paint 96 ms, LoAF 59 ms, 1276 renders round 1/3 medium: paint 144 ms, LoAF 97 ms, 1789 renders round 1/3 diff: paint 128 ms, LoAF 140 ms, 2381 renders round 1/3 pull-request: paint 176 ms, LoAF 228 ms, 4201 renders round 1/3 browser: paint 120 ms, LoAF 84 ms, 1642 renders round 1/3 device: paint 120 ms, LoAF 86 ms, 1687 renders round 2/3 short: paint 112 ms, LoAF 130 ms, 1157 renders round 2/3 long: paint 160 ms, LoAF 111 ms, 1811 renders round 2/3 working: paint 120 ms, LoAF 144 ms, 2860 renders round 2/3 approval: paint 112 ms, LoAF 74 ms, 1471 renders round 2/3 medium: paint 120 ms, LoAF 78 ms, 1653 renders round 2/3 diff: paint 176 ms, LoAF 208 ms, 2769 renders round 2/3 pull-request: paint 168 ms, LoAF 179 ms, 3451 renders round 2/3 browser: paint 144 ms, LoAF 151 ms, 1643 renders round 2/3 device: paint 96 ms, LoAF 64 ms, 1493 renders round 3/3 short: paint 104 ms, LoAF 59 ms, 1158 renders round 3/3 long: paint 128 ms, LoAF 78 ms, 1817 renders round 3/3 working: paint 144 ms, LoAF 157 ms, 2801 renders round 3/3 approval: paint 104 ms, LoAF 62 ms, 1168 renders round 3/3 medium: paint 120 ms, LoAF 89 ms, 1666 renders round 3/3 diff: paint 144 ms, LoAF 158 ms, 2951 renders round 3/3 pull-request: paint 192 ms, LoAF 206 ms, 3429 renders round 3/3 browser: paint 120 ms, LoAF 82 ms, 1671 renders round 3/3 device: paint 112 ms, LoAF 73 ms, 1561 renders round 1/1: B seeding threads through the CLI... round 1/3 short: paint 128 ms, LoAF 92 ms, 1214 renders round 1/3 long: paint 152 ms, LoAF 172 ms, 2167 renders round 1/3 working: paint 120 ms, LoAF 91 ms, 3144 renders round 1/3 approval: paint 80 ms, LoAF 0 ms, 1277 renders round 1/3 medium: paint 176 ms, LoAF 205 ms, 1731 renders round 1/3 diff: paint 128 ms, LoAF 96 ms, 2381 renders round 1/3 pull-request: paint 208 ms, LoAF 238 ms, 4201 renders round 1/3 browser: paint 96 ms, LoAF 67 ms, 1577 renders round 1/3 device: paint 128 ms, LoAF 102 ms, 1702 renders round 2/3 short: paint 80 ms, LoAF 59 ms, 1158 renders round 2/3 long: paint 112 ms, LoAF 77 ms, 1792 renders round 2/3 working: paint 104 ms, LoAF 76 ms, 2861 renders round 2/3 approval: paint 104 ms, LoAF 72 ms, 1488 renders round 2/3 medium: paint 96 ms, LoAF 68 ms, 1636 renders round 2/3 diff: paint 120 ms, LoAF 145 ms, 2634 renders round 2/3 pull-request: paint 176 ms, LoAF 131 ms, 3180 renders round 2/3 browser: paint 104 ms, LoAF 80 ms, 1605 renders round 2/3 device: paint 88 ms, LoAF 62 ms, 1700 renders round 3/3 short: paint 72 ms, LoAF 0 ms, 1158 renders round 3/3 long: paint 120 ms, LoAF 85 ms, 1792 renders round 3/3 working: paint 112 ms, LoAF 81 ms, 2917 renders round 3/3 approval: paint 72 ms, LoAF 51 ms, 1200 renders round 3/3 medium: paint 104 ms, LoAF 77 ms, 1636 renders round 3/3 diff: paint 112 ms, LoAF 81 ms, 2634 renders round 3/3 pull-request: paint 152 ms, LoAF 189 ms, 3487 renders round 3/3 browser: paint 96 ms, LoAF 67 ms, 1660 renders round 3/3 device: paint 104 ms, LoAF 78 ms, 1546 renders ### Client metrics (lower is better) before `a86306b39d9c` (1 runs), after `ce386f44bdc9` (1 runs) | metric | before | after | change | 95% interval | | | :-- | --: | --: | --: | --: | :-- | | idle.on an idle thread.taskPct | 1 | 0.6 | -40% | | | | idle.on the working thread.taskPct | 8 | 6.5 | -19% | | better, one run, not gated | | memory.after every round.domNodes | 3366 | 3366 | 0% | | | | memory.after every round.heapMB | 96.4 | 96.3 | 0% | | | | memory.after first visits.domNodes | 3397 | 3397 | 0% | | | | memory.after first visits.heapMB | 92 | 91.8 | 0% | | | | memory.loaded.domNodes | 2125 | 2125 | 0% | | | | memory.loaded.heapMB | 79.7 | 79.7 | 0% | | | | panel.browser.domNodes | 51 | 51 | 0% | | | | panel.device.domNodes | 81 | 81 | 0% | | | | panel.diff.domNodes | 588 | 588 | 0% | | | | panel.pull-request.domNodes | 1077 | 1077 | 0% | | | | switch.approval.first.commits | 33 | 34 | +3% | | | | switch.approval.first.contentMs | 53 | 44 | -17% | | better, one run, not gated | | switch.approval.first.firstFrameMissPct | 0 | 0 | 0% | | | | switch.approval.first.loafMs | 59 | 0 | -100% | | better, one run, not gated | | switch.approval.first.paintMs | 96 | 80 | -17% | | better, one run, not gated | | switch.approval.first.renders | 1276 | 1277 | +0% | | | | switch.approval.revisit.commits | 33 | 35 | +6% | | | | switch.approval.revisit.contentMs | 57.5 | 50.5 | -12% | | | | switch.approval.revisit.firstFrameMissPct | 0 | 0 | 0% | | | | switch.approval.revisit.loafMs | 68 | 61.5 | -10% | | | | switch.approval.revisit.paintMs | 108 | 88 | -19% | | better, one run, not gated | | switch.approval.revisit.renders | 1319.5 | 1344 | +2% | | | | switch.browser.first.commits | 42 | 39 | -7% | | | | switch.browser.first.contentMs | 74 | 58 | -22% | | better, one run, not gated | | switch.browser.first.firstFrameMissPct | 0 | 0 | 0% | | | | switch.browser.first.loafMs | 84 | 67 | -20% | | better, one run, not gated | | switch.browser.first.paintMs | 120 | 96 | -20% | | better, one run, not gated | | switch.browser.first.renders | 1642 | 1577 | -4% | | | | switch.browser.revisit.commits | 42 | 40 | -5% | | | | switch.browser.revisit.contentMs | 78.5 | 62 | -21% | | better, one run, not gated | | switch.browser.revisit.firstFrameMissPct | 0 | 0 | 0% | | | | switch.browser.revisit.loafMs | 116.5 | 73.5 | -37% | | better, one run, not gated | | switch.browser.revisit.paintMs | 132 | 100 | -24% | | better, one run, not gated | | switch.browser.revisit.renders | 1657 | 1632.5 | -1% | | | | switch.device.first.commits | 37 | 36 | -3% | | | | switch.device.first.contentMs | 72 | 95 | +32% | | worse, one run, not gated | | switch.device.first.firstFrameMissPct | 0 | 0 | 0% | | | | switch.device.first.loafMs | 86 | 102 | +19% | | worse, one run, not gated | | switch.device.first.paintMs | 120 | 128 | +7% | | | | switch.device.first.renders | 1687 | 1702 | +1% | | | | switch.device.revisit.commits | 37 | 34.5 | -7% | | | | switch.device.revisit.contentMs | 62.5 | 61 | -2% | | | | switch.device.revisit.firstFrameMissPct | 0 | 0 | 0% | | | | switch.device.revisit.loafMs | 68.5 | 70 | +2% | | | | switch.device.revisit.paintMs | 104 | 96 | -8% | | | | switch.device.revisit.renders | 1527 | 1623 | +6% | | | | switch.diff.first.commits | 46 | 46 | 0% | | | | switch.diff.first.contentMs | 78 | 87 | +12% | | worse, one run, not gated | | switch.diff.first.firstFrameMissPct | 0 | 0 | 0% | | | | switch.diff.first.loafMs | 140 | 96 | -31% | | better, one run, not gated | | switch.diff.first.paintMs | 128 | 128 | 0% | | | | switch.diff.first.renders | 2381 | 2381 | 0% | | | | switch.diff.revisit.commits | 50 | 48.5 | -3% | | | | switch.diff.revisit.contentMs | 104 | 77 | -26% | | better, one run, not gated | | switch.diff.revisit.firstFrameMissPct | 0 | 0 | 0% | | | | switch.diff.revisit.loafMs | 183 | 113 | -38% | | better, one run, not gated | | switch.diff.revisit.paintMs | 160 | 116 | -28% | | better, one run, not gated | | switch.diff.revisit.renders | 2860 | 2634 | -8% | | | | switch.long.first.commits | 43 | 42 | -2% | | | | switch.long.first.contentMs | 104 | 100 | -4% | | | | switch.long.first.firstFrameMissPct | 0 | 0 | 0% | | | | switch.long.first.loafMs | 116 | 172 | +48% | | worse, one run, not gated | | switch.long.first.paintMs | 160 | 152 | -5% | | | | switch.long.first.renders | 2282 | 2167 | -5% | | | | switch.long.revisit.commits | 41.5 | 38 | -8% | | | | switch.long.revisit.contentMs | 87.5 | 75.5 | -14% | | better, one run, not gated | | switch.long.revisit.firstFrameMissPct | 0 | 0 | 0% | | | | switch.long.revisit.loafMs | 94.5 | 81 | -14% | | better, one run, not gated | | switch.long.revisit.paintMs | 144 | 116 | -19% | | better, one run, not gated | | switch.long.revisit.renders | 1814 | 1792 | -1% | | | | switch.medium.first.commits | 38 | 36 | -5% | | | | switch.medium.first.contentMs | 89 | 131 | +47% | | worse, one run, not gated | | switch.medium.first.firstFrameMissPct | 0 | 0 | 0% | | | | switch.medium.first.loafMs | 97 | 205 | +111% | | worse, one run, not gated | | switch.medium.first.paintMs | 144 | 176 | +22% | | worse, one run, not gated | | switch.medium.first.renders | 1789 | 1731 | -3% | | | | switch.medium.revisit.commits | 36.5 | 34 | -7% | | | | switch.medium.revisit.contentMs | 76.5 | 64 | -16% | | better, one run, not gated | | switch.medium.revisit.firstFrameMissPct | 0 | 0 | 0% | | | | switch.medium.revisit.loafMs | 83.5 | 72.5 | -13% | | better, one run, not gated | | switch.medium.revisit.paintMs | 120 | 100 | -17% | | better, one run, not gated | | switch.medium.revisit.renders | 1659.5 | 1636 | -1% | | | | switch.pull-request.first.commits | 54 | 51 | -6% | | | | switch.pull-request.first.contentMs | 118 | 150 | +27% | | worse, one run, not gated | | switch.pull-request.first.firstFrameMissPct | 0 | 0 | 0% | | | | switch.pull-request.first.loafMs | 228 | 238 | +4% | | | | switch.pull-request.first.paintMs | 176 | 208 | +18% | | worse, one run, not gated | | switch.pull-request.first.renders | 4201 | 4201 | 0% | | | | switch.pull-request.revisit.commits | 51.5 | 44.5 | -14% | | better, one run, not gated | | switch.pull-request.revisit.contentMs | 121 | 116.5 | -4% | | | | switch.pull-request.revisit.firstFrameMissPct | 0 | 0 | 0% | | | | switch.pull-request.revisit.loafMs | 192.5 | 160 | -17% | | better, one run, not gated | | switch.pull-request.revisit.paintMs | 180 | 164 | -9% | | | | switch.pull-request.revisit.renders | 3440 | 3333.5 | -3% | | | | switch.short.first.commits | 31 | 30 | -3% | | | | switch.short.first.contentMs | 90 | 88 | -2% | | | | switch.short.first.firstFrameMissPct | 0 | 0 | 0% | | | | switch.short.first.loafMs | 94 | 92 | -2% | | | | switch.short.first.paintMs | 128 | 128 | 0% | | | | switch.short.first.renders | 1231 | 1214 | -1% | | | | switch.short.revisit.commits | 31.5 | 32 | +2% | | | | switch.short.revisit.contentMs | 59.5 | 48 | -19% | | better, one run, not gated | | switch.short.revisit.firstFrameMissPct | 0 | 0 | 0% | | | | switch.short.revisit.loafMs | 94.5 | 29.5 | -69% | | better, one run, not gated | | switch.short.revisit.paintMs | 108 | 76 | -30% | | better, one run, not gated | | switch.short.revisit.renders | 1157.5 | 1158 | +0% | | | | switch.working.first.commits | 55 | 58 | +5% | | | | switch.working.first.contentMs | 86 | 83 | -3% | | | | switch.working.first.firstFrameMissPct | 0 | 0 | 0% | | | | switch.working.first.loafMs | 94 | 91 | -3% | | | | switch.working.first.paintMs | 136 | 120 | -12% | | better, one run, not gated | | switch.working.first.renders | 2706 | 3144 | +16% | | worse, one run, not gated | | switch.working.revisit.commits | 50.5 | 53.5 | +6% | | | | switch.working.revisit.contentMs | 84 | 72 | -14% | | better, one run, not gated | | switch.working.revisit.firstFrameMissPct | 0 | 0 | 0% | | | | switch.working.revisit.loafMs | 150.5 | 78.5 | -48% | | better, one run, not gated | | switch.working.revisit.paintMs | 132 | 108 | -18% | | better, one run, not gated | | switch.working.revisit.renders | 2830.5 | 2889 | +2% | | | Moved, but not gated (too noisy, or one run a side): idle.on the working thread.taskPct, switch.approval.first.contentMs, switch.approval.first.loafMs, switch.approval.first.paintMs, switch.approval.revisit.paintMs, switch.browser.first.contentMs, switch.browser.first.loafMs, switch.browser.first.paintMs, switch.browser.revisit.contentMs, switch.browser.revisit.loafMs, switch.browser.revisit.paintMs, switch.device.first.contentMs, switch.device.first.loafMs, switch.diff.first.contentMs, switch.diff.first.loafMs, switch.diff.revisit.contentMs, switch.diff.revisit.loafMs, switch.diff.revisit.paintMs, switch.long.first.loafMs, switch.long.revisit.contentMs, switch.long.revisit.loafMs, switch.long.revisit.paintMs, switch.medium.first.contentMs, switch.medium.first.loafMs, switch.medium.first.paintMs, switch.medium.revisit.contentMs, switch.medium.revisit.loafMs, switch.medium.revisit.paintMs, switch.pull-request.first.contentMs, switch.pull-request.first.paintMs, switch.pull-request.revisit.commits, switch.pull-request.revisit.loafMs, switch.short.revisit.contentMs, switch.short.revisit.loafMs, switch.short.revisit.paintMs, switch.working.first.paintMs, switch.working.first.renders, switch.working.revisit.contentMs, switch.working.revisit.loafMs, switch.working.revisit.paintMs