Corpus Core Docs

Benchmarks

Summary

With realistic client traffic, a single prover instance serves 30 requests/s in remote mode at a p95 latency of 1.2 s, using about 0.6 cores and 150–250 MB of RAM; capacity scales horizontally with multiple stateless instances behind a load balancer. All figures come from measurements on our production setup in November 2026 with version 3.2.1, which includes first event-loop optimizations; further improvements are planned (see Outlook).

Metric Value
Capacity per prover instance (remote mode) 30 req/s with realistic traffic (plan 25); 8–10 req/s in the worst case (plan 7)
CPU about 20 ms per request with realistic traffic; an instance saturates at about 0.75 cores
RAM per instance 150–250 MB, short peaks up to about 650 MB
memcached per chain 2–4 GB; at 4 GB no evictions in our tests
Requests to EL/beacon nodes per client request about 2.2 with realistic traffic, mainly eth_getProof and eth_createAccessList for eth_call
Response size to the client eth_call about 11 KB, eth_blockNumber 61 bytes to 1.2 KB; 16 KB on average in our realistic mix
Period store, Ethereum mainnet 1.4 GB for about 2 years of history, grows about 0.7 GB/year
Period store, Gnosis 2.9 GB for about 2.8 years of history, grows about 1 GB/year
Kona bridge per OP Stack chain 0.15–0.2 cores, 170–330 MB; Base: about 0.45 cores, 2.5 GB

The load on the prover depends heavily on the client mode: in hybrid mode only a fraction of it reaches the prover.

Architecture

The prover is a stateless service that fetches chain data from the provider's execution and beacon nodes and combines it into proofs; its load is mostly I/O.

[embedded content: Components of a prover deployment for one chain]

  • Prover instances are interchangeable, so the load balancer can distribute requests freely. Each instance runs an event loop for I/O and worker threads for building proofs, and keeps a 100 MB in-memory cache of Merkle tries.
  • memcached caches almost all upstream responses for 24 hours and is shared by all instances of a chain.
  • Period store keeps block roots and headers per sync period for historical proofs; a prover in slave mode syncs it from a master.
  • Kona bridge is needed only for OP Stack chains: it collects sequencer preconfirmations from the peer-to-peer network and hands them to the prover.

Client modes

The verifier in the client can use the prover in three modes; all capacity figures in this document apply to remote mode, the worst case for the prover.

Mode What the prover delivers Load on the prover Load on the provider's RPC/beacon nodes
local nothing none client fetches all data directly
hybrid block header proofs only, via GET very low client fetches execution data directly
remote a complete proof for every RPC request high, see Load behavior indirect, through the prover

In hybrid mode, responses are cacheable by a CDN: permanently for concrete block numbers (immutable), and with a 6 s TTL for latest. The prover also follows the beacon client's event stream and caches every new block ahead of time. Cache misses happen almost only for outdated clients that still need to fetch light client updates. Hybrid mode exists to scale to large request volumes.

Baseline resource usage

Without client load, a prover needs almost no CPU; the largest steady consumer is the Kona bridge for OP Stack chains, especially Base. Values below are 24-hour averages from cAdvisor across our hosts, CPU in cores.

Component CPU avg CPU p95 RAM (RSS)
Prover, L1 chains (Ethereum, Gnosis) 0.01–0.04 up to 0.06 150–250 MB, short peaks up to 650 MB
Prover, L2 chains (OP Stack, Arbitrum) 0.01–0.02 0.03 under 20 MB
memcached 0.01–0.02 0.04 the configured limit
Kona bridge for OP Mainnet, Zora, Ink, Unichain 0.15–0.21 0.24–0.31 170–330 MB
Kona bridge for Base 0.42 0.46 about 2.5 GB

The L1 provers hold a fixed internal proof cache of 100 MB (Merkle tries of receipts and blocks), which accounts for most of their RAM. The Kona bridge joins the OP Stack peer-to-peer network to collect sequencer preconfirmations; it runs once per chain, next to the provers, and does not scale with client load.

Load behavior and capacity

With realistic client traffic, one prover instance served 30-35 requests/s at a p95 latency of 1.2 s using about 0.6 cores; a worst-case mix saturates it at about 10 requests/s. We ran two profiles against one Ethereum mainnet instance in 5-minute stages of fixed request rates:

  • Realistic: the method mix of a public RPC provider (Chainstack statistics, without eth_chainId, which the verifier answers locally): about 55 % eth_call, 13 % eth_getTransactionReceipt, 10 % eth_blockNumber, 7 % eth_getBalance, 5 % each eth_getBlockByNumber and eth_getTransactionByHash, 3 % eth_getLogs. Requests carry the client state and, for 70 % of them, the hash of the block the client already knows (last_block_hash); 80 % target the latest 64 blocks. Measured with v3.2.1, which includes first event-loop optimizations.
  • Worst case: no client state, so a light client bootstrap (about 25 KB) is fetched and attached to every response; a mix dominated by full blocks, receipts and logs; half of the requests target older blocks up to two years back. Measured with v3.1.1.

