---
title: "Performance"
description: "Measured throughput and latency of one Dex Server node on AWS with S3, what SYNC and ASYNC Steps cost, what it costs to run, and how to repeat a result."
canonical_url: "https://docs.superdurable.io/evaluate-dex/performance/"
source: "docs/content/intro/performance.mdx"
locale: "en"
---

> Index of every page for AI agents: https://docs.superdurable.io/llms.txt

# Performance

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

- **8,403** SYNC Steps per second. Each one waits for its S3 commits. Peak on one c7gd.4xlarge node.
- **10.1k** ASYNC Steps per second. The Flow moves on before the commit. Peak on one c7gd.4xlarge node.
- **67.3k** RPCs per second. Each RPC reads one Attribute. Peak on one c7gd.4xlarge node.
- **1.3 ms** ASYNC Step latency at p50. Measured 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.

> **Diagram**: 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.

| Operation                                                                                | c7gd.large        | c7gd.4xlarge     |
| ---------------------------------------------------------------------------------------- | ----------------- | ---------------- |
| SYNC Steps                                                                               | 1,772 per second  | 8,403 per second |
| ASYNC Steps                                                                              | 2,105 per second  | 10.1k per second |
| Flows started and completed, one Step each                                               | 1,111 per second  | 5,626 per second |
| Channel messages that wake a waiting Step · Includes untimed setup                       | 460 per second    | 2,278 per second |
| RPCs that read one Attribute                                                             | 15,392 per second | 67.3k per second |
| RPCs that lock and update one Attribute · c7gd.4xlarge: 16,384 RPC limit, 32 connections | 2,165 per second  | 13.8k per second |
| Reads of ten 16 KiB Attributes, without a Worker                                         | 5,941 per second  | 11.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](https://docs.superdurable.io/evaluate-dex/correctness-and-expressiveness/advanced-step-guarantees.md#sync-and-async) 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](https://docs.superdurable.io/evaluate-dex/performance.md#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](https://docs.superdurable.io/evaluate-dex/limits.md#capacity-and-availability) 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.

> **Diagram**: 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.

| Operation                    | Instance                     | Throughput       | p50 (ms) | p99 (ms) |
| ---------------------------- | ---------------------------- | ---------------- | -------- | -------- |
| SYNC Step                    | c7gd.large · 96 clients      | 846 per second   | 105      | 285      |
| SYNC Step                    | c7gd.4xlarge · 1,024 clients | 4,527 per second | 218      | 382      |
| Channel wake                 | c7gd.4xlarge                 | 1,400 per second | 139      | 308      |
| ASYNC Step                   | c7gd.large                   | 1,224 per second | 1.3      | 4.9      |
| ASYNC Step                   | c7gd.4xlarge                 | 4,766 per second | 1.6      | 3.3      |
| RPC that reads one Attribute | c7gd.large                   | 7,501 per second | 0.5      | 0.9      |
| RPC that reads one Attribute | c7gd.4xlarge                 | 35.0k per second | 0.6      | 2.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:

| Setup                                                      | PUTs per second | PUTs per 30-day month | PUT cost per month |
| ---------------------------------------------------------- | --------------: | --------------------: | -----------------: |
| Idle node, lease renewals only                             |       about 0.3 |    about 0.78 million |        about USD 4 |
| Busy node, low end of the measured range                   |        about 15 |      about 39 million |      about USD 194 |
| Busy node at the high end of the measured range, all month |       about 112 |     about 290 million |    about 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](https://docs.superdurable.io/production-operations/production-checklist.md#before-you-launch), 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](https://github.com/superdurable/dex/tree/main/benchmark/results).

<a id="reproduce-a-result"></a>

## Reproduce a result

The scripts in [benchmark/aws](https://github.com/superdurable/dex/tree/main/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:

```bash
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:

```bash
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.

```bash
benchmark/aws/teardown.sh
```

<a id="release-status"></a>

<a id="license"></a>

## Next

- [Limits](https://docs.superdurable.io/evaluate-dex/limits.md): capacity, requests that can repeat, release status, and the license.
