test(perf): add macOS Tauri WebView performance harness

Drive the production home traffic graph through embedded WebDriver in an
isolated optimized measurement build. Record attributed WebContent and main
process CPU/RSS distributions across foreground, hidden and restored phases.

Keep replay, raw reports, independent-run comparison, cleanup checks and
focused validation available through project commands. Normal release builds
exclude the automation service and measurement entry points.
This commit is contained in:
Tunglies
2026-09-07 07:13:24 +08:00
parent dd7b032cb1
commit b39c5f9b6d
25 changed files with 5350 additions and 656 deletions
+9 -2
View File
@@ -34,7 +34,11 @@
"test": "vitest run",
"test:watch": "vitest",
"knip:check": "knip",
"knip:report": "knip --no-exit-code"
"knip:report": "knip --no-exit-code",
"perf:build": "node scripts/perf/build.mjs",
"perf:run": "node scripts/perf/run.mjs",
"perf:compare": "node scripts/perf/compare.mjs",
"perf:test": "node --test scripts/perf/report.test.mjs"
},
"dependencies": {
"@dnd-kit/helpers": "^0.5.0",
@@ -95,6 +99,7 @@
"@types/validator": "^13.15.10",
"@vitejs/plugin-legacy": "^8.0.2",
"@vitejs/plugin-react": "^6.0.2",
"@wdio/tauri-service": "1.3.0",
"adm-zip": "^0.6.0",
"axios": "^1.16.1",
"cli-color": "^2.0.4",
@@ -123,7 +128,9 @@
"typescript-eslint": "^8.59.4",
"vite": "^8.0.14",
"vite-plugin-svgr": "^5.2.0",
"vitest": "^4.1.10"
"vitest": "^4.1.10",
"webdriverio": "9.30.0",
"ws": "8.19.0"
},
"lint-staged": {
"*.{ts,tsx,js,mjs}": [