Skip to main content

Performance

View as Markdown

This page gives measured numbers for one Dex Server node and what it costs to run.

  • 8,403SYNC Steps per secondEach one waits for its S3 commits.Peak on one c7gd.4xlarge node
  • 10.1kASYNC Steps per secondThe Flow moves on before the commit.Peak on one c7gd.4xlarge node
  • 67.3kRPCs per secondEach RPC reads one Attribute.Peak on one c7gd.4xlarge node
  • 1.3msASYNC Step latency at p50Measured at 1,224 Steps per second.58% of peak on one c7gd.large node

AWS us-west-2, log in S3 Standard, measured on 2026-11-09.

Peak throughput

Each row is one operation at its peak, on a 2-vCPU and a 16-vCPU node. The two panels use different scales.

Peak per second on one node: 10.1k ASYNC Steps and 67.3k RPCs

One Dex Server node, log in S3 Standard, AWS us-west-2, 2026-11-09. Most values are the median throughput of three runs; Flow starts ran once. The 13.8k locking RPC peak ran with a 16,384 RPC limit and 32 connections.

Show the numbers as a table
Operationc7gd.largec7gd.4xlarge
SYNC Steps1,772 per second8,403 per second
ASYNC Steps2,105 per second10.1k per second
Flows started and completed, one Step each1,111 per second5,626 per second
Channel messages that wake a waiting Step · Includes untimed setup460 per second2,278 per second
RPCs that read one Attribute15,392 per second67.3k per second
RPCs that lock and update one Attribute · c7gd.4xlarge: 16,384 RPC limit, 32 connections2,165 per second13.8k per second
Reads of ten 16 KiB Attributes, without a Worker5,941 per second11.3k per second

What the numbers mean

  • A SYNC Step waits for S3. A SYNC Step waits for two log commits: its attempt start and its result. Each commit is one S3 PUT, and one commit can carry the commands of many Flows. In the SYNC peak runs, a commit took 42 to 98 milliseconds on average. Under load, a SYNC Step also waits for its batch, so it needs many concurrent Flows to reach peak throughput.
  • What a Flow adds. At the half-peak load on c7gd.large (96 concurrent clients), a SYNC Step took 105 milliseconds at p50. At that load, five SYNC Steps in a row therefore take about half a second, plus the time of your own code. Agent sessions use SYNC Steps for model calls and tool calls, so each call in a turn waits for its Step's commits.
  • At low load. The benchmark did not measure SYNC Steps at low load. A lightly loaded SYNC Step still waits for its two commits, the start and the result, so a handler that waits for Charge sees about two object-storage writes in a row, plus your own code. Those writes averaged 42 to 98 milliseconds in the SYNC peak runs; at low load, expect your object store's single-write latency. This is an estimate, not a measurement.
  • An ASYNC Step moves on at once. The Flow moves on before the commit, so a Step took 1.3 to 1.6 milliseconds at p50 at the half-peak points. SYNC and ASYNC Steps explains the trade-off.
  • S3 requests follow batches, not Steps. Dex Server groups writes into log batches. In every run at the peak and half-peak points that write the log, a busy node made about 15 to 112 log PUTs per second, on either node size. Points that only read made only the lease renewals of an idle node. What it costs to run prices them.
  • CPU at the peaks. In each peak run, the 2-vCPU node used 92 to 99% of its CPU on average. The 16-vCPU node used 66 to 88% in most peak runs, and 60% in the one SYNC run whose S3 commits averaged 98 milliseconds. Reads of large Attributes on the 16-vCPU node moved about 14.8 Gbps, close to its 15 Gbps network bandwidth.
  • Reads need no Worker. An RPC runs on a Worker. A direct Attribute read goes only to Dex Server.
  • One node's peaks are one cluster's peaks. One active node serves a cluster. Limits covers that capacity, failover, and upgrades.

Latency below the peak

These rows ran at about half of peak throughput. The client count differs by row, and latency grows with it. Each line runs from p50 to p99, and the two panels use different scales.

A SYNC Step waits for S3; an ASYNC Step moves on at once

About half of peak throughput. Latency is in milliseconds, from the run with the median throughput. The client count differs by row, and latency grows with it.

Show the numbers as a table
OperationInstanceThroughputp50 (ms)p99 (ms)
SYNC Stepc7gd.large · 96 clients846 per second105285
SYNC Stepc7gd.4xlarge · 1,024 clients4,527 per second218382
Channel wakec7gd.4xlarge1,400 per second139308
ASYNC Stepc7gd.large1,224 per second1.34.9
ASYNC Stepc7gd.4xlarge4,766 per second1.63.3
RPC that reads one Attributec7gd.large7,501 per second0.50.9
RPC that reads one Attributec7gd.4xlarge35.0k per second0.62.1

