Optimistic vs ZK rollup

An optimistic rollup lets anyone challenge a batch for a set time before a withdrawal is final. A ZK rollup proves each batch, so a withdrawal is final once the proof is posted. Both serve transfers with p99 3.36 s. The 500 withdrawals end at 172,800 s with optimistic, and within 24 hours with ZK.

Play the level

One data key seals many recordsTap or press Space to change how records get a key

Envelope keys · < 1 key service calls/s · limit 10,000/s

Delivered twice, charged onceTap to turn the ID check on or off

13 deliveries · 10 payments applied · 0 charged twice

Case 1

A payments app sends 300 transfers/s and needs p99 below 5 s. At midnight, 500 users withdraw to the main chain. Every withdrawal must be final within 24 hours.

Case 1
Measure Goal Optimistic rollup ZK rollup
p99 latency (Transfers) under 5 s 3.4 s Pass 3.4 s Pass
Error rate (Transfers) under 0.1% 0% Pass 0% Pass
Completion time (Withdrawals) under 86,400 s 172,800 s Fail 1,800.01 s Pass
Lost writes none 0 Pass 0 Pass
Monthly cost 40 USD/mo 40 USD/mo
Level rules none broken Board is not complete Fail Pass
JSON-RPCMobile usersMobile usersLayer 2 cha…1 vCPU · 1 GBLayer 2 cha…1 vCPU · 8 GBMessage bro…1 vCPU · 1 GB
JSON-RPCJSON-RPCMobile usersMobile usersLayer 2 cha…1 vCPU · 1 GBLayer 2 cha…1 vCPU · 8 GBMessage bro…1 vCPU · 1 GB
Optimistic rollup: misses a goal
JSON-RPCMobile usersMobile usersLayer 2 cha…1 vCPU · 1 GBLayer 2 cha…1 vCPU · 8 GBMessage bro…1 vCPU · 1 GB
JSON-RPCJSON-RPCMobile usersMobile usersLayer 2 cha…1 vCPU · 1 GBLayer 2 cha…1 vCPU · 8 GBMessage bro…1 vCPU · 1 GB
ZK rollup: meets the goals