{
  "purpose": "Deterministic analytical examples, not measured performance or accuracy-trial results.",
  "storageModel": {
    "scope": "Independent local P95 estimates for one accumulation period; no merge or fleet-wide estimate.",
    "totalRequestsPerSecond": 20000,
    "workers": 2,
    "measurementsPerRequest": 4,
    "percentilesPerMeasurement": 1,
    "rawValueBytes": 8,
    "markersPerTracker": 5,
    "arrayEntryTypes": {
      "height": "float64",
      "position": "uint64",
      "fraction": "float64"
    },
    "bytesPerArrayEntry": 8,
    "counterBytes": 8,
    "periodSeconds": [900, 3600],
    "includesMerge": false,
    "excludes": [
      "container and allocator overhead",
      "synchronization",
      "temporary locals and other runtime overhead"
    ]
  },
  "averageExample": {
    "batchA": {
      "count": 1000,
      "durationMs": 100,
      "meanMs": 100,
      "p95Ms": 100
    },
    "batchB": {
      "fastCount": 900,
      "fastMs": 10,
      "slowCount": 100,
      "slowMs": 910,
      "meanMs": 100,
      "p95Ms": 910
    }
  },
  "pSquared": {
    "probability": 0.95,
    "targetFractions": [0, 0.475, 0.95, 0.975, 1],
    "heightsAreSchematic": true,
    "illustrativeRelativeHeights": [0.05, 0.15, 0.5, 0.76, 1],
    "heightSource": {
      "figure": "04-psquared-markers.svg",
      "axisTopY": 270,
      "axisBottomY": 790,
      "markerY": [764, 712, 530, 394.8, 270],
      "meaning": "Illustrative heights normalized from the reference SVG coordinates, not measured durations or millisecond values."
    }
  },
  "pSquaredStep": {
    "rankPositions": [4, 6, 8],
    "requestedPosition": 7,
    "curved": {
      "heights": [10, 30, 90],
      "proposed": 55,
      "accepted": 55
    },
    "fallback": {
      "heights": [10, 30, 31],
      "proposed": 32.875,
      "accepted": 30.5
    }
  },
  "pSquaredInsertion": {
    "purpose": "Two alternative insertions into the same illustrative initialized P95 state.",
    "count": 100,
    "heightsMs": [10, 50, 100, 150, 300],
    "positions": [1, 48, 95, 98, 100],
    "cases": [
      {
        "newDurationMs": 80,
        "expectedP95PositionAfterInsertion": 96,
        "expectedDesiredP95Position": 96,
        "expectedP95PositionAfterCorrection": 96,
        "expectedHeightChanges": false
      },
      {
        "newDurationMs": 120,
        "expectedP95PositionAfterInsertion": 95,
        "expectedDesiredP95Position": 96,
        "expectedP95PositionAfterCorrection": 96,
        "expectedHeightChanges": true
      }
    ]
  }
}
