hex/perf/launch.bench.ts
Luke Parker e5ccf0c3ea
Let strobe launch an isolated Hex (#1180)
* 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.

* strobe.json: keep the copy out of the Hugging Face cache

* strobe.json: keep seeded history

* Windows instance event: keep the default event for the default root

Naming the default data root in HEX_APPLICATION_SUPPORT_DIR must not let two apps share it.
2026-11-04 06:05:58 +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" },
},
},
},
},
})