Skip to content

Latest commit

 

History

History
611 lines (486 loc) · 46.5 KB

README.md

File metadata and controls

611 lines (486 loc) · 46.5 KB

AA Benchmarks

A comprehensive benchmark for smart contract accounts that support account abstraction (ERC-4337), built on Hardhat for accurate, transaction-based, fee measurements (see Methodology) and for use of existing TypeScript utilities around fee calculations. This work was inspired by ZeroDev's work on aa-benchmark, which is built on Foundry.

Methodology

This tool seeks to measure the cost of the entire transaction landed on-chain for each action, including associated L1 fees. As smart accounts are expected to proliferate on L2s, it's important to consider L1 fees (measured as a function of the RLP-encoded signed transaction and the blob gas market) on top of L2 execution costs. L1 fees can impact the cost of transactions on L2s, so optimizing the size of calldata is important.

The L1 fee calculations are done following the formula and constants specified in Optimism Ecotone.

There are two different categories of benchmarks measured in this test: User Operation and Runtime.

  • User Operation: Measuring the cost of user operations are tricky because each bundler may calculate pre-verification gas differently and the costs may differ based on the number of user operations in the bundle. In this test, the on-chain cost for a bundler to execute the user operation in a bundle of size 1 is measured, to present a lower-bound fee required for the user operation to land in an exclusive bundle. In other words, fees are calculated based on the transaction receipt and the serialized signed EIP-1559 transaction for entryPoint.handleUserOp([userOp]). As multi-user-op bundles become more prevalent, we can expect actual fees to undercut the data presented here.
  • Runtime: Runtime transactions are defined as those performed outside of the user operation flow, with the owner key interacting directly with the account factory or account, akin to the way you might use MetaMask today to interact directly with smart contracts. Support for runtime transactions also enable contracts to interact directly with your smart account. For this flow, fees are calculated based on the transaction's receipt and the serialized signed EIP-1559 transaction.

Results

These numbers are derived from local simulations with fixed inputs (see Run benchmark below to try different inputs) and actual on-chain numbers may differ.

⛽️ Benchmarks for other networks

Ethereum Mainnet | Arbitrum Mainnet | Polygon Mainnet | Optimism Mainnet | Base Mainnet | Zora Mainnet


Optimism Mainnet

Run parameters

Parameter 2024-05-14 (latest) 2024-03-31 (high blob fees)
Gas price (gwei) 0.061023704 0.060233618
L1 base fee (gwei) 3.578904748 24.05
L1 base fee scalar 1368 1368
Blob base fee (wei) 1 46930000000
Blob base fee scalar 810949 810949
ETH price (USD) $2948.6 -

User Operation: Account creation

Total fee (USD)
2024-05-14 (latest) 2024-03-31 (high blob fees)
Modular Account $0.1546 $0.2095
Biconomy v2 $0.0595 $0.1242
Kernel v2.1 $0.0535 $0.1200
Safe $0.0785 $0.1595
Simple Account $0.0536 $0.1066
Light Account $0.0560 $0.1106
Light Account v2 $0.0481 $0.1007
Multi-Owner Light Account $0.0528 $0.1052
Coinbase Smart Wallet $0.0573 $0.1202
Details
2024-05-14 (latest)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 858351 0.000052380 8020 0.000000039 0.000052419 $0.1546
Biconomy v2 329947 0.000020135 9224 0.000000045 0.000020180 $0.0595
Kernel v2.1 296301 0.000018081 9472 0.000000046 0.000018128 $0.0535
Safe 435486 0.000026575 11552 0.000000057 0.000026632 $0.0785
Simple Account 297367 0.000018146 7568 0.000000037 0.000018183 $0.0536
Light Account 310532 0.000018950 7800 0.000000038 0.000018988 $0.0560
Light Account v2 266901 0.000016287 7496 0.000000037 0.000016324 $0.0481
Multi-Owner Light Account 292822 0.000017869 7484 0.000000037 0.000017906 $0.0528
Coinbase Smart Wallet 317904 0.000019400 8964 0.000000044 0.000019444 $0.0573
2024-03-31 (high blob fees)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 858351 0.000051702 8020 0.000019340 0.000071042 $0.2095
Biconomy v2 329947 0.000019874 9224 0.000022244 0.000042118 $0.1242
Kernel v2.1 296301 0.000017847 9472 0.000022842 0.000040689 $0.1200
Safe 435486 0.000026231 11552 0.000027858 0.000054089 $0.1595
Simple Account 297367 0.000017911 7568 0.000018250 0.000036162 $0.1066
Light Account 310532 0.000018704 7800 0.000018810 0.000037514 $0.1106
Light Account v2 266901 0.000016076 7496 0.000018077 0.000034153 $0.1007
Multi-Owner Light Account 292822 0.000017638 7484 0.000018048 0.000035686 $0.1052
Coinbase Smart Wallet 317904 0.000019149 8964 0.000021617 0.000040765 $0.1202

