hex/perf/launch.bench.ts
Luke Parker 3c1fa1c4d5 Let strobe launch an isolated Hex
Scope the Windows instance event to a custom data root, read ~/.config/hex from USERPROFILE on Windows, add HEX_DISABLE_UPDATES, name the UI and remaining long-lived threads, and add the strobe profile and feature, strobe.json, perf benches, and docs/perf.md.
2026-11-04 05:34:22 +10:00

22 lines
654 B
TypeScript

// Cold launch to the first painted Settings window (docs/perf.md): process
// start, fonts, GPU device and pipelines, and the first frames.
import { bench, native } from "@hona/strobe"
export default bench({
targets: {
window: native("hex", { bridge: false }),
},
cases: {
"cold-launch": {
primary: "launch.ready",
metrics: ["launch.settled", "launch.api", "cpu.work", "memory.app.private"],
launch: {
until: { window: "painted" },
milestones: {
// The local API starts on its own thread while the window opens.
api: { match: "local API started" },
},
},
},
},
})