Files
mtusi2026lab3/evidence/research.json
T

427 lines
9.3 KiB
JSON

{
"at_utc": "2026-10-10T16:34:55.342970+00:00",
"track": 1,
"hypothesis": "At fixed total API resources replica overhead offers limited throughput benefit. Growing API resources eventually saturates the shared PostgreSQL CPU; caching immutable chat access reduces this work.",
"host": "Windows-10-10.0.26200-SP0",
"docker": {
"cpus": 20,
"memory_bytes": 8129257472,
"kernel": "6.18.33.2-microsoft-standard-WSL2",
"version": "29.8.0"
},
"duration_seconds": 20.0,
"warmup_seconds": 3,
"repetitions": 3,
"concurrency": 32,
"runs": [
{
"group": "growing-2",
"label": "growing-2-r1",
"rps": 211.7078010960242,
"errors": 0,
"latency": {
"p50": 103.032,
"p95": 403.072,
"p99": 593.925
}
},
{
"group": "fixed-4",
"label": "fixed-4-r1",
"rps": 201.98063608593637,
"errors": 0,
"latency": {
"p50": 89.016,
"p95": 594.965,
"p99": 1088.854
}
},
{
"group": "growing-4",
"label": "growing-4-r1",
"rps": 252.69355941966506,
"errors": 0,
"latency": {
"p50": 100.543,
"p95": 300.893,
"p99": 398.681
}
},
{
"group": "fixed-1",
"label": "fixed-1-r1",
"rps": 194.07764674761182,
"errors": 0,
"latency": {
"p50": 182.076,
"p95": 301.229,
"p99": 393.105
}
},
{
"group": "growing-1",
"label": "growing-1-r1",
"rps": 147.61274933407014,
"errors": 0,
"latency": {
"p50": 198.649,
"p95": 405.541,
"p99": 591.271
}
},
{
"group": "fixed-2",
"label": "fixed-2-r1",
"rps": 195.07052331790695,
"errors": 0,
"latency": {
"p50": 93.897,
"p95": 516.399,
"p99": 705.707
}
},
{
"group": "fixed-1",
"label": "fixed-1-r2",
"rps": 192.2331823276647,
"errors": 0,
"latency": {
"p50": 180.172,
"p95": 302.584,
"p99": 400.54
}
},
{
"group": "fixed-4",
"label": "fixed-4-r2",
"rps": 196.21246244462247,
"errors": 0,
"latency": {
"p50": 98.873,
"p95": 569.232,
"p99": 889.888
}
},
{
"group": "growing-1",
"label": "growing-1-r2",
"rps": 141.03948821855502,
"errors": 0,
"latency": {
"p50": 200.925,
"p95": 406.508,
"p99": 595.324
}
},
{
"group": "growing-4",
"label": "growing-4-r2",
"rps": 210.37136638319353,
"errors": 0,
"latency": {
"p50": 106.076,
"p95": 309.112,
"p99": 403.836
}
},
{
"group": "fixed-2",
"label": "fixed-2-r2",
"rps": 222.57703099934778,
"errors": 0,
"latency": {
"p50": 99.041,
"p95": 475.148,
"p99": 690.186
}
},
{
"group": "growing-2",
"label": "growing-2-r2",
"rps": 173.10520969276016,
"errors": 0,
"latency": {
"p50": 109.472,
"p95": 504.141,
"p99": 694.302
}
},
{
"group": "growing-1",
"label": "growing-1-r3",
"rps": 111.6220836288919,
"errors": 0,
"latency": {
"p50": 292.176,
"p95": 589.944,
"p99": 703.098
}
},
{
"group": "fixed-2",
"label": "fixed-2-r3",
"rps": 257.0774572491194,
"errors": 0,
"latency": {
"p50": 83.079,
"p95": 400.003,
"p99": 599.521
}
},
{
"group": "growing-4",
"label": "growing-4-r3",
"rps": 200.57481049474694,
"errors": 0,
"latency": {
"p50": 108.643,
"p95": 307.711,
"p99": 401.137
}
},
{
"group": "fixed-4",
"label": "fixed-4-r3",
"rps": 245.6200227591464,
"errors": 0,
"latency": {
"p50": 93.908,
"p95": 403.533,
"p99": 639.669
}
},
{
"group": "fixed-1",
"label": "fixed-1-r3",
"rps": 198.61873708219392,
"errors": 0,
"latency": {
"p50": 173.514,
"p95": 302.399,
"p99": 402.267
}
},
{
"group": "growing-2",
"label": "growing-2-r3",
"rps": 198.67286443570768,
"errors": 0,
"latency": {
"p50": 103.908,
"p95": 489.423,
"p99": 638.279
}
},
{
"group": "saturation",
"concurrency": 4,
"label": "saturation-c4",
"rps": 305.4089331725305,
"errors": 0,
"latency": {
"p50": 6.894,
"p95": 56.688,
"p99": 71.729
}
},
{
"group": "saturation",
"concurrency": 8,
"label": "saturation-c8",
"rps": 217.04216003083909,
"errors": 0,
"latency": {
"p50": 10.633,
"p95": 92.211,
"p99": 98.152
}
},
{
"group": "saturation",
"concurrency": 16,
"label": "saturation-c16",
"rps": 184.2634589959225,
"errors": 0,
"latency": {
"p50": 96.603,
"p95": 193.167,
"p99": 203.771
}
},
{
"group": "saturation",
"concurrency": 32,
"label": "saturation-c32",
"rps": 165.80391566792468,
"errors": 0,
"latency": {
"p50": 194.156,
"p95": 398.285,
"p99": 498.459
}
},
{
"group": "saturation",
"concurrency": 64,
"label": "saturation-c64",
"rps": 171.45381083595345,
"errors": 4,
"latency": {
"p50": 292.274,
"p95": 1009.063,
"p99": 1502.997
}
},
{
"group": "cache-off",
"label": "cache-off-r1",
"rps": 221.5076481534085,
"errors": 0,
"latency": {
"p50": 107.487,
"p95": 389.289,
"p99": 504.691
}
},
{
"group": "cache-on",
"label": "cache-on-r1",
"rps": 340.2755245950718,
"errors": 0,
"latency": {
"p50": 94.943,
"p95": 203.519,
"p99": 299.346
}
},
{
"group": "cache-on",
"label": "cache-on-r2",
"rps": 282.64091664101477,
"errors": 0,
"latency": {
"p50": 100.011,
"p95": 211.718,
"p99": 308.865
}
},
{
"group": "cache-off",
"label": "cache-off-r2",
"rps": 187.02530945598375,
"errors": 0,
"latency": {
"p50": 143.388,
"p95": 481.661,
"p99": 630.944
}
},
{
"group": "cache-off",
"label": "cache-off-r3",
"rps": 179.26561869596196,
"errors": 0,
"latency": {
"p50": 105.663,
"p95": 499.372,
"p99": 705.957
}
},
{
"group": "cache-on",
"label": "cache-on-r3",
"rps": 316.22291522965446,
"errors": 0,
"latency": {
"p50": 95.752,
"p95": 250.103,
"p99": 345.465
}
},
{
"group": "saturation",
"concurrency": 1,
"label": "saturation-c1",
"rps": 225.27981605577023,
"errors": 0,
"latency": {
"p50": 3.635,
"p95": 7.621,
"p99": 11.611
}
},
{
"group": "saturation",
"concurrency": 2,
"label": "saturation-c2",
"rps": 455.9750993284763,
"errors": 0,
"latency": {
"p50": 3.348,
"p95": 7.776,
"p99": 23.452
}
}
],
"groups": {
"cache-off": {
"median_rps": 187.02530945598375,
"min_rps": 179.26561869596196,
"max_rps": 221.5076481534085,
"repetitions": 3
},
"cache-on": {
"median_rps": 316.22291522965446,
"min_rps": 282.64091664101477,
"max_rps": 340.2755245950718,
"repetitions": 3
},
"fixed-1": {
"median_rps": 194.07764674761182,
"min_rps": 192.2331823276647,
"max_rps": 198.61873708219392,
"repetitions": 3
},
"fixed-2": {
"median_rps": 222.57703099934778,
"min_rps": 195.07052331790695,
"max_rps": 257.0774572491194,
"repetitions": 3
},
"fixed-4": {
"median_rps": 201.98063608593637,
"min_rps": 196.21246244462247,
"max_rps": 245.6200227591464,
"repetitions": 3
},
"growing-1": {
"median_rps": 141.03948821855502,
"min_rps": 111.6220836288919,
"max_rps": 147.61274933407014,
"repetitions": 3
},
"growing-2": {
"median_rps": 198.67286443570768,
"min_rps": 173.10520969276016,
"max_rps": 211.7078010960242,
"repetitions": 3
},
"growing-4": {
"median_rps": 210.37136638319353,
"min_rps": 200.57481049474694,
"max_rps": 252.69355941966506,
"repetitions": 3
}
},
"limitations": [
"Single Docker Desktop host; lab2 containers remain running and idle.",
"Closed-loop benchmark with coordinated omission; not maximum production arrival rate.",
"Each run seeds a fresh chat with 1000 messages; aggregate DB size increases and is recorded.",
"Resource samples include warmup/container startup; HTTP percentiles include all attempts.",
"No claim of node, DB, LB, or storage high availability."
],
"cache_improvement_ratio": 1.6908027910739925,
"cache_improvement_confirmed": true,
"boundary_refinement": "Concurrency 1 and 2 added after the initial sweep to locate the lower saturation boundary; same resource/workload configuration."
}