User Operation: Native transfer

Total fee (USD)
2024-05-14 (latest) 2024-03-31 (high blob fees)
Modular Account $0.0298 $0.0809
Biconomy v2 $0.0292 $0.0846
Kernel v2.1 $0.0295 $0.0816
Safe $0.0319 $0.0844
Simple Account $0.0273 $0.0761
Light Account $0.0276 $0.0787
Light Account v2 $0.0273 $0.0762
Multi-Owner Light Account $0.0273 $0.0762
Coinbase Smart Wallet $0.0283 $0.0833
Details
2024-05-14 (latest)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 165100 0.000010075 7248 0.000000035 0.000010110 $0.0298
Biconomy v2 161912 0.000009880 7848 0.000000038 0.000009919 $0.0292
Kernel v2.1 163398 0.000009971 7388 0.000000036 0.000010007 $0.0295
Safe 176479 0.000010769 7460 0.000000037 0.000010806 $0.0319
Simple Account 151045 0.000009217 6932 0.000000034 0.000009251 $0.0273
Light Account 152880 0.000009329 7248 0.000000035 0.000009365 $0.0276
Light Account v2 151040 0.000009217 6944 0.000000034 0.000009251 $0.0273
Multi-Owner Light Account 151148 0.000009224 6944 0.000000034 0.000009258 $0.0273
Coinbase Smart Wallet 156812 0.000009569 7796 0.000000038 0.000009607 $0.0283
2024-03-31 (high blob fees)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 165100 0.000009945 7248 0.000017479 0.000027423 $0.0809
Biconomy v2 161912 0.000009753 7848 0.000018926 0.000028678 $0.0846
Kernel v2.1 163398 0.000009842 7388 0.000017816 0.000027658 $0.0816
Safe 176479 0.000010630 7460 0.000017990 0.000028620 $0.0844
Simple Account 151045 0.000009098 6932 0.000016717 0.000025815 $0.0761
Light Account 152880 0.000009209 7248 0.000017479 0.000026687 $0.0787
Light Account v2 151040 0.000009098 6944 0.000016746 0.000025843 $0.0762
Multi-Owner Light Account 151148 0.000009104 6944 0.000016746 0.000025850 $0.0762
Coinbase Smart Wallet 156812 0.000009445 7796 0.000018800 0.000028246 $0.0833

User Operation: ERC-20 transfer

Total fee (USD)
2024-05-14 (latest) 2024-03-31 (high blob fees)
Modular Account $0.0342 $0.0900
Biconomy v2 $0.0336 $0.0937
Kernel v2.1 $0.0339 $0.0906
Safe $0.0362 $0.0934
Simple Account $0.0316 $0.0853
Light Account $0.0320 $0.0877
Light Account v2 $0.0316 $0.0853
Multi-Owner Light Account $0.0317 $0.0853
Coinbase Smart Wallet $0.0327 $0.0923
Details
2024-05-14 (latest)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 189487 0.000011563 7920 0.000000039 0.000011602 $0.0342
Biconomy v2 185868 0.000011342 8532 0.000000042 0.000011384 $0.0336
Kernel v2.1 187609 0.000011449 8060 0.000000039 0.000011488 $0.0339
Safe 200732 0.000012249 8120 0.000000040 0.000012289 $0.0362
Simple Account 175283 0.000010696 7616 0.000000037 0.000010734 $0.0316
Light Account 177013 0.000010802 7908 0.000000039 0.000010841 $0.0320
Light Account v2 175186 0.000010690 7616 0.000000037 0.000010728 $0.0316
Multi-Owner Light Account 175294 0.000010697 7616 0.000000037 0.000010734 $0.0317
Coinbase Smart Wallet 181014 0.000011046 8456 0.000000041 0.000011088 $0.0327
2024-03-31 (high blob fees)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 189487 0.000011413 7920 0.000019099 0.000030513 $0.0900
Biconomy v2 185868 0.000011196 8532 0.000020575 0.000031771 $0.0937
Kernel v2.1 187609 0.000011300 8060 0.000019437 0.000030737 $0.0906
Safe 200732 0.000012091 8120 0.000019582 0.000031672 $0.0934
Simple Account 175283 0.000010558 7616 0.000018366 0.000028924 $0.0853
Light Account 177013 0.000010662 7908 0.000019070 0.000029732 $0.0877
Light Account v2 175186 0.000010552 7616 0.000018366 0.000028918 $0.0853
Multi-Owner Light Account 175294 0.000010559 7616 0.000018366 0.000028925 $0.0853
Coinbase Smart Wallet 181014 0.000010903 8456 0.000020392 0.000031295 $0.0923

