Quality assurance · Production

PerfInsights: Uber's GenAI system detects Go performance antipatterns with 93.10% engineering time savings

The problem

Uber's top 10 Go services cost more than multi-million dollars in compute per month, while traditional performance tuning demanded deep expertise and days or weeks of profiling work, making systematic optimization non-trivial for most engineering teams.

First attempt

Initial single-shot LLM-based antipattern detection produced inconsistent and unreliable results with hallucinations and often non-runnable code, and false positive rates exceeded 80%.

Workflow diagram · grounded in source
1
Production profile collection
trigger
“PerfInsights leverages CPU and memory profiles from production services using Uber's daily fleet-wide profiler during peak traffic periods”
2
Hotpath function identification
validation
“it identifies the top 30 most expensive functions based on flat CPU usage”
3
Static noise filtering
validation
“PerfInsights applies a static filter that excludes open-source dependencies and internal runtime functions”
4
LLM antipattern detection
ai_action
“PerfInsights passes their full source codes and a list of antipatterns to a large language model (LLM) for analysis. By combining profiling context with pattern awareness, the model can pinpoint inefficient constructs with high precision…”
5
LLM jury validation
validation
“PerfInsights leverages a jury of large language models to validate each detected antipattern. These models independently assess whether an antipattern is present and whether the suggested optimization is valid.”
6
LLMCheck rule-based validation
validation
“PerfInsights employs a second layer of verification via LLMCheck by running through several domain-specific rule-based validators to evaluate LLM responses”
7
Confidence score output
output
“The final output includes a confidence score of the function's optimisability and suggested improvements”
8
Optix downstream integration
integration
“validated suggestions flowing directly into Optix, Uber's continuous code optimization tool”
9
LLMCheck accuracy feedback loop
feedback_loop
“Dashboards powered by LLMCheck provide teams with visibility into detection accuracy, error patterns, and antipattern frequency”
Reported outcome

PerfInsights reduced engineering time to detect and fix performance issues by 93.10%, achieved a 33.5% reduction in antipatterns over four months, and merged hundreds of diffs into Uber's Go monorepo.

Reported metrics
monthly compute spend (top 10 Go services)multi-million dollars
Task completion timeTasks that once required days now take hours
Diffs generated and mergedhundreds of diffs already generated and merged
average validated detections (February)265
Show all 20 reported metrics
monthly compute spend (top 10 Go services)multi-million dollars
task completion timeTasks that once required days now take hours
diffs generated and mergedhundreds of diffs already generated and merged
average validated detections (February)265
single-day detection high500
validated detections (June)176
antipattern reduction over four months33.5%
sustained antipattern reduction (Feb to June)89
manual effort for 5 antipatterns (historical baseline)∼320 hours
manual effort for 11 antipatterns (historical baseline)∼160 hours
manual effort for 6-month optimization project∼960 hours
total manual baseline hours (handful of cases)over 1,400 hours
projected annual antipattern reduction267
manual hours to address 267 antipatternsapproximately 3,800 hours
engineering time savings93.10%
detection time per issue (before vs after)from 14.5 hours to almost 1 hour
hallucination rate reductionmore than 80%
false positive rate improvement (dual-validation)from over 80% to the low teens
false positive reduction via prompt engineering80%
first cost-saving difffirst 5 digits saving diff
Reported stack
LLMLLMCheckOptix
Source
https://www.uber.com/en-IN/blog/perfinsights/
Read source ↗

Frequently asked questions

What did this team achieve with this AI workflow?

PerfInsights reduced engineering time to detect and fix performance issues by 93.10%, achieved a 33.5% reduction in antipatterns over four months, and merged hundreds of diffs into Uber's Go monorepo.

What tools did this team use?

LLM, LLMCheck, Optix.

What results were reported?

monthly compute spend (top 10 Go services): multi-million dollars; Task completion time: Tasks that once required days now take hours; Diffs generated and merged: hundreds of diffs already generated and merged; average validated detections (February): 265 (source-reported, not independently verified).

What failed first in this deployment?

Initial single-shot LLM-based antipattern detection produced inconsistent and unreliable results with hallucinations and often non-runnable code, and false positive rates exceeded 80%.

How is this quality assurance AI workflow structured?

Production profile collection → Hotpath function identification → Static noise filtering → LLM antipattern detection → LLM jury validation → LLMCheck rule-based validation → Confidence score output → Optix downstream integration → LLMCheck accuracy feedback loop.