OpenAI's Performance Factory: Keeping ChatGPT Fast with Codex Workflows

OpenAI reveals Performance Factory, driven by Codex workflows, using AI agents to continuously find and fix ChatGPT performance issues.
In a technical blog post, OpenAI revealed its internal system Performance Factory, composed of multiple Codex-driven workflows meant to keep ChatGPT responsive as features accumulate. Traditional performance troubleshooting relies on engineers manually spotting and fixing anomalies on monitoring dashboards—slow and reactive. Performance Factory turns this into a repeatable production line where Codex analyzes code and performance data, finds regression points, and generates fixes. It's positioned as human-AI collaboration, not unattended automation: agents scan, locate, and patch, while engineers keep final judgment. The takeaway: treat performance governance as an ongoing process, delegate mechanical work to agents, and retain human control.
ChatGPT's speed isn't just a product of model inference—it also depends on a backend system that continuously finds and fixes performance bottlenecks. In a technical blog post, OpenAI revealed an internal system called Performance Factory, composed of multiple Codex-driven workflows designed to keep ChatGPT responsive even as features continue to pile up.

Why ChatGPT Needs a "Performance Factory"
ChatGPT's experience is shaped by the model, the frontend, the API, and a large number of internal services working together. As the product iterates, degradation in any one of these components can be perceived by users as "getting slower."
Traditional approaches rely on manual investigation: engineers spot suspicious metrics on monitoring dashboards, spend time locating the relevant code, then fix and verify it. This process is labor-intensive and tends to lag behind the emergence of problems. OpenAI's approach is to turn performance optimization into a repeatable production line—AI agents proactively hunt for problems and handle part of the fix work, freeing human engineers from repetitive labor.
Performance regression refers to the phenomenon where, after a new version or configuration change, a performance metric (such as latency, throughput, or memory usage) becomes worse compared with the baseline. In large online services, performance regressions are often not caused by a single large change but by the compounding effect of multiple small commits, dependency upgrades, or shifts in traffic patterns—making them hard to catch in a timely manner through manual, one-by-one investigation. Common approaches to performance governance include: establishing baseline monitoring for latency and resource usage, running continuous benchmarks on critical paths, incorporating performance metrics into release gates, and building correlation analysis between changes and metric fluctuations. Performance Factory targets exactly this pain point—transforming "detecting regressions, locating causes, and verifying fixes" from an occasional manual investigation into a continuously running automated process.
Performance Factory Is Driven by Codex Workflows
According to OpenAI's description, Performance Factory is a workflow system built around Codex. Codex plays two roles here: first, analyzing code and performance data to identify performance regression points worth attention; second, generating and applying fixes for the problems it finds.
This means performance issues shift from "being discovered by people" to "being scanned and processed by the system and then automatically surfaced." Workflows can be invoked repeatedly, and their coverage is not limited to a single module—OpenAI's stated goal of helping ChatGPT stay fast indicates that this system serves the product as a whole rather than some isolated scenario.
Codex is a series of code-generation models developed by OpenAI that can generate, complete, and modify code based on natural language descriptions or code context. Unlike general-purpose chat models, Codex is specifically trained for code understanding, cross-file analysis, and patch-style modifications, making it well suited to tasks such as "reading performance-related code, locating regression points, and generating fix patches." In Performance Factory, Codex does not run independently; it is orchestrated into workflows: each workflow defines a set of steps (such as pulling performance data, filtering anomalous metrics, correlating code changes, and generating candidate fixes), and Codex serves as the reasoning and generation engine in steps that require understanding or rewriting code. This "agent + workflow" combination makes the automation process controllable and reproducible, and makes it easy for humans to step in and review at critical points.
Human-AI Collaboration: Automation Doesn't Mean Unattended
It's worth noting that OpenAI does not describe Performance Factory as a fully automated system. What it emphasizes is a mechanism that "discovers and fixes performance issues," and performance judgments often require context: some changes may be faster in the test environment but could affect other behaviors.
A more reasonable interpretation, then, is that Codex workflows push candidate problems and candidate fixes in front of engineers, shortening the path from discovering a problem to verifying a fix. This model lets engineers focus their energy on judgment and design, while delegating repetitive scanning, localization, and initial patching to agents.
Implications for AI Engineering Practice
The significance of Performance Factory extends beyond OpenAI's internal operations. It demonstrates a concrete way to embed AI agents into the software lifecycle: not by having models write a bunch of code, but by building workflows with feedback loops around a clear objective (in this case, performance).
For teams that also maintain large online services, there are three takeaways from this approach. First, define performance governance as an ongoing process rather than a one-off project; second, use agents to handle the mechanical work of information gathering and initial fixes; third, retain human control over final judgments. OpenAI did not disclose specific metrics for Performance Factory or full details of its internal tooling, but the fact that "Codex-driven workflows keep ChatGPT fast" is itself a compelling case for AI participating in infrastructure maintenance.
One-line Summary
OpenAI reveals Performance Factory, driven by Codex workflows, using AI agents to continuously discover and fix ChatGPT performance issues.
Paragraph Summary
In a technical blog post, OpenAI revealed its internal system Performance Factory, composed of multiple Codex-driven workflows, with the goal of keeping ChatGPT responsive even as features continue to accumulate. The article notes that traditional performance troubleshooting relies on engineers spotting anomalies on monitoring dashboards and then manually locating and fixing them—time-consuming and lagging behind. Performance Factory turns this process into a repeatable production line, with Codex analyzing code and performance data, identifying regression points, and generating fixes. The system is positioned as human-AI collaboration rather than unattended operation: agents handle scanning, localization, and initial patching, while engineers retain final judgment on performance impact. The article argues that its lessons lie in defining performance governance as an ongoing process, using agents for mechanical work, and retaining human control—a concrete case of AI participating in infrastructure maintenance.
Related articles

Pure-Code Video Generation Tested: Which AI Model Actually Follows Instructions?
A Bilibili creator tested three AI models' pure-code video generation with unified prompts and three revisions each: Xiaonaomao has a high ceiling but lacks stability, GPT 6.2 Extra models well but only follows half the instructions, and OPAS 5.5 remains the benchmark.

GPT-6 Six-Tier Hands-On Test: Astra Ultra Dominates but Bills Double
GPT-6 six-tier test: Astra Ultra sweeps 3:0 in 3D tasks thanks to sub-agents and runs 14% faster, but hidden backend bills make its real cost 2.6x single-threaded.

GPT-6.2 Astra vs Fable 5.2: Huge Cost-Efficiency Gap Across 12 Real-World Tests
Bilibili creator tests GPT-6.2 Astra vs Fable 5.2 across 12 real tasks: Fable wins 7-5 but costs 7.2x more and takes nearly 5x longer. Token efficiency emerges as the key selection metric.