Skip to content

Soak test history

A soak test holds a steady load for a long time against a real stack (Redis, Postgres, the gateway and a fake backend) and samples resource use as it goes. Flat lines mean the gateway does not leak memory, connections or policy state. The numbers show what the gateway adds, not what your game’s own backend costs.

Both runs below used one laptop and the same load: 100 calls per second from 2,000 simulated players. They differ in how audit events reach Postgres. Repeat a run with scripts/soak.sh, or AUDIT_QUEUE=1 scripts/soak.sh for the batching writer. The runbook describes both and how to read the results.

RunCallsRatep50p95p99FailedGateway memoryReady
15 minutes, batching audit writer
2026-11-19
89,90099.9/s2.22 ms4.59 ms7.05 ms013.5 to 17.4 MiB (peak 19.5)40 of 40
60 minutes, audit written per call
2026-11-19
359,76399.9/s1.87 ms4.45 ms6.55 ms111 to 17.8 MiB (peak 18.9)97 of 97

15 minutes, batching audit writer

99.9/scalls per second, held for 14.6 minutes
7.05 msp99 latency for a full call
0 of 89,900calls failed
13.5 to 17.4 MiBgateway memory, start to end
How long a call takes milliseconds, through the whole pipeline to the backend and back (slowest single call: 42.02 ms)
p50p50: 2.22 ms2.22 msp95p95: 4.59 ms4.59 msp99p99: 7.05 ms7.05 ms
Gateway memory resident memory of the gateway container, over 14.6 minutes
012.52513.5 MiB at minute 015.4 MiB at minute 017.4 MiB at minute 117.6 MiB at minute 118 MiB at minute 218.1 MiB at minute 217.9 MiB at minute 217.6 MiB at minute 318 MiB at minute 318.2 MiB at minute 318.2 MiB at minute 417 MiB at minute 417.9 MiB at minute 517.1 MiB at minute 518 MiB at minute 518.3 MiB at minute 618.7 MiB at minute 618.5 MiB at minute 618.5 MiB at minute 718.6 MiB at minute 718.6 MiB at minute 818.2 MiB at minute 818.2 MiB at minute 818.8 MiB at minute 919.4 MiB at minute 918.9 MiB at minute 918.6 MiB at minute 1018.7 MiB at minute 1018.9 MiB at minute 1118.5 MiB at minute 1118.2 MiB at minute 1119 MiB at minute 1218.3 MiB at minute 1219.1 MiB at minute 1219.3 MiB at minute 1318 MiB at minute 1318.4 MiB at minute 1419.5 MiB at minute 1418.7 MiB at minute 1417.4 MiB at minute 1517.4015 min
Gateway CPU share of one core while serving the load, over 14.6 minutes
0102012.3 % at minute 013.3 % at minute 013.8 % at minute 110.7 % at minute 112.7 % at minute 213.9 % at minute 213 % at minute 211.6 % at minute 314.4 % at minute 313.7 % at minute 316.2 % at minute 411.8 % at minute 413.2 % at minute 515 % at minute 513.6 % at minute 513.2 % at minute 614.1 % at minute 612.3 % at minute 613.5 % at minute 713 % at minute 716.4 % at minute 815.9 % at minute 814.8 % at minute 812.6 % at minute 914.6 % at minute 913.6 % at minute 913.2 % at minute 1012.6 % at minute 1013.2 % at minute 1114.2 % at minute 1115.1 % at minute 1111.8 % at minute 1213.2 % at minute 1214 % at minute 1213 % at minute 1312.5 % at minute 1314.8 % at minute 1414.7 % at minute 1414.8 % at minute 1412.5 % at minute 1512.5015 min
Policy keys in Redis bounded: two per simulated player, over 14.6 minutes
02,5005,000964 keys at minute 04,000 keys at minute 04,000 keys at minute 14,000 keys at minute 14,000 keys at minute 24,000 keys at minute 24,000 keys at minute 24,000 keys at minute 34,000 keys at minute 34,000 keys at minute 34,000 keys at minute 44,000 keys at minute 44,000 keys at minute 54,000 keys at minute 54,000 keys at minute 54,000 keys at minute 64,000 keys at minute 64,000 keys at minute 64,000 keys at minute 74,000 keys at minute 74,000 keys at minute 84,000 keys at minute 84,000 keys at minute 84,000 keys at minute 94,000 keys at minute 94,000 keys at minute 94,000 keys at minute 104,000 keys at minute 104,000 keys at minute 114,000 keys at minute 114,000 keys at minute 114,000 keys at minute 124,000 keys at minute 124,000 keys at minute 124,000 keys at minute 134,000 keys at minute 134,000 keys at minute 144,000 keys at minute 144,000 keys at minute 144,000 keys at minute 154,000015 min
Show the numbers as a table
MeasureValue
Calls in total89,900 (71,980 succeeded, 17,920 denied by policy or the backend, 0 failed)
Latency p50, p95, p99 and the slowest call2.22, 4.59, 7.05 and 42.02 ms
Gateway memory, first and last sample13.5 and 17.4 MiB (peak 19.5)
Gateway CPU10.7 to 16.4 percent of one core
Redis policy keys964 at the start, 4,000 at the end (two per simulated player)
Postgres sessions1 at the start, 2 at the end. This is the gateway's pool filling towards its cap of 8. It was level for the second half of the run.
Readiness failures0 in 40 samples

