Cinder

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.

With the three changesWithout themleft of 0: Cinder faster than reth 2.7
median -1.6 msmedian +6.7 ms-30-20-100+10+20+30
Cinder minus reth 2.7 per block (ms). Interleaved A/B of 2026-10-13 on the dedicated server: 878 blocks, half with the three changes and half without, in one process. Bins of 2 ms. The ends hold the tails. Left of 0, Cinder is faster. Record: ab-2026-10-13.json.

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.

keptrejectedleft of 0 is faster
Storage roots during execution, one handover per slot write+4.2 ms
The same, one handover per transactionmean +22 ms+1.4 ms
Transaction writes sent to the background prefetch+3.0 ms
Median effect per block (ms) of three earlier attempts to move state-root work into execution, with the 95% interval. Live mainnet on the dedicated server, 2026-10-11, reth 2.7. Right of 0 is slower. Record: 2026-09-latency.md.

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:

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:

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).

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

keptrejectedleft of 0 is faster
Streaming state rootroot after execution 10 to 4 ms-4.2 ms
Executing thread on its own core-2.3 ms
Arenas kept between blocksp99 25 to 17 ms-0.8 ms
Writer at the idle I/O classthe interval includes 0-0.5 ms
Passed prewarm runs stopped+1.2 ms
The three kept, together878 blocks, 3 hours-8.7 ms
Effect per block (ms) on the reference instance against the unchanged control instance, median with the 95% interval. Live mainnet on the dedicated server, night of 2026-10-12. Left of 0 is faster. Record: 2026-09-latency.md.
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:

With the three changesWithout thembelow 0: Cinder faster than reth 2.7
-1.1-0.20 to 15 Mgas31 / 50 blocks-1.8+5.715 to 25 Mgas91 / 96 blocks-2.2+8.725 to 35 Mgas183 / 174 blocks-0.5+10.435 to 45 Mgas75 / 80 blocks-0.3+10.345 to 60 Mgas59 / 39 blocks0 ms
Median of Cinder minus reth 2.7 per block (ms) per gas class, both arms of the A/B of 2026-10-13, dedicated server. Below 0, Cinder is faster. Under each class: blocks with / without the changes. Record: ab-2026-10-13.json.

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):

With the three changesWithout themlower is better
250 to 15 Mgas31 / 50 blocks4915 to 25 Mgas91 / 96 blocks41125 to 35 Mgas183 / 174 blocks51435 to 45 Mgas75 / 80 blocks71745 to 60 Mgas59 / 39 blocks0 ms
Median state root after execution (ms) on the reference instance, per gas class, both arms of the A/B of 2026-10-13. Mgas is millions of gas, a measure of the work in a block. In this run: 5 against 11 ms over all blocks. Record: ab-2026-10-13.json.

What failed, and why

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

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.