Enhance benchmark harness, typing, and robustness; refactor RouteMatcher and git error parsing#240
Merged
AhmmedSamier merged 1 commit intomasterfrom Mar 1, 2026
Conversation
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.
Motivation
anyusages in benchmarks with lightweight typed interfaces to catch schema drift and improve maintainability.RouteMatcher.Description
benchmarks/utils.tsto record per-iteration samples and emitminMs,maxMs,p95Ms, andstdDevMsin addition toavgMsandtotalMs, and updated thesaveBenchmarkssignature and result typing.language-server/benchmarks/*to use typedSearchableItemarrays and small local interfaces, replacedanyusages, added helper functions likecreateBenchmarkConfigandinitializeGitRepo, and ensured temp directories are optionally initialized as git repos to avoid noisy git errors.BenchmarkActivityTracker,IncrementalIndexer,ModifiedFileEngine) and used typed casts where necessary to keep intent explicit.RouteMatcher.isPotentialUrlinto smaller helpers (isHttpMethod,skipSpaces,isPotentialPathStartChar) to simplify logic and reduce cognitive complexity.WorkspaceIndexer.getGitExitCodeto useRegExp.execand safer checks when extracting an exit code.language-server/reviews/language-server-review-2026-02-28.mdwith findings and recommendations from the benchmarking/run.language-server/benchmarks/benchmarks.jsonwith newly recorded benchmark metrics produced by the enhanced harness.Testing
language-server/benchmarkswhich completed and produced an updatedbenchmarks.jsonwith the new metrics fields, and all benchmark runs finished successfully.npm run build/tsc) on the language-server codebase to validate typings and compilation, which completed successfully.Codex Task