{
  "id": "QR-35",
  "requirement": "NFR1.1",
  "metric": "REST p95 latency, 10 concurrent clients (ms)",
  "actual": 12.033,
  "target": "<= 100.0, 0 errors",
  "pass": true,
  "recorded_at": "2026-09-29T22:16:27+00:00",
  "machine": "Darwin arm64, 8 cores",
  "python": "3.11.15",
  "commit": "a088db842f",
  "branch": "testing/NFRPerformance",
  "runner": "local",
  "stats": {
    "n": 200,
    "min": 0.115,
    "mean": 2.87,
    "p50": 0.206,
    "p95": 12.033,
    "p99": 17.936,
    "max": 22.892
  },
  "requests": 200,
  "throughput_rps": 3038.5,
  "error_count": 0,
  "errors": [],
  "per_endpoint_p95_ms": {
    "/api/health": 0.134,
    "/api/drone/status": 3.457,
    "/api/input/status": 3.365,
    "/api/gestures/status": 0.214,
    "/api/gestures/recognizer": 0.181,
    "/api/calibration/status": 0.222,
    "/api/input/gesture/events": 0.214,
    "/api/analytics/flights": 14.278,
    "/api/analytics/summary": 19.214
  },
  "stress_test": {
    "clients": 50,
    "gated": false,
    "stats": {
      "n": 1000,
      "min": 0.114,
      "mean": 11.315,
      "p50": 0.189,
      "p95": 62.99,
      "p99": 101.527,
      "max": 153.081
    },
    "throughput_rps": 3367.6,
    "errors": 0,
    "per_endpoint_p95_ms": {
      "/api/health": 0.14,
      "/api/drone/status": 15.935,
      "/api/input/status": 16.487,
      "/api/gestures/status": 0.163,
      "/api/gestures/recognizer": 0.171,
      "/api/calibration/status": 0.204,
      "/api/input/gesture/events": 0.197,
      "/api/analytics/flights": 95.201,
      "/api/analytics/summary": 101.527
    }
  },
  "finding": "At 50 simultaneous clients (stress, not gated) the analytics endpoints dominate the tail: every request queues for the single sqlite connection. A single-operator desktop app never generates that load, but a short-lived cache on /analytics/summary would remove it.",
  "method": "10 simulated clients (several dashboard tabs polling at once) each fire 20 requests back to back at random read endpoints through the real ASGI app and sqlite database. Repeated at 50 clients as an ungated stress run.",
  "chart": {
    "kind": "bars",
    "column": "p95_ms",
    "label": "endpoint",
    "unit": "ms",
    "threshold": 100.0
  }
}
