Netflix Engineer: AI Agents for Performance
AI Engineer
Visual TL;DR
Performance BottlenecksDriver
AI agents lack platform-specific knowledge, creating non-performant code
From the article 7 mentionsThe core hypothesis is that AI agents can read profiling data, identify performance bottlenecks, and even suggest fixes much faster than humans.
Manual Performance EngineeringDriver
From the article 2 mentionsThe manual process of performance engineering, which involves triggering profiling, downloading raw data, analyzing flame graphs, and searching for code paths, is time-consuming and often only performed reactively when issues arise, typically at 2 a.m.
AI Agents for PerformanceCore
From the article 9+ mentionsRajat Shah, a Staff Software Engineer at Netflix, shared insights on how integrating AI agents into performance engineering workflows can lead to faster shipping cycles and reduced infrastructure costs.
Faster Shipping CyclesEffect
streamlined development process by proactively addressing performance issues
From the articleRajat Shah, a Staff Software Engineer at Netflix, shared insights on how integrating AI agents into performance engineering workflows can lead to faster shipping cycles and reduced infrastructure costs.
Reduced Infra CostsOutcome
optimizing code performance directly lowers infrastructure expenditure
From the articleRajat Shah, a Staff Software Engineer at Netflix, shared insights on how integrating AI agents into performance engineering workflows can lead to faster shipping cycles and reduced infrastructure costs.
Integrating AI Dev CycleContext
embedding AI agents throughout the software development lifecycle for continuous improvement
From the articleRajat Shah, a Staff Software Engineer at Netflix, shared insights on how integrating AI agents into performance engineering workflows can lead to faster shipping cycles and reduced infrastructure costs.
Real-World SavingsOutcome
Netflix's findings demonstrate significant cost reductions and efficiency gains
From the article 2 mentionsThe agent was able to draft a pull request (PR) for an engineer review within minutes, identifying potential savings of 6.5% in EC2 CPU usage and 3.0% in p90 latency.
Guardrails & Best PracticesContext
establishing guidelines for safe and effective deployment of AI performance agents
Contents(5)

Rajat Shah, a Staff Software Engineer at Netflix, shared insights on how integrating AI agents into performance engineering workflows can lead to faster shipping cycles and reduced infrastructure costs. Speaking at the AI Engineer World's Fair 2026, Shah presented a practitioner's guide, outlining a playbook for organizations looking to replicate these performance improvements.

Netflix Engineer: AI Agents for Performance - AI Engineer
Netflix Engineer: AI Agents for Performance, from AI Engineer

The Problem: Performance Engineering Bottlenecks

Shah highlighted that while AI agents are accelerating code authoring, they don't always produce the most performant code. This is because these agents lack specific knowledge of platform-specific performance patterns and internal codebase nuances. The manual process of performance engineering, which involves triggering profiling, downloading raw data, analyzing flame graphs, and searching for code paths, is time-consuming and often only performed reactively when issues arise, typically at 2 a.m.

The Solution: Leveraging AI Agents for Performance

The core hypothesis is that AI agents can read profiling data, identify performance bottlenecks, and even suggest fixes much faster than humans. The experiment at Netflix demonstrated that by feeding structured profiling data to AI agents trained on common performance patterns (like O(N^2) loops, loop invariants, and inefficient memory allocation), these agents can accurately pinpoint issues.

The process involves several steps: parsing profiler output, identifying the exact code version running, filtering to relevant code, tracing the full call path, and then analyzing the data. Shah emphasized that the AI reads structured call stack data, not just a visual flame graph, enabling it to understand the context and identify problematic patterns.

Real-World Findings and Savings

The presentation showcased a specific finding where an AI agent identified an O(N^2) ImmutableMap accumulation issue, which was consuming 8.8% of total CPU time. The agent was able to draft a pull request (PR) for an engineer review within minutes, identifying potential savings of 6.5% in EC2 CPU usage and 3.0% in p90 latency. This was validated through canary deployments.

A second key finding demonstrated the power of AI in identifying recurring issues. The same bug, related to a counter object created on every hot-path call, was found in seven different services. Without a centralized catalog, each team had to re-derive the problem. With AI, the pattern was identified once, and then applied across multiple services, potentially saving significant CPU cycles (0.5% to 4.6%) across the board.

Integrating AI into the Development Cycle

Shah stressed the importance of building a long-term memory for AI agents, suggesting a centralized, ever-growing catalog of patterns and anti-patterns. This catalog, initially built from production findings and potentially augmented with public knowledge sources, acts as a foundation for future agents. The catalog can be simple, starting with markdown files in a Git repository.

The integration into the development cycle can occur in two ways:

  • Reactive Path: Profiling, analyzing, fixing, and creating PRs, typically taking under 5 minutes and can be done on-demand or scheduled weekly.
  • Proactive Path: Catalog lookup during PR creation, leading to inline comments and suggestions from the AI agent, preventing suboptimal code from reaching production in the first place.

Both paths share the pattern catalog, ensuring consistency and continuous improvement.

Guardrails and Best Practices

Shah emphasized that AI should handle the non-deterministic aspects, while deterministic steps should belong to the infrastructure. This includes ensuring robust test coverage, automating canary deployments for validation, and maintaining a human-reviewable pattern catalog. The final decision for code changes should always rest with an engineer.

The key takeaways were to build core foundations first, invest in automation, and start with the reactive path to gradually move towards a proactive, AI-assisted development cycle. The ultimate goal is to catch performance issues earlier, ideally before they are introduced into production.

StartupHub data

Netflix

The world's leading streaming entertainment service.

Founded
1997
Location
Los Gatos, California, USA
Funding
$4.7B
© 2026 StartupHub.ai. All rights reserved. You may not republish this article in full without a license. Search engines and AI research tools may crawl and summarize for reference. Bulk reproduction or model training requires a license. See our terms.
Daniel Singer

Written by

Daniel Singer

Editor, StartupHub.ai

Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.

More from Daniel Singer