User Operation: Uniswap V3 ERC-20 swap

Total fee (USD)
2024-05-14 (latest) 2024-03-31 (high blob fees)
Modular Account $0.0377 $0.1032
Biconomy v2 $0.0370 $0.1068
Kernel v2.1 $0.0374 $0.1038
Safe $0.0398 $0.1067
Simple Account $0.0352 $0.0986
Light Account $0.0354 $0.1010
Light Account v2 $0.0351 $0.0985
Multi-Owner Light Account $0.0351 $0.0983
Coinbase Smart Wallet $0.0362 $0.1056
Details
2024-05-14 (latest)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 208682 0.000012735 9300 0.000000046 0.000012780 $0.0377
Biconomy v2 205018 0.000012511 9900 0.000000048 0.000012559 $0.0370
Kernel v2.1 207241 0.000012647 9428 0.000000046 0.000012693 $0.0374
Safe 220464 0.000013454 9500 0.000000047 0.000013500 $0.0398
Simple Account 194829 0.000011889 8996 0.000000044 0.000011933 $0.0352
Light Account 196151 0.000011970 9300 0.000000046 0.000012015 $0.0354
Light Account v2 194311 0.000011858 8996 0.000000044 0.000011902 $0.0351
Multi-Owner Light Account 194407 0.000011863 8972 0.000000044 0.000011907 $0.0351
Coinbase Smart Wallet 200573 0.000012240 9836 0.000000048 0.000012288 $0.0362
2024-03-31 (high blob fees)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 208682 0.000012570 9300 0.000022427 0.000034997 $0.1032
Biconomy v2 205018 0.000012349 9900 0.000023874 0.000036223 $0.1068
Kernel v2.1 207241 0.000012483 9428 0.000022736 0.000035219 $0.1038
Safe 220464 0.000013279 9500 0.000022909 0.000036189 $0.1067
Simple Account 194829 0.000011735 8996 0.000021694 0.000033429 $0.0986
Light Account 196151 0.000011815 9300 0.000022427 0.000034242 $0.1010
Light Account v2 194311 0.000011704 8996 0.000021694 0.000033398 $0.0985
Multi-Owner Light Account 194407 0.000011710 8972 0.000021636 0.000033346 $0.0983
Coinbase Smart Wallet 200573 0.000012081 9836 0.000023720 0.000035801 $0.1056

User Operation: Session key creation

Total fee (USD)
2024-05-14 (latest) 2024-03-31 (high blob fees)
Modular Account $0.0659 $0.1453
Biconomy v2 $0.0322 $0.0918
Kernel v2.1 $0.0311 $0.0938
Safe Unsupported Unsupported
Simple Account Unsupported Unsupported
Light Account Unsupported Unsupported
Light Account v2 Unsupported Unsupported
Multi-Owner Light Account Unsupported Unsupported
Coinbase Smart Wallet Unsupported Unsupported
Details
2024-05-14 (latest)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 365368 0.000022296 11308 0.000000055 0.000022351 $0.0659
Biconomy v2 178212 0.000010875 8452 0.000000041 0.000010917 $0.0322
Kernel v2.1 172136 0.000010504 8888 0.000000044 0.000010548 $0.0311
Safe - - - - - -
Simple Account - - - - - -
Light Account - - - - - -
Light Account v2 - - - - - -
Multi-Owner Light Account - - - - - -
Coinbase Smart Wallet - - - - - -
2024-03-31 (high blob fees)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 365368 0.000022007 11308 0.000027269 0.000049277 $0.1453
Biconomy v2 178212 0.000010734 8452 0.000020382 0.000031116 $0.0918
Kernel v2.1 172136 0.000010368 8888 0.000021434 0.000031802 $0.0938
Safe - - - - - -
Simple Account - - - - - -
Light Account - - - - - -
Light Account v2 - - - - - -
Multi-Owner Light Account - - - - - -
Coinbase Smart Wallet - - - - - -

