← Files Software & AI CopilotARCHIVED FILE

references/performance-method.md

765 Bytes · Nov 9, 2026 · 00:42 UTC

↓ Download file

See the change to this file →

# Evidence-first performance diagnosis

Ask which signal is slow or expensive and at what load: latency percentile, throughput, allocations, CPU, database time, memory, cost, distributed shuffle, model tokens.

Create a reproducible benchmark and capture a baseline. Profile hot paths and account for warm-up, caching, data shape, concurrency and hardware. Prioritize actual bottlenecks over superficial micro-optimizations.

Potential causes: repeated DB round trips, N+1 requests, unbounded queues, excessive payloads, blocking IO, large collection-to-driver, redundant model calls.

Compare before/after on representative workload; include correctness and regression tests. Report measurement conditions, variance and tradeoffs; do not invent measured speedups.

SHA-256: aa2c81520c861720cc2cbb191573b912cf7dadfd5773d102bbc6795e5a1b5d4e