add performance and stability verification tests#378
Merged
JeremyDev87 merged 2 commits intomasterfrom Feb 14, 2026
Merged
Conversation
Add __perf__ test suite covering all four areas from issue #350: - Rendering performance: 29-agent initial render, single-agent rerender, bulk deactivation - Memory stability: 10k event heap growth check, listener accumulation prevention, deactivated agent cleanup - MCP overhead: zero-emit when disabled, <5ms interceptor overhead, setImmediate fire-and-forget verification - Nerd Font fallback: systematic icon rendering for all 29 agents across TERM_NERD_FONT states
- Replace single tick() with flushRender() (5 event-loop cycles) to ensure React completes batch state updates before frame assertions - Relax thresholds to account for CI runner variability: initial render 100ms→300ms, rerender 50ms→200ms, bulk deactivation 200ms→500ms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #350
Add
__perf__test suite for TUI Phase 4 performance testing and stability verification. This covers all four task areas defined in the issue.Rendering Performance (
rendering-performance.spec.tsx)Memory Stability (
memory-stability.spec.tsx)MCP Performance Impact (
mcp-overhead.spec.ts)TuiInterceptoremits zero events when not enabledsetImmediate, not emitted synchronouslyNerd Font Fallback (
nerd-font-fallback.spec.ts)TERM_NERD_FONT=true: All 29 agents return their Nerd Font iconTERM_NERD_FONT=false: All 29 agents return ASCII[...]fallback[?]Test Plan
yarn workspace codingbuddy testpasses with new__perf__specs