MAESTRO: Add performance tests for thinking stream feature (Phase 6.5)

Created comprehensive test suite for large thinking streams (10-50KB+):
- RAF throttling efficiency tests validating chunk batching
- Large stream handling (10KB, 25KB, 50KB, 100KB+) with performance thresholds
- Memory efficiency tests (buffer clearing, cleanup on unmount)
- UI rendering performance tests
- Chunk batching edge cases (empty, tiny, interleaved multi-tab)
- Stress tests (sustained high-frequency, concurrent sessions)

Added test infrastructure:
- vitest.performance.config.mts for performance test configuration
- npm run test:performance script for running performance tests
This commit is contained in:
Pedram Amini
2025-12-22 19:03:55 -06:00
parent 1d59b9c577
commit 7182817718
3 changed files with 742 additions and 1 deletions

View File

@@ -41,7 +41,8 @@
"test:e2e:ui": "npm run build:main && npm run build:renderer && playwright test --ui",
"test:e2e:headed": "npm run build:main && npm run build:renderer && playwright test --headed",
"test:integration": "vitest run --config vitest.integration.config.ts",
"test:integration:watch": "vitest --config vitest.integration.config.ts"
"test:integration:watch": "vitest --config vitest.integration.config.ts",
"test:performance": "vitest run --config vitest.performance.config.mts"
},
"build": {
"appId": "com.maestro.app",