Launch on 01/01/2027Licenses available from 01/01/2027
PreviewThis page documents the release that launches on 01/01/2027. Packages, images and sign-up open then, and details may change before it.
Docs / Guides / Performance and sizing

Performance and sizing

Ready
Summary

Server 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 vCPUsServer CPUSign-ins/sPer vCPUPer dayStart p50 (ms)Start p99 (ms)Push p50 (ms)Push p99 (ms)Memory (GB)PostgreSQL vCPUsHighest sustained (/s)
280%34417230 M7.2819.11930.92.6400
480%65316356 M7.2598.71631.45.2675
678% *90215078 M8.711710.53301.87.8900

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.

Throughput at the operating pointThroughput at the operating pointSign-ins per second at 80% server CPU, by server size. Every sign-in within its latency targets.02004006008001,000sign-ins / s344172 per vCPU400 sustained2 vCPUs80% CPU, interpolated653163 per vCPU675 sustained4 vCPUs80% CPU, interpolated902150 per vCPU900 sustained6 vCPUs78% CPU, measuredthroughput at the operating pointhighest step sustained within targetsTargets: sign-in start p99 ≤ 250 ms, push result p99 ≤ 500 ms. 6 vCPUs: no step reached 80% CPU; the highest sustained step is shown.
Throughput against server vCPUsThroughput against server vCPUsSign-ins per second at the operating point, one server instance, against linear scaling from 2 vCPUs02004006008001,0001,2000246server vCPUssign-ins / slinear344100% of linear65395% of linear90287% of linearoperating pointlinear scaling from 2 vCPUsOperating point: 80% server CPU, interpolated between measured steps; 6 vCPUs at its highest sustained step, 78% CPU.

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.

Push result latency distributionPush result latency distributionFrom the phone sending its signed answer to the relying party receiving the result1101001,000p50p90p99p99.9p99.99maxpercentilems (log)2 vCPUs, 352/s (81% CPU): p50 9.4 ms, p99 193 ms4 vCPUs, 675/s (82% CPU): p50 9.4 ms, p99 187 ms6 vCPUs, 902/s (78% CPU): p50 10.5 ms, p99 330 msEach size at its measured step nearest 80% server CPU; every sample of the step after its first 30 s.
Sign-in start latency distributionSign-in start latency distributionIssueAuthChallenge, from the relying party's call to the server's answer1101001,000p50p90p99p99.9p99.99maxpercentilems (log)2 vCPUs, 352/s (81% CPU): p50 7.4 ms, p99 82 ms4 vCPUs, 675/s (82% CPU): p50 7.7 ms, p99 63 ms6 vCPUs, 902/s (78% CPU): p50 8.7 ms, p99 117 msEach size at its measured step nearest 80% server CPU; every sample of the step after its first 30 s.

The push result p99 stays inside its 500 ms target up to the operating point on every size:

Push result p99 against server CPUPush result p99 against server CPUFrom the phone sending its signed answer to the relying party receiving the result; 99th percentile, each measured step010020030040050060070040%50%60%70%80%90%100%server CPU in usemsoperating range ≤ 80%target 500 ms2 vCPUs4 vCPUs6 vCPUsmeasured stepstep over a targetlinear between steps

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.

Resource use at the operating pointResource use at the operating pointvCPUs busy on the server and on PostgreSQL, and the server's resident memory0246810vCPUs busy1.62.62 vCPUs · 344/sserver memory 0.9 GB3.25.24 vCPUs · 653/sserver memory 1.4 GB4.77.86 vCPUs · 902/sserver memory 1.8 GBserver vCPUsPostgreSQL vCPUsPostgreSQL 16.15: 15 GB shared buffers on a 64 GB VM, about 0.3 GB for connections; database size 27 GB for 3.54M users.

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:

ShapeSign-ins/s at 80% CPUHighest sustained (/s)Against 1 instance on 1 coreAgainst 1 instance on the same cores
1 instance, 1 core2472501.0×
2 instances, 1 core each4234501.71× (86% of linear)97%
1 instance, 2 cores4364501.77× (88% of linear)100%
Throughput against server instancesThroughput against server instancesSign-ins per second at 80% server CPU on one PostgreSQL; laptop cores (Intel i9-11900H), one core = 2 vCPUs0100200300400500sign-ins / s247100% of linear by cores250 sustained1 instance, 1 core80% CPU, interpolated42386% of linear by cores450 sustained2 instances, 1 core each80% CPU, interpolated43688% of linear by cores450 sustained1 instance, 2 cores80% CPU, interpolatedmore instancesthe same cores in one instancehighest step sustainedPostgreSQL 16 on 3 cores of the same laptop with synchronous_commit off, so that the laptop SSD's fsync does not cap the run.

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#

ServerYdentifi server 0.2.0, the published image sha256:d9d36911f67c4e70d3099f6b00ac1ac1c6507962e6c3b5e66e6e29ca51e15282; database pool of 40 connections
Server machineGoogle 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)
DatabasePostgreSQL 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
NetworkOne zone, a private network; every connection mutual TLS 1.3 with hybrid post-quantum key exchange (X25519MLKEM768)
Data3,539,700 users, 4,778,312 enrolled phones (45% Android), 53 relying parties; a 27 GB database
Sign-ins80% 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
Opens on 01/01/2027

Available at launch

Until then, you can try the whole ceremony on your own phone.