mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Two live probes that run the built GUI against a real relay (port-forward + Host rewrite) and walk real scrollback in a real channel: - upscroll-1px-live.perf.ts: settled steps (BUZZ_PERF_STEP_PX), scores per-step row movement through real fetchOlder loads, measures the felt jump at each prepend commit. - upscroll-trackpad-live.perf.ts: macOS trackpad replica — wheel events at ~8ms spacing in finger-ramp + momentum-decay swipe profiles, no settling, with a per-RAF sampler scoring tracked-row motion vs applied scroll. Plus playwright.perf-webkit.config.ts: the same probes on Playwright WebKit. This is the config that exposed the T2 compensation being near-ineffective on WebKit-family engines under momentum input while Chromium scored clean — Chromium-only probing cannot see the defect class the shipped WKWebView app exhibits. Co-authored-by: Tyler Longwell <tlongwell@block.xyz> Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
24 lines
526 B
TypeScript
24 lines
526 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./tests/e2e",
|
|
timeout: 900_000,
|
|
retries: 0,
|
|
workers: 1,
|
|
reporter: [["list"]],
|
|
use: { baseURL: "http://127.0.0.1:4173" },
|
|
projects: [
|
|
{
|
|
name: "perf-webkit",
|
|
testMatch: ["**/*.perf.ts"],
|
|
use: { ...devices["Desktop Safari"] },
|
|
},
|
|
],
|
|
webServer: {
|
|
command: "python3 -m http.server 4173 -d dist",
|
|
cwd: ".",
|
|
reuseExistingServer: true,
|
|
url: "http://127.0.0.1:4173",
|
|
},
|
|
});
|