# zkEVM-benchmarks ### Ethereum transfers: 619 num-bytes batch = 39288 bytes error: OOC keccaks total GAS: 12999000 binaries to process 1 tx. * 2 bin/batch - main * 16 bin/tx + 3 bin/batch - util * 3 bin/tx - rlp * 713 bin/tx + 3 bin/batch - ecrecover * 15 bin/tx - process * 6 bin/tx - touched formula for keccaks: `ceil((112 * ntxs + 1)/136) + 3 * ntxs + 1 + 1` formula for binaries: `ntxs*(16 + 3 + 713 + 15 + 6) + 2 + 3 + 3` Available keccaks (with 2**23 steps) = **2376** Available binaries (with 2**23 steps) = **524288** formula with ntxs = **619** : ceil((112 * ntxs + 1)/136) + 3 * ntxs + 1 + 1 = **2365** kecckas ### ERC20 transfer: 148 num-bytes batch = 25772 bytes error: OOC steps total GAS: 7308000 binaries to process 1 tx = 2392 formula: `ntx*(2384) + 2 + 3 + 3` formula for keccaks: `ceil((174 * ntxs + 1)/136) + 7 * ntxs + 1 + 1` Available keccaks (with 2**23 steps) = **2376** Available binaries (with 2**23 steps) = **524288** formula with ntxs = **109** : ceil((174 * ntxs + 1)/136) + 7 * ntxs + 1 + 1 = **259864** Steps: ntxs = (2**23 - 50) / 56030 = 148 ### ERC20 transferFrom: 78 num-bytes batch = 16068 bytes error: OOC binary total GAS: 3439956 binaries to process 1 tx = 3338 formula: `ntx*(3330) + 2 + 3 + 3` formula for keccaks: `ceil((206 * ntxs + 1)/136) + 12 * ntxs + 1 + 1` Available keccaks (with 2**23 steps) = **2376** Available binaries (with 2**23 steps) = **524288** formula with ntxs = **78** : 78*(3330) + 2 + 3 + 3 = **259748** ntxs = (2**23 - 141) / 78864 = 106 ### UniswapV2 swaps: 64 num-bytes batch = 28419 bytes error: OOC binary total GAS: 3439956 binaries to process 1 tx = 4095 formula: `ntx*(4095) + 2 + 3 + 3` formula for keccaks: `ceil((444 * swaps + 1)/136) + 18 * swaps + 1 + 1` Available keccaks (with 2**23 steps) = **2376** Available binaries (with 2**23 steps) = **524288** formula with ntxs = **64**: 64*(4095) + 2 + 3 + 3 = **262088** ntxs = (2**23 - 230) / 81607 = 102 ### UniswapV2-router: 18 num-bytes batch = 28419 bytes error: OOC binary total GAS: 3439956 binaries to process 1 tx = 13811 formula: `ntx*(13811) + 2 + 3 + 3` formula for keccaks: Available keccaks (with 2**23 steps) = **2376** Available binaries (with 2**23 steps) = **524288** formula with ntxs = **18**: 18*(13811) + 2 + 3 + 3 = **248606** ntxs = (2**23 - 100) / 425238 = 102 ### NFT mints: 78 num-bytes batch = 28419 bytes error: OOC binary total GAS: 3439956 binaries to process 1 tx = 3334 formula: `ntx*(3334) + 2 + 3 + 3` formula for keccaks: `ceil((368 * txs + 1)/136) + 11 * txs + 1 + 1` Available keccaks (with 2**23 steps) = **2376** Available binaries (with 2**23 steps) = **524288** formula with ntxs = **78**: 78*(3334) + 2 + 3 + 3 = **260060** 80462 160877 ntxs = (2**23 - 30) / 80462 = 102 # BENCHMARKS TABLE https://docs.google.com/spreadsheets/d/160u5pWBp7E5RdUilJ15HATk4rlDn35Mi32CCCKppnRw/edit?usp=sharing ROM commit: 2c9227c3a682fbafca7c3e301d195a318727e442