User Operation: Session key native transfer

Total fee (USD)
2024-05-14 (latest) 2024-03-31 (high blob fees)
Modular Account $0.0296 $0.0865
Biconomy v2 Unsupported Unsupported
Kernel v2.1 $0.0230 $0.0925
Safe Unsupported Unsupported
Simple Account Unsupported Unsupported
Light Account Unsupported Unsupported
Light Account v2 Unsupported Unsupported
Multi-Owner Light Account Unsupported Unsupported
Coinbase Smart Wallet Unsupported Unsupported
Details
2024-05-14 (latest)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 163716 0.000009991 8072 0.000000040 0.000010030 $0.0296
Biconomy v2 - - - - - -
Kernel v2.1 127202 0.000007762 9828 0.000000048 0.000007810 $0.0230
Safe - - - - - -
Simple Account - - - - - -
Light Account - - - - - -
Light Account v2 - - - - - -
Multi-Owner Light Account - - - - - -
Coinbase Smart Wallet - - - - - -
2024-03-31 (high blob fees)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 163716 0.000009861 8072 0.000019466 0.000029327 $0.0865
Biconomy v2 - - - - - -
Kernel v2.1 127202 0.000007662 9828 0.000023700 0.000031362 $0.0925
Safe - - - - - -
Simple Account - - - - - -
Light Account - - - - - -
Light Account v2 - - - - - -
Multi-Owner Light Account - - - - - -
Coinbase Smart Wallet - - - - - -

User Operation: Session key ERC-20 transfer

Total fee (USD)
2024-05-14 (latest) 2024-03-31 (high blob fees)
Modular Account $0.0352 $0.0966
Biconomy v2 $0.0266 $0.1068
Kernel v2.1 $0.0277 $0.1040
Safe Unsupported Unsupported
Simple Account Unsupported Unsupported
Light Account Unsupported Unsupported
Light Account v2 Unsupported Unsupported
Multi-Owner Light Account Unsupported Unsupported
Coinbase Smart Wallet Unsupported Unsupported
Details
2024-05-14 (latest)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 194942 0.000011896 8720 0.000000043 0.000011939 $0.0352
Biconomy v2 147023 0.000008972 11348 0.000000056 0.000009027 $0.0266
Kernel v2.1 153240 0.000009351 10804 0.000000053 0.000009404 $0.0277
Safe - - - - - -
Simple Account - - - - - -
Light Account - - - - - -
Light Account v2 - - - - - -
Multi-Owner Light Account - - - - - -
Coinbase Smart Wallet - - - - - -
2024-03-31 (high blob fees)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 194942 0.000011742 8720 0.000021028 0.000032770 $0.0966
Biconomy v2 147023 0.000008856 11348 0.000027366 0.000036222 $0.1068
Kernel v2.1 153240 0.000009230 10804 0.000026054 0.000035284 $0.1040
Safe - - - - - -
Simple Account - - - - - -
Light Account - - - - - -
Light Account v2 - - - - - -
Multi-Owner Light Account - - - - - -
Coinbase Smart Wallet - - - - - -

Runtime: Account creation

Total fee (USD)
2024-05-14 (latest) 2024-03-31 (high blob fees)
Modular Account $0.1305 $0.1470
Biconomy v2 $0.0356 $0.0574
Kernel v2.1 $0.0295 $0.0567
Safe $0.0521 $0.0932
Simple Account $0.0314 $0.0478
Light Account $0.0334 $0.0493
Light Account v2 $0.0259 $0.0418
Multi-Owner Light Account $0.0306 $0.0465
Coinbase Smart Wallet $0.0343 $0.0548
Details
2024-05-14 (latest)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 725323 0.000044262 2556 0.000000013 0.000044274 $0.1305
Biconomy v2 197473 0.000012051 3140 0.000000015 0.000012066 $0.0356
Kernel v2.1 163890 0.000010001 3876 0.000000019 0.000010020 $0.0295
Safe 289207 0.000017648 5884 0.000000029 0.000017677 $0.0521
Simple Account 174219 0.000010631 2372 0.000000012 0.000010643 $0.0314
Light Account 185267 0.000011306 2312 0.000000011 0.000011317 $0.0334
Light Account v2 143842 0.000008778 2288 0.000000011 0.000008789 $0.0259
Multi-Owner Light Account 169655 0.000010353 2300 0.000000011 0.000010364 $0.0306
Coinbase Smart Wallet 190525 0.000011627 2948 0.000000014 0.000011641 $0.0343
2024-03-31 (high blob fees)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 725323 0.000043689 2556 0.000006164 0.000049853 $0.1470
Biconomy v2 197473 0.000011895 3140 0.000007572 0.000019467 $0.0574
Kernel v2.1 163890 0.000009872 3876 0.000009347 0.000019219 $0.0567
Safe 289207 0.000017420 5884 0.000014189 0.000031609 $0.0932
Simple Account 174219 0.000010494 2372 0.000005720 0.000016214 $0.0478
Light Account 185267 0.000011159 2312 0.000005575 0.000016735 $0.0493
Light Account v2 143842 0.000008664 2288 0.000005518 0.000014182 $0.0418
Multi-Owner Light Account 169655 0.000010219 2300 0.000005546 0.000015765 $0.0465
Coinbase Smart Wallet 190525 0.000011476 2948 0.000007109 0.000018585 $0.0548

Runtime: Native transfer

Total fee (USD)
2024-05-14 (latest) 2024-03-31 (high blob fees)
Modular Account $0.0091 $0.0282
Biconomy v2 Unsupported Unsupported
Kernel v2.1 $0.0082 $0.0284
Safe $0.0137 $0.0488
Simple Account $0.0071 $0.0263
Light Account $0.0071 $0.0262
Light Account v2 $0.0071 $0.0263
Multi-Owner Light Account $0.0071 $0.0263
Coinbase Smart Wallet $0.0072 $0.0263
Details
2024-05-14 (latest)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 50408 0.000003076 2712 0.000000013 0.000003089 $0.0091
Biconomy v2 - - - - - -
Kernel v2.1 45364 0.000002768 2856 0.000000014 0.000002782 $0.0082
Safe 75840 0.000004628 4968 0.000000024 0.000004652 $0.0137
Simple Account 39381 0.000002403 2712 0.000000013 0.000002416 $0.0071
Light Account 39396 0.000002404 2700 0.000000013 0.000002417 $0.0071
Light Account v2 39368 0.000002402 2712 0.000000013 0.000002416 $0.0071
Multi-Owner Light Account 39463 0.000002408 2712 0.000000013 0.000002421 $0.0071
Coinbase Smart Wallet 39681 0.000002421 2712 0.000000013 0.000002435 $0.0072
2024-03-31 (high blob fees)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 50408 0.000003036 2712 0.000006540 0.000009576 $0.0282
Biconomy v2 - - - - - -
Kernel v2.1 45364 0.000002732 2856 0.000006887 0.000009620 $0.0284
Safe 75840 0.000004568 4968 0.000011980 0.000016549 $0.0488
Simple Account 39381 0.000002372 2712 0.000006540 0.000008912 $0.0263
Light Account 39396 0.000002373 2700 0.000006511 0.000008884 $0.0262
Light Account v2 39368 0.000002371 2712 0.000006540 0.000008911 $0.0263
Multi-Owner Light Account 39463 0.000002377 2712 0.000006540 0.000008917 $0.0263
Coinbase Smart Wallet 39681 0.000002390 2712 0.000006540 0.000008930 $0.0263

Runtime: ERC-20 transfer

