Commit Graph
4 Commits
Author SHA1 Message Date
debpalash 13bb925c9d fix(bench): throwaway HOME for app launches; reload on repeated chunk failure
- app_start.mjs: launch env moves HOME/USERPROFILE/XDG dirs into the
  throwaway profile so a packaged app's terminal-command setup cannot
  touch ~/.local/bin or shell profiles (launch_env.mjs, tested)
- ErrorRecovery: Try Again reloads the renderer for dynamic-import
  failures; resetting the boundary replayed React.lazy's cached rejection
- bench.py idle(): always take one RSS sample and guard the CPU division
  for a zero or tiny --idle-window
2026-11-09 22:30:31 +05:30
debpalash 1835be1e93 fix(bench): isolate the Electron launch env; one changelog entry
Addresses review: app_start.mjs passed the caller's OMNIVOICE_*,
VOICESTUDIO_* and proxy variables to Electron, unlike bench.py's backend
isolation, so a developer's settings could redirect the data folder.
The two #3940 fragments are merged into one.
2026-11-09 21:37:59 +05:30
debpalash 67655188e4 fix(bench): keep loopback readiness checks off HTTP(S)_PROXY
Addresses review: with a proxy set and no loopback exception, the
benchmark's readiness checks went through the proxy and waited out the
300 s timeout although the backend was up.
2026-11-09 21:26:21 +05:30
debpalash 731e2bdda2 feat(bench): offline startup, idle and bundle-size benchmark harness (#3924)
scripts/bench/bench.py measures backend spawn-to-ready, startup steps,
idle RSS/CPU and boot import times; bundle.mjs reports renderer chunk
sizes and checks them against bundle-baseline.json; app_start.mjs times
Electron launch to first paint and Home plus idle CPU. Runs are isolated
from user data and network: throwaway data dir and profile, offline HF,
a dead proxy for outbound HTTP, updater off, non-local requests aborted.
2026-11-09 21:18:22 +05:30