Measured on Darwin arm64, Docker Compose, one gateway, Redis, Postgres and a fake backend on the same machine, on 2026-11-19, with the batching audit writer on (--audit-queue). It is a single machine with a fake backend that answers instantly, so the figures show what the gateway adds (policy, validation, signing, audit and the Redis and Postgres round trips), not what your game's own backend will cost. 17,920 calls were denied on purpose by the demo's limits and the fake backend, and are not failures. Repeat it yourself withscripts/soak.sh, described in the runbook.

60 minutes, audit written per call

99.9/scalls per second, held for 59.8 minutes
6.55 msp99 latency for a full call
1 of 359,763calls failed
11 to 17.8 MiBgateway memory, start to end
How long a call takes milliseconds, through the whole pipeline to the backend and back (slowest single call: 202.09 ms)
p50p50: 1.87 ms1.87 msp95p95: 4.45 ms4.45 msp99p99: 6.55 ms6.55 ms
Gateway memory resident memory of the gateway container, over 59.8 minutes
012.52511 MiB at minute 014.6 MiB at minute 215.7 MiB at minute 415.4 MiB at minute 615.1 MiB at minute 715.7 MiB at minute 916.4 MiB at minute 1116 MiB at minute 1318 MiB at minute 1518.1 MiB at minute 1717.6 MiB at minute 1917.9 MiB at minute 2117.7 MiB at minute 2217.8 MiB at minute 2416.9 MiB at minute 2617.2 MiB at minute 2818.2 MiB at minute 3017.1 MiB at minute 3217.5 MiB at minute 3417 MiB at minute 3617.2 MiB at minute 3717.8 MiB at minute 3916.8 MiB at minute 4117.9 MiB at minute 4317.4 MiB at minute 4517.2 MiB at minute 4716.7 MiB at minute 4918 MiB at minute 5117.5 MiB at minute 5217.9 MiB at minute 5418.1 MiB at minute 5618.5 MiB at minute 5817.8 MiB at minute 6017.8060 min
Gateway CPU share of one core while serving the load, over 59.8 minutes
0102011.4 % at minute 09 % at minute 211.8 % at minute 411.7 % at minute 612.3 % at minute 77.7 % at minute 98.8 % at minute 117.5 % at minute 137.3 % at minute 157.8 % at minute 177.6 % at minute 197.3 % at minute 217.1 % at minute 228 % at minute 2412.3 % at minute 2614.4 % at minute 2812.1 % at minute 3013.8 % at minute 3212.1 % at minute 3412.5 % at minute 3613.2 % at minute 3712.1 % at minute 3912.7 % at minute 4111.9 % at minute 4312.4 % at minute 4511.2 % at minute 4711.8 % at minute 499 % at minute 517.9 % at minute 528.1 % at minute 547.8 % at minute 567.9 % at minute 587.3 % at minute 607.3060 min
Policy keys in Redis bounded: two per simulated player, over 59.8 minutes
02,5005,000666 keys at minute 04,000 keys at minute 24,000 keys at minute 44,000 keys at minute 64,000 keys at minute 74,000 keys at minute 94,000 keys at minute 114,000 keys at minute 134,000 keys at minute 154,000 keys at minute 174,000 keys at minute 194,000 keys at minute 214,000 keys at minute 224,000 keys at minute 244,000 keys at minute 264,000 keys at minute 284,000 keys at minute 304,000 keys at minute 324,000 keys at minute 344,000 keys at minute 364,000 keys at minute 374,000 keys at minute 394,000 keys at minute 414,000 keys at minute 434,000 keys at minute 454,000 keys at minute 474,000 keys at minute 494,000 keys at minute 514,000 keys at minute 524,000 keys at minute 544,000 keys at minute 564,000 keys at minute 584,000 keys at minute 604,000060 min
Show the numbers as a table
MeasureValue
Calls in total359,763 (287,870 succeeded, 71,892 denied by policy or the backend, 1 failed)
Latency p50, p95, p99 and the slowest call1.87, 4.45, 6.55 and 202.09 ms
Gateway memory, first and last sample11 and 17.8 MiB (peak 18.9)
Gateway CPU7.1 to 14.4 percent of one core
Redis policy keys666 at the start, 4,000 at the end (two per simulated player)
Postgres sessions7 at the start, 14 at the end. This is the gateway's pool filling towards its cap of 8, plus Postgres's own background processes. It was level for the second half of the run.
Readiness failures0 in 97 samples

Measured on Darwin arm64, Docker Compose, one gateway, Redis, Postgres and a fake backend on the same machine, on 2026-11-19. It is a single machine with a fake backend that answers instantly, so the figures show what the gateway adds (policy, validation, signing, audit and the Redis and Postgres round trips), not what your game's own backend will cost. 71,892 calls were denied on purpose by the demo's limits and the fake backend, and are not failures. Repeat it yourself withscripts/soak.sh, described in the runbook.

The batching writer is not faster at this rate. It matters at higher rates and with a slower database, where a call no longer waits for an INSERT. A crash can lose the events that are still queued.