Performance and sizing
ReadyServer 0.2.0 on Google Cloud C4 vCPUs: at 80% server CPU, a 2-vCPU instance sustains 344 sign-ins a second, 30 million a day, and a sign-in’s push result reaches the relying party in 9 ms at the median. CPU rises linearly with load, so a deployment is sized from one figure: about 165 sign-ins a second per vCPU.
Audience: deployers planning capacity.
Sizing a deployment#
- One figure. About 165 sign-ins a second per vCPU, at 80% server CPU: 172 on 2 vCPUs, 163 on 4 and 150 on 6.
- Linear. Server CPU rises linearly with load on every size measured. Twice the vCPUs carry 1.9 times the sign-ins; 3 times the vCPUs, 2.6 times.
- PostgreSQL. At most about 1.6 PostgreSQL vCPUs per server vCPU in use. Plain PostgreSQL 16, with no extension.
- Memory. The server’s resident memory at 80% CPU: 0.9 GB on 2 vCPUs, 1.4 GB on 4 and 1.8 GB on 6.
- Past capacity. The server sheds no load: latency and memory rise until the load falls. An instance is sized for its peak.
Results by server size#
One server instance, at the operating point of 80% server CPU:
| Server vCPUs | Server CPU | Sign-ins/s | Per vCPU | Per day | Start p50 (ms) | Start p99 (ms) | Push p50 (ms) | Push p99 (ms) | Memory (GB) | PostgreSQL vCPUs | Highest sustained (/s) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 80% | 344 | 172 | 30 M | 7.2 | 81 | 9.1 | 193 | 0.9 | 2.6 | 400 |
| 4 | 80% | 653 | 163 | 56 M | 7.2 | 59 | 8.7 | 163 | 1.4 | 5.2 | 675 |
| 6 | 78% * | 902 | 150 | 78 M | 8.7 | 117 | 10.5 | 330 | 1.8 | 7.8 | 900 |
Operating point: 80% server CPU, interpolated between the 2 measured steps around it. * On 6 vCPUs no step reached 80%; the values are those of the highest sustained step, at 78% CPU.
Sustained: a step in which the sign-in start p99 is at most 250 ms and the push result p99 at most 500 ms. Highest sustained: the highest such step.
PostgreSQL vCPUs are an upper bound.
Latency#
- Sign-in start:
IssueAuthChallenge, from the relying party’s request to the server’s answer. - Push result: from the phone sending its signed answer to the relying party receiving the result.
- The person’s own decision time is in neither.
Half of all push results reach the relying party within about 10 ms at the operating point. The distributions below show every percentile, to the slowest sample.
The push result p99 stays inside its 500 ms target up to the operating point on every size:
Resource use#
vCPUs busy on the server and on PostgreSQL, and the server’s resident memory, at the operating point. The PostgreSQL figures are an upper bound.
Several instances#
Server instances share one PostgreSQL, and pass each other the phones’ answers as they arrive. Measured on a laptop, separately from the cloud figures above:
| Shape | Sign-ins/s at 80% CPU | Highest sustained (/s) | Against 1 instance on 1 core | Against 1 instance on the same cores |
|---|---|---|---|---|
| 1 instance, 1 core | 247 | 250 | 1.0× | |
| 2 instances, 1 core each | 423 | 450 | 1.71× (86% of linear) | 97% |
| 1 instance, 2 cores | 436 | 450 | 1.77× (88% of linear) | 100% |
At 450 sign-ins/s the push result p99 was 307 ms on 2 instances and 213 ms on 1 instance with the same cores, both inside the 500 ms target.
Laptop: 11th-generation Intel Core i9-11900H at 2.5 GHz, 8 cores and 16 threads (1 core = 2 vCPUs); PostgreSQL 16 on 3 cores of the same laptop, with synchronous_commit off so that the laptop SSD does not set the limit. The ratios carry over; the laptop’s absolute figures are not comparable with the cloud figures.
Conditions#
| Server | Ydentifi server 0.2.0, the published image sha256:d9d36911f67c4e70d3099f6b00ac1ac1c6507962e6c3b5e66e6e29ca51e15282; database pool of 40 connections |
| Server machine | Google Cloud c4-highcpu-8, Intel Xeon of the Emerald Rapids or Granite Rapids generation; the container limited to 2, 4 or 6 vCPUs (1, 2 or 3 physical cores with their hyperthreads) |
| Database | PostgreSQL 16.15 on Google Cloud c2d-standard-16 (16 vCPUs, 64 GB, AMD EPYC Milan); data and write-ahead log on local NVMe SSD; fsync and synchronous_commit on |
| Network | One zone, a private network; every connection mutual TLS 1.3 with hybrid post-quantum key exchange (X25519MLKEM768) |
| Data | 3,539,700 users, 4,778,312 enrolled phones (45% Android), 53 relying parties; a 27 GB database |
| Sign-ins | 80% push, 10% number match, 5% same phone, 5% location. Each sign-in is the whole ceremony: the relying party’s request, delivery to the phone over its own connection, the person’s decision, the phone’s signed answer, and the result to the relying party; about 5.3 gRPC calls in all |