The SYNC rows ran with 96 clients on c7gd.large and 1,024 on c7gd.4xlarge. The c7gd.4xlarge row carried about 5.3 times the throughput. So the two SYNC rows show two different loads, not the speed of each node.

The Channel wake latency runs from the publish to the start of the woken Step. A wake commits the publish to object storage, then the end of the wait and the start of the woken Step. The wake throughput also includes untimed setup before each publish, so compare the latency, not wakes per second, with Steps.

What it costs to run

Dex Server needs one instance, an optional standby instance, and object storage. Price the instances and the stored bytes at your provider's rates. The S3 requests follow from the numbers above, at USD 0.005 per 1,000 PUTs. The busy rows count log PUTs:

SetupPUTs per secondPUTs per 30-day monthPUT cost per month
Idle node, lease renewals onlyabout 0.3about 0.78 millionabout USD 4
Busy node, low end of the measured rangeabout 15about 39 millionabout USD 194
Busy node at the high end of the measured range, all monthabout 112about 290 millionabout USD 1,450

For a node that is busy part of the month, weight the idle and busy rates by the time it spends at each.

A worked example for a light load: 1 million orders a month, each a Flow with five SYNC Steps, is 5 million Steps. A SYNC Step stores its start and its result, and each log commit is one PUT. If each start and each result takes its own PUT, the Steps make 10 million PUTs, about USD 50 a month, plus about USD 4 for lease renewals. Under heavier load several commits share a batch, so the cost per Step falls. The monthly total is then:

  • instances: the active node, plus a standby if you run one, at your provider's hourly price;
  • PUTs: the estimate above, or the table's rows for a node that stays busy;
  • stored bytes: the runs kept in the retention window, at your provider's price. The benchmark did not measure stored bytes per Flow. Closed runs are deleted after retention, so storage follows the number of runs in that window.

How the benchmark ran

The numbers on this page were measured on 2026-11-09 in AWS us-west-2:

  • Server: one Dex Server node on a c7gd.large (2 vCPU) or a c7gd.4xlarge (16 vCPU). Its local store was on the instance's NVMe disk. Its log went to S3 Standard in the same Region. The 13.8k peak of RPCs that lock an Attribute on c7gd.4xlarge ran with the in-flight RPC limit raised to 16,384 and 32 client connections.
  • Load: a separate c7g.8xlarge in the same Availability Zone ran the benchmark tool with a Go SDK Worker. Its mean CPU stayed below 38% in every run.
  • Versions: Dex Server (server-zd) v0.1.23 for Steps, Flows, and Channel wakes; v0.1.25 for RPCs and reads.
  • Runs: each point had a 10-second warmup and a 45-second measurement on a new server. Flow start points had a 5-second warmup and a 15-second measurement, and ran once. Most points ran three times. Throughput is the median of the runs, and p50 and p99 come from the run with the median throughput.
  • Load model: a fixed number of concurrent clients, each sending its next request when the last one returns. Latency grows with the client count once the server is busy.

Every run and its settings are in the benchmark results folder.

Reproduce a result

The scripts in benchmark/aws rerun a recorded point on your own AWS account. You need:

  • the AWS CLI v2 and openssl, with a profile that can manage EC2, S3, and IAM;
  • an EC2 key pair in the Region;
  • Linux arm64 builds of dexbench and dex-server-zd, built on Ubuntu 24.04 arm64 to match the hosts.

Launch the shared resources, a server, and a load host in one Availability Zone:

export DEXBENCH_RUN_ID=<run id> DEXBENCH_AWS_PROFILE=<profile> DEXBENCH_AWS_REGION=us-west-2
export DEXBENCH_AZ=us-west-2b DEXBENCH_KEY_NAME=<key pair>
benchmark/aws/launch.sh infra
DEXBENCH_SERVER_INSTANCE_TYPE=c7gd.large benchmark/aws/launch.sh server
DEXBENCH_MARKET=on-demand DEXBENCH_LOAD_INSTANCE_TYPE=c7g.8xlarge benchmark/aws/launch.sh load

Then rerun a point from a recorded result set. The script reads that run's settings from its config.env and points.txt; leave out the scenario and the client count to rerun every point:

benchmark/aws/reproduce.sh benchmark/results/2026-11-09-aws-s3-c7gd-large-v0.1.23/05-final-trials sequential-steps 512

Delete everything when you are done. The instances also shut themselves down after two and a half hours.

benchmark/aws/teardown.sh

Next

  • Limits: capacity, requests that can repeat, release status, and the license.