{
  "about": "Measured results of the ppe-serving repository, copied from its committed result files at one commit. Built by scripts/ppe-serving-results.mjs on this site; nothing here was measured by the site.",
  "source": {
    "repository": "https://github.com/ZulfaqarHafez/ppe-serving",
    "commit": "983e4d067dbcefb23439def13a7783ad8af60e3a",
    "files": {
      "machine": "https://github.com/ZulfaqarHafez/ppe-serving/blob/983e4d067dbcefb23439def13a7783ad8af60e3a/service/results/loadtest/machine.json",
      "loadtest": "https://github.com/ZulfaqarHafez/ppe-serving/blob/983e4d067dbcefb23439def13a7783ad8af60e3a/service/results/loadtest/summary.json",
      "shutdown": "https://github.com/ZulfaqarHafez/ppe-serving/blob/983e4d067dbcefb23439def13a7783ad8af60e3a/service/results/shutdown.json",
      "serviceParity": "https://github.com/ZulfaqarHafez/ppe-serving/blob/983e4d067dbcefb23439def13a7783ad8af60e3a/service/results/parity.json",
      "hpaKeepalive": "https://github.com/ZulfaqarHafez/ppe-serving/blob/983e4d067dbcefb23439def13a7783ad8af60e3a/service/results/k8s/hpa-keepalive.json",
      "hpaNoKeepalive": "https://github.com/ZulfaqarHafez/ppe-serving/blob/983e4d067dbcefb23439def13a7783ad8af60e3a/service/results/k8s/hpa-no-keepalive.json",
      "bench": "https://github.com/ZulfaqarHafez/ppe-serving/blob/983e4d067dbcefb23439def13a7783ad8af60e3a/cpp/results/bench.json",
      "cppParity": "https://github.com/ZulfaqarHafez/ppe-serving/blob/983e4d067dbcefb23439def13a7783ad8af60e3a/cpp/results/parity.json",
      "gazebo": "https://github.com/ZulfaqarHafez/ppe-serving/blob/983e4d067dbcefb23439def13a7783ad8af60e3a/ros2/results/gazebo_run.json",
      "fp32Export": "https://github.com/ZulfaqarHafez/ppe-serving/blob/983e4d067dbcefb23439def13a7783ad8af60e3a/cpp/results/fp32_export.json"
    }
  },
  "model": {
    "file": "ppe_yolov8s_320_int8dyn.onnx",
    "bytes": 11366765,
    "sha256": "d0a6c62f4bda6733f443b22bf9dce288b8f082ca0fc2f404a4931eb7cf0cbac2",
    "fp32Bytes": 44628163
  },
  "machine": {
    "cpu": "Intel(R) Xeon(R) Processor @ 2.10GHz",
    "logicalCpus": 4,
    "ramGib": 15.7,
    "gpu": "none",
    "note": "virtual machine; the load generator runs on the same host as the service"
  },
  "service": {
    "image": "site-backs.webp",
    "cpuLimit": 2,
    "layout": "2 workers x 1 ONNX Runtime thread (the default)",
    "rows": [
      {
        "users": 1,
        "requests": 177,
        "rps": 11.8,
        "p50": 81,
        "p95": 105,
        "p99": 113,
        "errorRate": 0
      },
      {
        "users": 2,
        "requests": 325,
        "rps": 21.6,
        "p50": 87,
        "p95": 122,
        "p99": 144,
        "errorRate": 0
      },
      {
        "users": 4,
        "requests": 364,
        "rps": 24,
        "p50": 158,
        "p95": 207,
        "p99": 220,
        "errorRate": 0
      },
      {
        "users": 8,
        "requests": 372,
        "rps": 24.3,
        "p50": 317,
        "p95": 412,
        "p99": 500,
        "errorRate": 0
      },
      {
        "users": 16,
        "requests": 399,
        "rps": 25.5,
        "p50": 617,
        "p95": 693,
        "p99": 774,
        "errorRate": 0
      },
      {
        "users": 32,
        "requests": 406,
        "rps": 24.8,
        "p50": 1263,
        "p95": 1422,
        "p99": 1499,
        "errorRate": 0
      }
    ],
    "saturation": {
      "users": 4,
      "rps": 24.02,
      "p95": 206.6,
      "rule": "the first level where doubling the users adds under 10% throughput but over 50% p95"
    },
    "layouts": [
      {
        "layout": "2 workers x 1 thread",
        "peakRps": 25.54,
        "p50OneUser": 81
      },
      {
        "layout": "1 worker x 2 threads",
        "peakRps": 17.7,
        "p50OneUser": 57
      }
    ],
    "layoutGainPercent": 44.3,
    "shutdown": {
      "clients": 16,
      "drained": 16,
      "stopSeconds": 1.22,
      "exitCode": 0
    },
    "parity": {
      "cases": 10,
      "detections": 26,
      "worstScoreGap": 0.000492,
      "tolerance": 0.001
    }
  },
  "cpp": {
    "model": "ppe_yolov8s_320_int8dyn.onnx",
    "threads": 1,
    "iterations": 800,
    "stages": [
      {
        "stage": "Image decode",
        "cppP50": 6.23,
        "pythonP50": 9.32,
        "ratio": 1.5
      },
      {
        "stage": "Preprocess (letterbox)",
        "cppP50": 2.51,
        "pythonP50": 2.56,
        "ratio": 1.02
      },
      {
        "stage": "Inference (model call)",
        "cppP50": 72.2,
        "pythonP50": 72.2,
        "ratio": 1
      },
      {
        "stage": "Postprocess (decode, NMS)",
        "cppP50": 0.028,
        "pythonP50": 0.312,
        "ratio": 11.28
      },
      {
        "stage": "End to end",
        "cppP50": 81,
        "pythonP50": 83.7,
        "ratio": 1.03
      }
    ],
    "coldStart": {
      "image": "site-backs.png",
      "runs": 20,
      "cppP50": 156,
      "pythonP50": 271,
      "cppRssMib": 57.9,
      "pythonRssMib": 91.7
    },
    "fp32": {
      "int8InferenceP50": 72.2,
      "fp32InferenceP50": 49.8
    },
    "parity": {
      "comparisons": 10,
      "outputsBitIdentical": 10,
      "detections": 52,
      "maxScoreDiff": 0
    }
  },
  "kubernetes": {
    "users": 8,
    "seconds": 150,
    "rows": [
      {
        "mode": "keep-alive on",
        "requests": 1832,
        "rps": 12.2,
        "p95": 743,
        "maxReplicas": 4,
        "busiestShare": 1,
        "perPod": [
          1832,
          0,
          0,
          0
        ]
      },
      {
        "mode": "keep-alive off",
        "requests": 4546,
        "rps": 30.2,
        "p95": 659,
        "maxReplicas": 4,
        "busiestShare": 0.316,
        "perPod": [
          1435,
          1136,
          1133,
          842
        ]
      }
    ]
  },
  "ros2": {
    "goalResult": "succeeded",
    "goalsSent": 2,
    "trigger": {
      "label": "No-vest",
      "score": 0.6726,
      "frames": 3
    },
    "simSecondsGoalToResult": 9.795,
    "detectorFps": 4.86,
    "maxScore": {
      "No-vest": 0.693,
      "No-Helmet": 0.392,
      "Gloves": 0.313,
      "Vest": 0.281
    },
    "medianScore": {
      "No-vest": 0.668,
      "No-Helmet": 0.3,
      "Gloves": 0.313,
      "Vest": 0.281
    }
  }
}
