Skip to content

perf(validation): speed root search perf harness - #574

Closed
JustYannicc wants to merge 73 commits into
SuperCmdLabs:mainfrom
JustYannicc:codex/perf-root-search-test-harness
Closed

perf(validation): speed root search perf harness#574
JustYannicc wants to merge 73 commits into
SuperCmdLabs:mainfrom
JustYannicc:codex/perf-root-search-test-harness

Conversation

@JustYannicc

@JustYannicc JustYannicc commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

What changed

Changed the default sample size for scripts/test-root-search-perf.mjs from 6000 commands, 6 measured iterations, and 1 warmup to 2000 commands, 1 measured iteration, and 0 warmups.

Why

The root-search perf harness dominated default script validation time while still supporting explicit env overrides for heavier local benchmarking.

Compatibility impact

No runtime behavior changes. Existing SUPERCMD_ROOT_SEARCH_PERF_COMMANDS, SUPERCMD_ROOT_SEARCH_PERF_ITERATIONS, and SUPERCMD_ROOT_SEARCH_PERF_WARMUPS overrides continue to work for larger or warmer samples.

How tested

  • node --test scripts/test-root-search-perf.mjs
  • node --test 'scripts/test-*.mjs'
  • git diff --check
  • Codex LSP diagnostics on scripts/test-root-search-perf.mjs

Performance evidence

Before: node --test scripts/test-root-search-perf.mjs used commands=6000 queries=8 iterations=6 warmups=1, duration_ms=27713.241292, real 27.79s.

After: node --test scripts/test-root-search-perf.mjs uses commands=2000 queries=8 iterations=1 warmups=0, duration_ms=2301.850125, real 2.38s.

Full script stack after change: node --test 'scripts/test-*.mjs' passed in real 12.58s with 235 passing, 1 skipped, 0 failed.

Stack validation

Built from codex/fix-validation-esbuild-platform-install at 15ee435, preserving the integrated validation stack. The focused root-search harness passed after the rebase; prior full scripts suite evidence remains above.

Replaces

None.

…ated-integration-stack

# Conflicts:
#	src/renderer/src/raycast-api/hooks/use-cached-promise.ts
…ated-integration-stack

# Conflicts:
#	src/renderer/src/raycast-api/list-runtime-renderers.tsx
#	src/renderer/src/raycast-api/list-runtime.tsx
…ated-integration-stack

# Conflicts:
#	src/renderer/src/CameraExtension.tsx
…ated-integration-stack

# Conflicts:
#	src/renderer/src/raycast-api/list-runtime.tsx
… into codex/perf-consolidated-integration-stack
@JustYannicc

Copy link
Copy Markdown
Collaborator Author

Superseded by the consolidated validation PR: #578

@JustYannicc JustYannicc closed this Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant