One night of A/B tests: from 6 ms behind reth to faster
TL;DR
An overnight queue of interleaved A/B tests on live mainnet kept three changes. On the same blocks, Cinder was then faster than reth 2.7 by median and by mean.
2026-10-13. Measured on the dedicated server against reth 2.7. The A/B result below is final. The clean 24-hour window with the same code on both instances runs now. This post does not give its result.
Two days ago, Cinder was about 6 ms behind reth 2.7 per block by median (+6.4 ms over 1 063 blocks on 2026-10-11, measured on a test instance). The gap was not the same on all blocks. On blocks under 15 Mgas it was about 0. Above 35 Mgas it was about 10 ms. Each additional Mgas made Cinder’s state root after execution about 0.3 ms longer.
After one night of A/B tests on live mainnet, the same comparison gives median -1.6 ms and mean -3.6 ms (Cinder minus reth, on the same blocks). On the same blocks without the changes it was +6.7 ms by median. This post tells how we got there, what did not work, and what is still not proven.
A note on the words. An A/B test runs the old code (one arm) and the new code (the other arm) on the same blocks. Interleaved means that the two arms alternate block by block in one process. A median is the middle value: half of the blocks are below it. A p99 is the value that 99% of the blocks stay below.
Four attempts that failed
The state root is one hash over the whole state after a block. Each block header carries it, and a client must compute the same value before it can say that the block is valid. Cinder computed it after execution, from the block’s changes. Before this night, we tried four times to move part of that work earlier:
| Attempt | What happened | Per block |
|---|---|---|
| Storage roots during execution, one handover per slot write | The root got shorter, execution got longer | +4.2 ms |
| The same, one handover per transaction | Root -4 ms, execution +6 ms | +1.4 ms (mean +22 ms) |
| The root’s prefetch only for keys the background prefetch did not read | Heavy blocks then read nodes one at a time | worse, root mean 19.8 ms |
| Each transaction’s writes sent to the background prefetch | Root -1 ms, execution +2.5 ms | +3.0 ms |
Each earlier attempt made a block slower.
The lesson was the same each time. Any work that runs on the executing thread, or next to it on the same cores, costs more than it saves. A block executes on one thread, and that thread is the critical path.
The clue: reth’s own metrics
reth 2.7 publishes its own timings. On our server its execution p50 (the median) was 48.2 ms, and its state root after execution p50 was 0.75 ms. Ours was about 10 ms. The reth team’s Reth 2.0 post gives 1 to 2 ms for the final root on mainnet. Execution was about equal in the two clients. The root after execution was the gap.
What reth does, and what we did differently
We read reth’s design in its source and its pull requests. Its executing
thread does almost no root work. After each transaction, a hook sends
the transaction’s state changes to a channel. Other threads hash the
keys, find the missing trie nodes, and update a sparse trie while the
block still executes. The design grew in steps: in v1.2 two tasks did
this work. In v1.11.0
one task replaced them (#21583),
and a sparse trie kept across blocks took the mean newPayload from 42.9
to 32.4 ms. In v2.6, each storage trie went to a job that owns it
(#27156: -8.62% mean
on 300 Mgas test blocks).
reth’s pull requests also show what did not work for it:
- Pre-filling the trie with all keys of the block made blocks 7.55% slower (#27161).
- A lower priority for the execution threads cut the wait for the root
by 42%, but the p50 of
newPayloadgot 7.6% worse (#27193). - Attempts to parallelize the hashing and the extraction of the keys were reverted because they made blocks slower (#20806, #20807).
Other clients take other paths. One computes its commitment after execution, in parallel over the account and storage tries. Another writes that its flat state storage moves the bottleneck to the state root, and that it needs a trie node cache and a warmer to be fast.
Our version keeps reth’s idea and makes the executing side even cheaper:
- A pointer, not a copy. At the first write of each account or slot, the executing thread adds a pointer to a log. It does not copy a map, hash a key or take a lock.
- A coordinator thread reads the log while the block executes. It finds each key’s path in the block’s tries: from the overlay and the node cache first, and through the I/O pool only for the rest.
- One owner per storage trie after execution, as in reth #27156.
- A safe fall back. If a streamed root is wrong or late, the node computes the root on the old path. It never gives a verdict from the stream alone.
The night of tests
The server runs reth 2.7 and two Cinder instances. A mirror sends each Engine API call to all three and logs the time of each node for each block (how the server is set up).
- Interleaved by block parity. A test build runs on the reference instance. Odd blocks go through the new code, even blocks through the old code, in the same process. Both arms see the same minutes and the same load.
- A control instance. A test instance runs the old code on every block. Each block on the reference instance is compared with the same block on the control. (The reference instance has the same SSD model as reth. The control has a slower SSD, found on 2026-10-13.)
- Slots of 2 hours. Each variant ran 2 hours, and the three winners together ran 3 hours. The first 4 minutes after a restart do not count.
- A decision rule, fixed before the run. We keep a change when the 95% bootstrap interval of the median difference does not include 0, and the tails (mean, p99) are not worse.
The surprise in the profile
While the queue ran, a profile of the engine thread found about 20% of
its samples in the kernel, freeing memory. After each block, Cinder
gave its large memory areas back to the operating system. The next block
took them again. The kernel functions in the profile were page freeing
and smp_call_function_many_cond, which sends work from one CPU to the
others. From this we infer that the kernel cleared page tables and sent
TLB flushes to the other cores each time. We did not count the TLB
flushes. That memory cost became the third change of the night.
What we changed
1. A streaming state root, -4.2 ms
The design above. The root after execution went from 10 to 4 ms by median. In its own run of 670 blocks, execution stayed at 49 ms by median: unlike the four earlier attempts, it did not slow the executing thread.
2. A core of its own for the executing thread, -2.3 ms
The executing thread shared cores with the background threads: the prewarm (threads that run the block’s transactions ahead of time to load their data), the prefetch and the writer (the thread that writes finished blocks to the database). Now it runs on a dedicated core. The second hardware thread of that core (its SMT sibling) stays free, and the executing thread has a higher priority (nice -5). The other threads run on the other cores. reth also gives its engine thread the highest priority (#22541), and #27193 above shows the cost of the opposite.
3. Memory kept between blocks, -0.8 ms
The memory now stays with Cinder and is used again: 512 MB for the scratch arena, 64 MB for each other arena. In this A/B, the p99 went from 25 to 17 ms.
Every result of the night
| Variant | Blocks | Median (95% CI) | Mean (95% CI) | Decision |
|---|---|---|---|---|
| Streaming state root | 580 | -4.2 ms (-5.0 to -3.5) | -4.3 ms (-6.1 to -2.4) | kept |
| Executing thread on a core of its own | 579 | -2.3 ms (-3.2 to -1.4) | -2.7 ms (-3.9 to -1.7) | kept |
| Arenas kept between blocks | 576 | -0.8 ms (-1.4 to -0.2) | -0.3 ms (-2.2 to +1.7) | kept |
| Writer at the idle I/O class | 578 | -0.5 ms (-0.9 to +0.2) | -1.3 ms (-3.6 to +1.3) | not kept |
| Prewarm runs that execution passed are stopped | 580 | +1.2 ms (+0.2 to +1.7) | +0.6 ms (-0.4 to +1.7) | not kept |
| The three kept, together | 878 | -8.7 ms (-9.2 to -8.0) | -8.8 ms (-10.0 to -7.6) | kept |
Together, Cinder’s own block total in its log (not the engine_newPayload
time) went from 58 to 50 ms by
median. Execution did not change.
The gap no longer grows with gas
Without the changes, the gap to reth grew with the size of the block. With them, Cinder is faster than reth in every gas class, by median:
The root after execution is where the change shows. It still grows with gas, but at about a third of the rate (0.1 against 0.3 ms per Mgas):
What failed, and why
- The writer at the idle I/O class (-0.5 ms). The p99 was better, but the interval of the median includes 0. By our rule, that is not a result.
- Stopping prewarm runs that execution passed (+1.2 ms). reth’s prewarm skips transactions that execution already passed, and so does the prewarm of another client. For us it made blocks slower. Our inference: Cinder’s second prewarm pass uses those runs to warm the state of later transactions.
- Commits without fsync (2026-10-12, median +0.4 ms, mean +5.7 ms). The kernel merged the writes into a third of the operations. But it wrote them back in larger bursts, and the blocks that met a burst were slow.
- The account trie overlapped with the storage roots (2026-10-12, +0.1 ms, mean 0.0 ms). The thread pool was busy in both steps, so the overlap removed only a short idle tail.
Correctness
The engine fixtures of the execution-spec-tests ran with each streamed root compared with the root of the old path: 21 577 of 21 577 passed, with 22 260 streamed roots, 0 wrong. A fork stress test of 3 773 tests found 0 wrong roots. On the live node, all night: 0 INVALID blocks and 0 fallbacks to the old path.
The evidence
The per-block data of the three changes together is public: ab-2026-10-13.json (878 blocks). Each row has the block number, the arm, the gas, reth’s time, the times of the two Cinder instances, and the reference instance’s execution and root times. It reproduces the numbers above: without the changes, median +6.7 and mean +5.7 ms. With them, median -1.6 and mean -3.6 ms.
What is proven, and what runs now
The A/B proves the change. On the same blocks, under the same load, the three changes make Cinder faster than reth 2.7. Since 2026-10-13 the code with all three changes runs on both Cinder instances. A clean window of about 24 hours on both instances is the v0.9 measurement. v0.9 is not released. We will give the window’s result when it ends.
Update 2026-10-14: the project released v0.9 on 2026-10-13. The result of the full 24 hours is on the Performance page.
What is next
- Hashing during execution. The paths now load during execution, but the hashing still runs after it. Cinder’s root after execution is about 4 to 5 ms by median, against reth’s 0.75 ms.
- Parallel execution. Most of the remaining read wait is for keys that a transaction reaches only after earlier transactions of the same block. A speculative prewarm cannot see them. Parallel execution with conflict detection (#11) can.
- Block-level access lists after Amsterdam. With EIP-7928, each block lists the keys it touches. The client can then load them before execution starts.
- Disk writes. Cinder writes about 4 times more per block than reth 2.7 (61 MB against 15 MB, issue #59). This is the volume of writes, not the size of the database. Almost all of it is page copies of the database (MDBX copy-on-write).
- Later: a different state tree. EIP-7864 (a draft) proposes a binary state tree with a different hash. The root code must stay ready for that change.
The kept and the rejected changes, with their numbers, are on the page Every change, measured. The method is on the Performance page, and the plan is on the roadmap.
Updated 2026-10-23: the +6.4 ms in the first paragraph came from the 1 063-block window of 2026-10-11 on the test instance. That instance has a slower SSD than reth’s (found on 2026-10-13), so the number is not like for like. The like-for-like number from before the changes is the arm of this A/B without them: +6.7 ms by median and +5.7 ms by mean, on the reference instance. The two reth root numbers on this site are from two runs: 0.75 ms is reth’s own metric in this A/B, and 1.6 ms is the run of 150 blocks on 2026-10-10. Every number in this post is now checked against the measurement record.