Total fee (USD)
2024-05-14 (latest) 2024-03-31 (high blob fees)
Modular Account $0.0135 $0.0374
Biconomy v2 Unsupported Unsupported
Kernel v2.1 $0.0125 $0.0374
Safe $0.0180 $0.0578
Simple Account $0.0115 $0.0354
Light Account $0.0115 $0.0353
Light Account v2 $0.0115 $0.0354
Multi-Owner Light Account $0.0115 $0.0354
Coinbase Smart Wallet $0.0115 $0.0354
Details
2024-05-14 (latest)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 74693 0.000004558 3388 0.000000017 0.000004575 $0.0135
Biconomy v2 - - - - - -
Kernel v2.1 69230 0.000004225 3532 0.000000017 0.000004242 $0.0125
Safe 99715 0.000006085 5640 0.000000028 0.000006113 $0.0180
Simple Account 63503 0.000003875 3388 0.000000017 0.000003892 $0.0115
Light Account 63438 0.000003871 3376 0.000000017 0.000003888 $0.0115
Light Account v2 63410 0.000003870 3388 0.000000017 0.000003886 $0.0115
Multi-Owner Light Account 63505 0.000003875 3388 0.000000017 0.000003892 $0.0115
Coinbase Smart Wallet 63803 0.000003893 3388 0.000000017 0.000003910 $0.0115
2024-03-31 (high blob fees)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 74693 0.000004499 3388 0.000008170 0.000012669 $0.0374
Biconomy v2 - - - - - -
Kernel v2.1 69230 0.000004170 3532 0.000008517 0.000012687 $0.0374
Safe 99715 0.000006006 5640 0.000013601 0.000019607 $0.0578
Simple Account 63503 0.000003825 3388 0.000008170 0.000011995 $0.0354
Light Account 63438 0.000003821 3376 0.000008141 0.000011962 $0.0353
Light Account v2 63410 0.000003819 3388 0.000008170 0.000011990 $0.0354
Multi-Owner Light Account 63505 0.000003825 3388 0.000008170 0.000011995 $0.0354
Coinbase Smart Wallet 63803 0.000003843 3388 0.000008170 0.000012013 $0.0354

Runtime: Uniswap V3 ERC-20 swap

Total fee (USD)
2024-05-14 (latest) 2024-03-31 (high blob fees)
Modular Account $0.0267 $0.0601
Biconomy v2 Unsupported Unsupported
Kernel v2.1 $0.0257 $0.0600
Safe $0.0281 $0.0773
Simple Account $0.0247 $0.0582
Light Account $0.0246 $0.0580
Light Account v2 $0.0246 $0.0580
Multi-Owner Light Account $0.0246 $0.0580
Coinbase Smart Wallet $0.0248 $0.0582
Details
2024-05-14 (latest)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 147781 0.000009018 4760 0.000000023 0.000009041 $0.0267
Biconomy v2 - - - - - -
Kernel v2.1 142287 0.000008683 4888 0.000000024 0.000008707 $0.0257
Safe 155690 0.000009501 6984 0.000000034 0.000009535 $0.0281
Simple Account 136943 0.000008357 4760 0.000000023 0.000008380 $0.0247
Light Account 136457 0.000008327 4748 0.000000023 0.000008350 $0.0246
Light Account v2 136429 0.000008325 4748 0.000000023 0.000008349 $0.0246
Multi-Owner Light Account 136524 0.000008331 4748 0.000000023 0.000008354 $0.0246
Coinbase Smart Wallet 137243 0.000008375 4760 0.000000023 0.000008398 $0.0248
2024-03-31 (high blob fees)
Execution gas Execution fee (ETH) L1 gas L1 fee (ETH) Total fee (ETH) Total fee (USD)
Modular Account 147781 0.000008901 4760 0.000011479 0.000020380 $0.0601
Biconomy v2 - - - - - -
Kernel v2.1 142287 0.000008570 4888 0.000011787 0.000020358 $0.0600
Safe 155690 0.000009378 6984 0.000016842 0.000026220 $0.0773
Simple Account 136943 0.000008249 4760 0.000011479 0.000019727 $0.0582
Light Account 136457 0.000008219 4748 0.000011450 0.000019669 $0.0580
Light Account v2 136429 0.000008218 4748 0.000011450 0.000019667 $0.0580
Multi-Owner Light Account 136524 0.000008223 4748 0.000011450 0.000019673 $0.0580
Coinbase Smart Wallet 137243 0.000008267 4760 0.000011479 0.000019745 $0.0582

Run benchmark

Copy .env.sample to .env and update the values within .env:

cp .env.sample .env

Test running the benchmarks over the supported accounts and see the results in your terminal:

pnpm benchmark

Run the benchmarks and update this file with the new results:

pnpm benchmark:write

Contributing

To add a new smart account to this repo, follow the steps below.

  1. Fork this repo.
  2. Add the account's artifacts under test/artifacts.
  3. Implement the account's fixture and export an object matching the AccountConfig interface. Add this file under test/accounts.
  4. Add your account under test/accounts.ts to include your account in the benchmarks.
  5. Generate the results and write to the README by running pnpm benchmark:write.
  6. Open a PR against this repo.