{
  "measuredOn": "2026-10-07",
  "environment": "staging",
  "hardware": {
    "provider": "Hetzner",
    "processor": "AMD Ryzen\u2122 5 3600"
  },
  "setup": "Probe, Gatana gateway, and echo MCP server inside the same staging cluster on Hetzner; sequential MCP tools/call round trips over kept-alive connections; 20 warm-up calls per run; three interleaved repetitions; every gateway path run with a 2025-era client (initialize handshake) and a 2026-07-28 client (no handshake), against an upstream echo server recorded as 2025-era and against the same server recorded as 2026-07-28; after a release that caches the caller lookups (tenant, token, user) in the gateway process for 30 seconds",
  "unit": "milliseconds",
  "warmupCallsPerRun": 20,
  "quantileMethod": "Sort successful samples and select index min(n-1, floor(p*n)); round summary values to one decimal place",
  "protocols": {
    "client": {
      "2025-06-18": "initialize, notifications/initialized, then tools/call on one session",
      "2026-07-28": "server/discover once, then tools/call with the per-request _meta envelope and the mcp-protocol-version, mcp-method and mcp-name headers; no handshake"
    },
    "upstream": {
      "2025-era (initialize handshake)": "the gateway sends initialize, notifications/initialized and a GET probe before every tool call",
      "2026-07-28 (no handshake)": "the gateway connects on its stored server/discover result and sends the tool call alone"
    }
  },
  "builtinControl": {
    "tool": "skills_list_skills",
    "arguments": {
      "query": "__latency_probe_no_match__"
    },
    "sideEffects": "none"
  },
  "timedCalls": 21900,
  "errors": 0,
  "addedLatencyEstimate": {
    "method": "Subtract the direct public echo p50 (same client protocol) from the gateway echo p50 in each repetition, then take the median of those three differences",
    "headlinePath": "client 2026-07-28, upstream 2026-07-28",
    "medianDifferenceOfP50Ms": 6.6,
    "approximateHeadlineMs": 7,
    "byPath": {
      "client 2025-06-18, upstream 2025-era": {
        "pairedRuns": [
          {
            "repetition": 1,
            "directP50Ms": 1.5,
            "gatewayP50Ms": 12.2,
            "differenceOfP50Ms": 10.7
          },
          {
            "repetition": 2,
            "directP50Ms": 1.3,
            "gatewayP50Ms": 10.9,
            "differenceOfP50Ms": 9.6
          },
          {
            "repetition": 3,
            "directP50Ms": 1.3,
            "gatewayP50Ms": 10.5,
            "differenceOfP50Ms": 9.2
          }
        ],
        "medianDifferenceOfP50Ms": 9.6
      },
      "client 2025-06-18, upstream 2026-07-28": {
        "pairedRuns": [
          {
            "repetition": 1,
            "directP50Ms": 1.5,
            "gatewayP50Ms": 7.5,
            "differenceOfP50Ms": 6.0
          },
          {
            "repetition": 2,
            "directP50Ms": 1.3,
            "gatewayP50Ms": 7.8,
            "differenceOfP50Ms": 6.5
          },
          {
            "repetition": 3,
            "directP50Ms": 1.3,
            "gatewayP50Ms": 7.7,
            "differenceOfP50Ms": 6.4
          }
        ],
        "medianDifferenceOfP50Ms": 6.4
      },
      "client 2026-07-28, upstream 2025-era": {
        "pairedRuns": [
          {
            "repetition": 1,
            "directP50Ms": 1.5,
            "gatewayP50Ms": 11.5,
            "differenceOfP50Ms": 10.0
          },
          {
            "repetition": 2,
            "directP50Ms": 1.4,
            "gatewayP50Ms": 11.5,
            "differenceOfP50Ms": 10.1
          },
          {
            "repetition": 3,
            "directP50Ms": 1.5,
            "gatewayP50Ms": 10.7,
            "differenceOfP50Ms": 9.2
          }
        ],
        "medianDifferenceOfP50Ms": 10.0
      },
      "client 2026-07-28, upstream 2026-07-28": {
        "pairedRuns": [
          {
            "repetition": 1,
            "directP50Ms": 1.5,
            "gatewayP50Ms": 7.9,
            "differenceOfP50Ms": 6.4
          },
          {
            "repetition": 2,
            "directP50Ms": 1.4,
            "gatewayP50Ms": 8.3,
            "differenceOfP50Ms": 6.9
          },
          {
            "repetition": 3,
            "directP50Ms": 1.5,
            "gatewayP50Ms": 8.1,
            "differenceOfP50Ms": 6.6
          }
        ],
        "medianDifferenceOfP50Ms": 6.6
      }
    },
    "limitation": "A difference between path medians, not a percentile of individual request overhead"
  },
  "limits": [
    "Warm sequential calls inside one staging cluster; not a concurrent-load test or latency guarantee",
    "Hardware describes the staging environment; it does not establish dedicated CPU use by the backend",
    "Client location, routing, and upstream distance can change results; the handshake saving grows with the distance to the upstream server",
    "The 2025-era upstream is the same echo server with protocol 2026-07-28 turned off, so the two upstream paths differ in the protocol alone",
    "The backend container ran at its CPU limit of half a core during this suite and during the morning suite alike (60 to 90 percent of CFS periods throttled); the faster path raised the request rate, which is the likely cause of the heavier tails in this run"
  ],
  "runs": [
    {
      "path": "direct, in-cluster address",
      "clientProtocol": "2025-06-18",
      "repetition": 1,
      "n": 300,
      "attempted": 300,
      "errors": 0,
      "p50": 0.5,
      "p95": 1.3,
      "p99": 23.9,
      "min": 0.4,
      "mean": 1.1,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "direct, public hostname through the ingress",
      "clientProtocol": "2025-06-18",
      "repetition": 1,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 1.5,
      "p95": 2.1,
      "p99": 3.8,
      "min": 1.3,
      "mean": 1.7,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "direct, public hostname through the ingress",
      "clientProtocol": "2026-07-28",
      "repetition": 1,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 1.5,
      "p95": 2,
      "p99": 2.9,
      "min": 1.1,
      "mean": 1.6,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2025-06-18",
      "upstreamProtocol": "2025-era (initialize handshake)",
      "repetition": 1,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 12.2,
      "p95": 45.4,
      "p99": 67.5,
      "min": 9.3,
      "mean": 18.2,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2026-07-28",
      "upstreamProtocol": "2025-era (initialize handshake)",
      "repetition": 1,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 11.5,
      "p95": 30.2,
      "p99": 54,
      "min": 9.4,
      "mean": 15.8,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2025-06-18",
      "upstreamProtocol": "2026-07-28 (no handshake)",
      "repetition": 1,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 7.5,
      "p95": 29.7,
      "p99": 46.9,
      "min": 5.9,
      "mean": 11.7,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2026-07-28",
      "upstreamProtocol": "2026-07-28 (no handshake)",
      "repetition": 1,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 7.9,
      "p95": 26.1,
      "p99": 38.2,
      "min": 6.6,
      "mean": 11,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to skills_list_skills",
      "clientProtocol": "2025-06-18",
      "repetition": 1,
      "n": 500,
      "attempted": 500,
      "errors": 0,
      "p50": 6.8,
      "p95": 39.8,
      "p99": 62.4,
      "min": 5.8,
      "mean": 11.9,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to skills_list_skills",
      "clientProtocol": "2026-07-28",
      "repetition": 1,
      "n": 500,
      "attempted": 500,
      "errors": 0,
      "p50": 6.9,
      "p95": 51,
      "p99": 69.1,
      "min": 5.5,
      "mean": 11.7,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "direct, in-cluster address",
      "clientProtocol": "2025-06-18",
      "repetition": 2,
      "n": 300,
      "attempted": 300,
      "errors": 0,
      "p50": 0.5,
      "p95": 1.4,
      "p99": 27.1,
      "min": 0.4,
      "mean": 1.2,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "direct, public hostname through the ingress",
      "clientProtocol": "2025-06-18",
      "repetition": 2,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 1.3,
      "p95": 1.7,
      "p99": 2.6,
      "min": 1.1,
      "mean": 1.4,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "direct, public hostname through the ingress",
      "clientProtocol": "2026-07-28",
      "repetition": 2,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 1.4,
      "p95": 1.9,
      "p99": 2.7,
      "min": 1.1,
      "mean": 1.5,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2026-07-28",
      "upstreamProtocol": "2026-07-28 (no handshake)",
      "repetition": 2,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 8.3,
      "p95": 21,
      "p99": 38.5,
      "min": 6.8,
      "mean": 10.8,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2025-06-18",
      "upstreamProtocol": "2026-07-28 (no handshake)",
      "repetition": 2,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 7.8,
      "p95": 21,
      "p99": 35.6,
      "min": 6.6,
      "mean": 10.4,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2026-07-28",
      "upstreamProtocol": "2025-era (initialize handshake)",
      "repetition": 2,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 11.5,
      "p95": 24.7,
      "p99": 46.5,
      "min": 9.5,
      "mean": 14.7,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2025-06-18",
      "upstreamProtocol": "2025-era (initialize handshake)",
      "repetition": 2,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 10.9,
      "p95": 24.6,
      "p99": 58,
      "min": 9.4,
      "mean": 14.4,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to skills_list_skills",
      "clientProtocol": "2026-07-28",
      "repetition": 2,
      "n": 500,
      "attempted": 500,
      "errors": 0,
      "p50": 7.1,
      "p95": 43.3,
      "p99": 60.4,
      "min": 5.9,
      "mean": 11.2,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to skills_list_skills",
      "clientProtocol": "2025-06-18",
      "repetition": 2,
      "n": 500,
      "attempted": 500,
      "errors": 0,
      "p50": 6.8,
      "p95": 45.1,
      "p99": 66.5,
      "min": 5.7,
      "mean": 12.1,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "direct, in-cluster address",
      "clientProtocol": "2025-06-18",
      "repetition": 3,
      "n": 300,
      "attempted": 300,
      "errors": 0,
      "p50": 0.5,
      "p95": 1.3,
      "p99": 28.1,
      "min": 0.4,
      "mean": 1.1,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "direct, public hostname through the ingress",
      "clientProtocol": "2025-06-18",
      "repetition": 3,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 1.3,
      "p95": 1.7,
      "p99": 2.5,
      "min": 1,
      "mean": 1.3,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "direct, public hostname through the ingress",
      "clientProtocol": "2026-07-28",
      "repetition": 3,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 1.5,
      "p95": 2,
      "p99": 3.1,
      "min": 1.2,
      "mean": 1.6,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2025-06-18",
      "upstreamProtocol": "2025-era (initialize handshake)",
      "repetition": 3,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 10.5,
      "p95": 30.1,
      "p99": 46.8,
      "min": 9.1,
      "mean": 13.9,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2026-07-28",
      "upstreamProtocol": "2025-era (initialize handshake)",
      "repetition": 3,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 10.7,
      "p95": 23.3,
      "p99": 35.1,
      "min": 9.2,
      "mean": 13.7,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2025-06-18",
      "upstreamProtocol": "2026-07-28 (no handshake)",
      "repetition": 3,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 7.7,
      "p95": 42.1,
      "p99": 63.8,
      "min": 6.2,
      "mean": 12.8,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2026-07-28",
      "upstreamProtocol": "2026-07-28 (no handshake)",
      "repetition": 3,
      "n": 1000,
      "attempted": 1000,
      "errors": 0,
      "p50": 8.1,
      "p95": 46,
      "p99": 65.5,
      "min": 6.4,
      "mean": 13.1,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to skills_list_skills",
      "clientProtocol": "2025-06-18",
      "repetition": 3,
      "n": 500,
      "attempted": 500,
      "errors": 0,
      "p50": 6.9,
      "p95": 54.7,
      "p99": 65.5,
      "min": 5.5,
      "mean": 12.6,
      "when": "7 October 2026, staging, after the auth cache release"
    },
    {
      "path": "through the gateway to skills_list_skills",
      "clientProtocol": "2026-07-28",
      "repetition": 3,
      "n": 500,
      "attempted": 500,
      "errors": 0,
      "p50": 7.5,
      "p95": 54.1,
      "p99": 67.1,
      "min": 6,
      "mean": 14.6,
      "when": "7 October 2026, staging, after the auth cache release"
    }
  ],
  "aggregate": [
    {
      "path": "direct, in-cluster address",
      "clientProtocol": "2025-06-18",
      "n": 900,
      "pooledP50": 0.5,
      "pooledP95": 1.3,
      "pooledP99": 26.0,
      "pooledMean": 1.1
    },
    {
      "path": "direct, public hostname through the ingress",
      "clientProtocol": "2025-06-18",
      "n": 3000,
      "pooledP50": 1.4,
      "pooledP95": 1.9,
      "pooledP99": 2.8,
      "pooledMean": 1.5
    },
    {
      "path": "direct, public hostname through the ingress",
      "clientProtocol": "2026-07-28",
      "n": 3000,
      "pooledP50": 1.5,
      "pooledP95": 1.9,
      "pooledP99": 2.8,
      "pooledMean": 1.5
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2025-06-18",
      "upstreamProtocol": "2025-era (initialize handshake)",
      "n": 3000,
      "pooledP50": 11.1,
      "pooledP95": 34.7,
      "pooledP99": 57.4,
      "pooledMean": 15.5
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2026-07-28",
      "upstreamProtocol": "2025-era (initialize handshake)",
      "n": 3000,
      "pooledP50": 11.2,
      "pooledP95": 26.9,
      "pooledP99": 46.2,
      "pooledMean": 14.7
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2025-06-18",
      "upstreamProtocol": "2026-07-28 (no handshake)",
      "n": 3000,
      "pooledP50": 7.7,
      "pooledP95": 31.3,
      "pooledP99": 55.5,
      "pooledMean": 11.6
    },
    {
      "path": "through the gateway to the echo tool",
      "clientProtocol": "2026-07-28",
      "upstreamProtocol": "2026-07-28 (no handshake)",
      "n": 3000,
      "pooledP50": 8.1,
      "pooledP95": 29.8,
      "pooledP99": 55.9,
      "pooledMean": 11.6
    },
    {
      "path": "through the gateway to skills_list_skills",
      "clientProtocol": "2025-06-18",
      "n": 1500,
      "pooledP50": 6.8,
      "pooledP95": 49.1,
      "pooledP99": 65.5,
      "pooledMean": 12.2
    },
    {
      "path": "through the gateway to skills_list_skills",
      "clientProtocol": "2026-07-28",
      "n": 1500,
      "pooledP50": 7.2,
      "pooledP95": 50.6,
      "pooledP99": 67.0,
      "pooledMean": 12.5
    }
  ]
}