Add a 4K chat performance bench and record its baseline
tool/perf/chat_4k_bench.mjs opens the full-app fixture at 3840x2160 with 12 rich chats and measures opening, scrolling, streaming, switching and typing (frame timings plus a source-mapped CPU profile). The capture kit's --gpu mode now uses ANGLE on Vulkan on Linux. notes/perf-4k-chat.md records the baseline and the hotspots it found. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,10 @@ async function launch(chromePath, gpu) {
|
||||
'--headless=new', '--no-first-run', '--no-default-browser-check',
|
||||
// Without a GPU CanvasKit rasterises on the CPU; `gpu` keeps WebGL (Metal
|
||||
// through ANGLE on a Mac) for benches that measure raster time.
|
||||
...(gpu ? ['--use-angle=metal', '--enable-gpu-rasterization', '--ignore-gpu-blocklist'] : ['--disable-gpu']),
|
||||
// Linux keeps the GPU through ANGLE on Vulkan.
|
||||
...(gpu ? [process.platform === 'darwin' ? '--use-angle=metal' : '--use-angle=vulkan',
|
||||
...(process.platform === 'darwin' ? [] : ['--enable-features=Vulkan']),
|
||||
'--enable-gpu-rasterization', '--ignore-gpu-blocklist'] : ['--disable-gpu']),
|
||||
'--hide-scrollbars', '--mute-audio',
|
||||
'--remote-debugging-port=0', `--user-data-dir=${profile}`, 'about:blank',
|
||||
], { stdio: ['ignore', 'ignore', 'pipe'] });
|
||||
|
||||
Reference in New Issue
Block a user