p95 latency of one Ethereum mainnet prover. Realistic traffic stays near 1 s up to 30 requests/s; the worst case rises earlier.

Profile Target load Achieved p50 latency p99 latency CPU (cores) Upstream requests/s
realistic 10 req/s 9.7 req/s 30 ms 0.9 s 0.16–0.22 18–20
realistic 20 req/s 19.4 req/s 52 ms 1.2 s 0.36–0.41 43–46
realistic 25 req/s 24.3 req/s 57 ms 1.6 s 0.50–0.58 53–56
realistic 30 req/s 29.1 req/s 67 ms 1.6 s 0.61–0.64 69–70
realistic 35 req/s 34.0 req/s 95 ms 7.6 s 0.72–0.78 77–82
realistic 40 req/s 30.6 req/s (overload) 190 ms 21 s up to 0.84 unstable
worst case 2 req/s 1.8 req/s 117 ms 2.1 s about 0.25 9.5
worst case 5 req/s 4.5 req/s 140 ms 2.6 s about 0.55 21
worst case 10 req/s 9.1 req/s 467 ms 5.1 s about 1.0 41
worst case 20 req/s 15.4 req/s (overload) 517 ms 22 s 0.8–1.0 about 45
  • CPU per request: about 20 ms with realistic traffic, 50–100 ms in the worst case. From about 30 requests/s the event loop is often fully busy, so an instance saturates at about 0.75 cores, well before using a full core.
  • Latency per method (realistic, 30 req/s): eth_blockNumber p50 2 ms, p95 82 ms; eth_getBlockByNumber p50 4 ms, p95 95 ms; eth_getLogs p50 38 ms, p95 0.21 s; eth_getTransactionReceipt p50 0.10 s, p95 0.33 s; eth_call p50 83 ms, p95 1.4 s.
  • Response sizes (realistic): eth_call 11 KB, eth_getTransactionReceipt and eth_getBalance 5 KB, eth_getTransactionByHash 3 KB, eth_blockNumber 1.1 KB, eth_getLogs 1–5 KB, eth_getBlockByNumber about 170 KB; 16 KB on average across the mix.
  • Overload: beyond the saturation point requests queue up, latency rises to tens of seconds and the health check eventually restarts the instance. Until load shedding is in place, the instance count should leave headroom (see Deployment).

For planning we use 25 requests/s per instance for realistic traffic and 7 requests/s per instance for the worst case.

Load on the upstream nodes

In remote mode, each client request triggers 2–4 requests to the execution and beacon nodes; memcached absorbs 40–75 % of them, depending on how often clients ask for the same data.

Workload Client load Upstream requests Per client request memcached hit rate Reaching the nodes per client request
Repetitive queries (integration test suite) about 2 req/s 3.6 req/s 1.9 72–75 % about 0.5
Realistic profile (4 GB memcached) 30 req/s 69–70 req/s 2.2–2.4 18–20 % about 1.9
Worst case, widely spread blocks 10 req/s 41 req/s 4.1 39 % about 2.5

With realistic traffic most upstream requests are eth_getProof and eth_createAccessList, both triggered by eth_call; with block-heavy traffic, beacon blocks (/eth/v2/beacon/blocks), beacon headers and eth_getBlockReceipts dominate. The prover received about 155 KB from the nodes per client request with realistic traffic and about 390 KB with block-heavy traffic. Upstream latency stayed at 5–30 ms per request on our nodes.

The low memcached hit rate in the realistic test comes from the test itself: almost every eth_call asked for a different address at the newest block, and each new block creates new cache keys. Real users concentrate on popular contracts and addresses, so we expect a higher hit rate in production.

Independent of client load, each prover also keeps a permanent connection to the beacon event stream, fetches every new block as it arrives, and periodically backfills the period store (see Storage).

Storage

The only persistent storage that grows is the period store, which holds per sync period the block roots and headers needed for historical proofs; it currently takes 1.4 GB for Ethereum mainnet and 2.9 GB for Gnosis.

Chain Sync period length Periods stored History covered Size Per period Growth per year
Ethereum mainnet about 27.3 h 638 about 2 years 1.4 GB about 2.2 MB about 0.7 GB
Gnosis about 11.4 h 2,185 about 2.8 years 2.9 GB about 1.3 MB about 1 GB
  • The store only grows; retention can be capped if historical proofs are needed only for a limited time range.
  • In slave mode (see Deployment) a prover fetches period data from a master on demand, so its local store stays small unless a full sync is configured.
  • The Kona bridge stores preconfirmation payloads on disk but removes them after a TTL, so its storage does not grow.
  • memcached and the prover cache live in RAM only.

