perf: parse, chunk and hash documents in a worker thread and add startup and document-parse benchmarks

This commit is contained in:
mesalogo
2026-10-03 13:54:24 +08:00
parent 9d03217f99
commit 10c5162811
15 changed files with 1787 additions and 33 deletions
+2
View File
@@ -27,8 +27,10 @@
"test:watch": "vitest",
"perf:app": "node build/run-app-perf.cjs",
"perf:check": "node build/check-perf-thresholds.cjs",
"perf:document-parse": "node build/run-document-parse-perf.cjs",
"perf:knowledge": "node build/run-knowledge-perf.cjs",
"perf:main": "node build/run-main-perf.cjs",
"perf:startup": "node build/run-startup-perf.cjs",
"eval:retrieval": "vitest run --config tests/support/knowledge-retrieval-evaluation.ts tests/knowledge-retrieval-metrics.test.ts tests/knowledge-retrieval-evaluation.test.ts",
"build": "npm run typecheck && npm run build:bundle",
"build:bundle": "electron-vite build && node build/check-control-plane-package-installer.cjs",