Skip to content

How we measure ​

Why we measure against reth ​

We measure Cinder against reth because reth is a strong, carefully engineered client. We respect the work of its engineers and their engineering approach: open code, careful tests and a modular design. Our comparisons run the two clients on the same machine with the same blocks, and they are measurements, not a criticism of reth.

Resources ​

  • CPU: utime + stime from /proc/PID/stat at the start and the end of the window.
  • Memory: Rss and Anonymous from /proc/PID/smaps_rollup, every 10 seconds.
  • Disk: du of the data directories.

Windows against reth ​

Cinder's newPayload times come from its own log. They start when the block's processing starts and stop when the status is ready. reth's mean comes from its reth_engine_rpc_new_payload_v4 metric: the change of sum and count over the same seconds. Both nodes see the same blocks under the same load.

Each window has a per-block file with the times of each block. The gas, the transaction count and the bundle mark in it come from the body of the measured block, found by its hash. The tool reads the bodies during the window, because the RPC does not give a block that lost a reorg later. The files of the 0.9.5 window and before took these values from the canonical block at the height. Thus at a height where the first block lost a reorg, these values describe the second block. The times in these files are right.

The per-block file also gives the second blocks and the reorgs, from the forkchoice updates in the log of the comparison tool. The tool finds the canonical blocks by the parent hashes down from the final head. For each block that lost, it gives the time of its engine_newPayload. For each reorg, it gives the time of the engine_newPayload of the new head and of the forkchoice update, for reth and for Cinder. A reorg is a forkchoice update whose new head is not a descendant and not an ancestor of the head before. If the tool cannot decide a height, the file lists that height, and the window record gets no reorg cost. The 0.9.5 window has only the engine_newPayload times of the blocks that lost, because the log of that window was not kept.

When a window starts ​

A window starts only when the nodes are warm. After a restart, the caches of the process and the page cache of the operating system are cold, and blocks are slower for some hours. The warm-up record measured this. Its rule for the start of a window:

  • After a reboot of the server, or a power-on with a catch-up: at the earliest 5 hours after the first live block of the reference instance.
  • After a process restart without a reboot, for example a new binary: at the earliest 3 hours after it.
  • In both cases, before the start, the half-hour medians of the lead over reth must be stable for 2 hours.
  • Also in both cases, the half-hour medians of the paired control must be stable for 2 hours (issue #357). The control is the reference instance minus the test instance on the same blocks.

The two Cinder instances get the same blocks at the same time. Thus the load of the hour has almost no effect on their difference, and a cold instance shows in the control. The lead over reth changes with the load and can hide a cold instance. The first part of the 0.9.6 window had a cold reference instance, and the lead did not show it. A control bin is stable when its median is at most 10% of the median of the reference instance away from the level of the last warm window of the same two builds. When both instances restart at the same time, for example at a reboot, the control does not see a cold state. Then the wait and the lead give the start.

The 0.9.5 window and the windows before it had no number for the warm-up. They started some hours after the restart.

A window shows where Cinder stands against reth. It does not decide whether a change is good: the ratio moves with the blocks and the load.

Interleaved A/B ​

The project decides each change with an interleaved A/B on the live node.

  1. A temporary switch sends odd blocks through the old code and even blocks through the new code. The switch never goes into a release.
  2. Both arms see the same minutes, the same load and blocks from the same stream.
  3. For each arm, the project reports the mean, median and p90 of newPayload, and ms per Mgas with its standard error. Blocks under 3 Mgas do not count.
  4. Arms of 75 blocks or more decide.
  5. Every kept change also passes the EEST suites and the unit tests.

ms per Mgas came in because small arms showed block size more than the change.

An example of the result of this method, from the A/B of 2026-10-13: the effect of each change on the median block time, with its 95% interval. Left of 0, the change made blocks faster.

keptrejectedleft of 0 is faster
streaming state root-4.2 ms
executing thread on a core of its own-2.3 ms
arenas kept between blocks-0.8 ms
writer at the idle I/O class-0.5 ms
prewarm runs the executor passed are stopped+1.2 ms
commits without fsync+0.4 ms
transaction writes sent to the prefetch+3.0 ms
account trie overlapped with the storage roots+0.1 ms
Effect per block, median, with the 95% interval. Interleaved A/B on live mainnet, dedicated server, 2026-10-13.

Data: latest.json (latency_ab).

Method v3: the dedicated server ​

Since 2026-10-08:

  1. A mirror. The consensus client drives the nodes through a mirror. It sends each Engine API call to reth first, then copies it to two Cinder instances, and logs each node's time. Every block has reth's time and two Cinder times.
  2. Paired per block. Cinder's time minus reth's time on the same block. The project reports the median and the mean of the difference with a 95% bootstrap interval. Blocks that waited in a queue for more than 1 second (after a restart) do not count.
  3. A/A all the time. The two Cinder instances run the same build except during an experiment. Their difference is the noise of the machine. It changes from hour to hour: for example +3.1 ms by median on 2026-10-11, and +1.2 ms on the blocks without the changes in the A/B of 2026-10-13.
  4. A/B in one process. A test build sends odd blocks through the new code and even blocks through the old code. The other instance is the per-block reference. About 300 blocks per experiment.
  5. Whole builds in turns. For a release with many changes, the test instance runs the old build and the new build in turns, in windows of 30 minutes in an order fixed before the run. The first 10 blocks after each restart do not count. The 0.9.2 A/B used this method: read 0.9.2 against the 0.9.1 code.
  6. One heavy job at a time. No experiment and no background sync shares a disk with a measured node.

Method v2 ​

The method of the desktop. It stops a periodic load from biasing a result.

  1. A/A first. On a new machine, or after a change on the machine, run the same build in both arms for 2 hours. The phase-matched difference of the means must be under 3 ms.
  2. Per-block parity when the variant affects only the block that runs with it.
  3. Hashed slices when the variant carries state between blocks. A hash of the slice number picks the arm of each 25-block slice. The analysis compares the arms inside each phase of the 10-minute cycle (10 buckets of 5 blocks) and gives the buckets equal weight.
  4. Length. At least 2 hours and 250 blocks per arm. Report the mean, the median and a 95% bootstrap interval of the difference.
  5. Windows against reth. At least three 30-minute windows at different hours. Report each one and the median of the ratios.