HotPath Gate: pre-merge performance regression tests mined from your own perf PRs
A system that blocks code updates if they make the most important parts of a program run slower.
A CI service that mines a company's merged performance-improving pull requests into executable benchmark tests attached to hot functions, then blocks any merge that slows them down. It exists because LLM agents demonstrably cannot be trusted to optimize — or even preserve — repo-level performance.
Concept
HotPath Gate turns a company's own history into a performance safety net. It mines historical performance-improving pull requests using the recipe SWE-Perf demonstrates — extract the relevant codebase, target functions, performance-related tests, and executable environments, then human-verify — and attaches the resulting benchmark tests to the repository's hot functions. Every pull request (AI-generated or not) then triggers timed runs; a change that slows a hot path beyond a set threshold blocks merge, with a before/after profile attached. The same mined suite can optionally report which coding assistants actually achieve speedups on those hot paths, letting teams set per-assistant permissions for performance-critical code.
Why now
SWE-Perf is the first benchmark for repo-level code performance optimization: 140 instances curated from performance-improving pull requests in popular GitHub repositories, each shipping the codebase, target functions, performance tests, expert-authored patches, and an executable environment. Its evaluation of representative file-level and repo-level approaches (including Agentless and OpenHands) reveals a substantial capability gap between existing LLMs and expert-level optimization. Two implications: as AI agents write more production code, performance will neither improve nor reliably protect itself, so it needs an automated pre-merge control; and the benchmark proves the control is buildable — real perf PRs can be systematically converted into executable perf tests at meaningful scale (140 instances), and the same mining can run on any proprietary repo. For latency- and compute-cost-sensitive operators, every blocked regression is directly monetizable.
Written by GLM · 2 Dec 2026
AI assessment
A high-conviction play that leverages a specific research methodology to solve a costly problem for infra-heavy companies facing an influx of AI-generated code.
- Evidence strength 5/5
- The SWE-Perf paper provides a direct blueprint for extracting executable performance tests from real PRs, making the core mechanism well-supported.
- Market pull 5/5
- High-scale infrastructure companies have a massive financial incentive to prevent performance regressions, especially as AI-generated code increases volume.
- Novelty & moat 3/5
- While similar to SkillGate and ThreatGate in 'blocking' logic, this is the first to apply the specific SWE-Perf mining methodology to performance regressions.
- Feasibility 3/5
- Building the mining tool is feasible, but maintaining stable, reproducible benchmark environments for diverse proprietary repos is a significant engineering hurdle.
- Wedge clarity 4/5
- The focus on 'hot functions' and blocking regressions in performance-critical infra is a sharp, high-value entry point.
- Simplicity / focus 4/5
- The product is a focused CI gate, though the optional 'assistant reporting' feature starts to drift toward a broader analytics platform.
Scored by Gemma 4 · 2 Dec 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.
Act on this idea
Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.
Who benefits
- MongoDBcompany
Database query-path performance is its core product promise; mined perf tests protect hot paths as AI-written internal code grows and regressions would directly hurt customers.
- Cloudflarecompany
Serves billions of edge requests where per-request latency and compute cost are the product; a pre-merge perf gate stops AI diffs from regressing revenue-critical hot paths.
- Ubercompany
Runs latency-sensitive marketplace services with heavy internal AI-coding adoption; gating merges on mined perf tests protects rider and driver experience.
- GitLabcompany
As a CI vendor it could ship the performance gate as a first-class pipeline feature, monetizing AI-era regression control across its customer base.