PERF002infoPro

uninstrumented-llm-call

LLM API call without timing instrumentation hides latency bottlenecks

Applies to: JavaScript, Python, TypeScript

Why this matters

LLM API calls are the slowest part of most AI applications, often taking 1-10+ seconds. Without timing instrumentation you can't identify which calls are bottlenecks, compare prompt strategies, or detect regressions. Wrapping calls with ChatTimer makes latency visible and debuggable.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, PERF002 includedstablestack explain PERF002

PERF002 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: PERF002