We recommend 10–20 GB of disk per chain, which leaves room for several years of growth.

Node requirements

In theory any beacon node that implements the Beacon API completely works, but only a few clients do so in practice; we recommend Lodestar or Nimbus, and Lodestar where clients use the safe or justified block tags.

Beacon (consensus) client

  • A complete and correct Beacon API implementation. Recommended: Lodestar or Nimbus.
  • Proofs for historical_summaries in the beacon state, needed for proofs of blocks older than the current sync committee period. Supported by Lodestar and Nimbus.
  • Proofs from the beacon state for the justified checkpoint. When a client asks for the block tag safe or justified, the prover proves that the block really is that block. Currently only Lodestar offers the required endpoint.
  • Light client API (light_client/bootstrap, light_client/updates).
  • Server-sent event stream for head and finalized_checkpoint, used to cache new blocks ahead of time.

Execution client

  • eth_getProof (EIP-1186) must return state at least back to the latest finalized block.
  • The debug namespace must be enabled; the prover currently relies on it.
  • eth_getBlockReceipts, eth_getLogs, eth_createAccessList and the standard block and transaction methods.
  • For eth_getProof and eth_call on older blocks, the corresponding historical state.

Our ETH Node Checker tests an execution or beacon endpoint and checks whether all RPC and Beacon API requests the prover needs are answered correctly. Several endpoints per client type can be configured as a comma-separated list; the prover balances requests by health and latency, and reports methods a node does not support through its metrics.

Run one prover instance per 25 requests/s of expected peak traffic, at most one per CPU core, behind a load balancer, and share one memcached of 2–4 GB per chain between them. A single instance saturates below one core, so adding cores to one instance does not add capacity.

Target load (remote mode) Instances, realistic traffic Instances, worst case RAM incl. memcached Egress to clients Traffic from nodes
10 req/s 1 2 2.5–4.5 GB about 1.5 Mbit/s about 12 Mbit/s
50 req/s 2–3 7–8 3–6 GB about 6.5 Mbit/s about 60 Mbit/s
100 req/s 4–5 14–16 3–8 GB about 13 Mbit/s about 125 Mbit/s

These are planning values based on 25 requests/s per instance for realistic traffic and 7 for the worst case; the traffic columns assume realistic traffic (worst case: about 8× the egress and 2.5× the node traffic). We recommend at least two instances per chain for redundancy. Add the Kona bridges for OP Stack chains on top (see Baseline resource usage). Placing the provers in the same network as the nodes keeps the upstream traffic local.

Configuration

  • MEMCACHED_HOST: memcached with -m 2048 to -m 4096 and -I 8m, as some cached items exceed memcached's default item size limit of 1 MB.
  • BEACON_EVENTS=true: caches new blocks as soon as the beacon client announces them, so latest queries are served from cache.
  • DATA: a persistent volume for the period store.
  • Slave mode via period_master_url: the prover fetches period store data from a master (we can provide ours) instead of building two years of history itself. Slaves do not generate the ZK proofs for sync committee transitions, so they need no proving key and incur no proving costs.
  • Health check on /health with a generous timeout (for example 10 s and 5 retries). Under overload the endpoint answers late, and a strict check combined with automatic restarts turns a load peak into an outage.

Monitoring

Each prover exposes Prometheus metrics at /metrics; the event-loop idle ratio is the best single signal that an instance is reaching its limit.

Metric What it tells you
colibri_event_loop_idle_ratio Share of time the event loop is idle; near 0 means the instance is saturated
colibri_public_requests_total, colibri_public_errors_total Client requests and errors
colibri_method_requests_total, colibri_method_duration_milliseconds_total, colibri_method_size_bytes_total Requests, total time and response bytes per method; label type separates client (public) from upstream (eth, beacon) calls
colibri_eth_requests_total, colibri_beacon_requests_total and their _cached_total Upstream requests and how many were served from memcached
colibri_server_healthy, colibri_server_ewma_latency_ms Health and latency of each configured node
colibri_method_unsupported_servers Methods a configured node does not support
colibri_process_resident_memory_bytes, colibri_process_cpu_*_seconds_total Memory and CPU of the process
colibri_period_sync_lag_slots How far the period store lags behind the chain head

We also recommend the standard memcached exporter: a steady eviction rate (memcached_items_evicted_total) means memcached is too small.

Outlook

We are working on raising the capacity per instance, so the figures in this document are a conservative baseline rather than a ceiling.

  • Event loop: moving parsing and serialization of large upstream responses from the event loop to worker threads, so that one instance can use more than one core.
  • Load shedding: answering with HTTP 503 above a configurable number of open requests, so that the load balancer moves traffic to another instance instead of queueing it.
  • Latency metrics: histograms per method, so p95 and p99 latency can be monitored directly.

We will share updated measurements once these changes are released.