function StatBar({ label, value, max }) { const pct = max > 0 ? Math.min((value / max) * 100, 100) : 0 const color = value < 3000 ? 'bg-emerald-500' : value < 6000 ? 'bg-yellow-500' : 'bg-red-500' return (
{label} {value ? `${value.toLocaleString()}ms` : '—'}
) } export default function LatencyStats({ metrics }) { const p50 = metrics?.latency_p50_ms const p95 = metrics?.latency_p95_ms const p99 = metrics?.latency_p99_ms const max = Math.max(p99 ?? 0, p95 ?? 0, p50 ?? 0, 10000) return (

Response Latency

{p99 != null && }

End-to-end per-query latency including retrieval + LLM call. Does not include Tavily web search.

) }