Skip to content

Commit

Permalink
feat: benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0dot committed Feb 10, 2025
1 parent 972aebc commit 2fe3974
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 12 deletions.
19 changes: 8 additions & 11 deletions site/pages/smart-contracts/choosing-a-smart-account.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@ Beyond that, alchemy's Account Kit offers a simple & clean SDK to provide your u

As a frame of reference, see the deployment benchmarks below:

| | Runtime Deployment gas | UserOp Deployment gas |
| :------------------------- | ---------------------: | --------------------: |
| Alchemy Modular Account v2 | `97772` | `233004` |
| Biconomy Nexus | `210309` | `342381` |
| ZeroDev Kernel v3.1 | `180465` | `338419` |
| Safe v1.4.1 | `289207` | `435486` |
| Alchemy Light Account v2 | `143842` | `266901` |
| Coinbase Smart Wallet | `190525` | `317904` |
| Simple Account | `174219` | `297367` |

See more benchmarks [here!](https://github.com/alchemyplatform/aa-benchmarks/blob/master/README.md)
| | UserOp | Runtime |
| :------------------------- | --------: | --------: |
| Alchemy Modular Account v2 | `233,004` | `97,772` |
| Biconomy Nexus | `342,381` | `210,309` |
| ZeroDev Kernel v3.1 | `338,419` | `180,465` |
| Safe v1.4.1 | `435,486` | `289,207` |
| Coinbase Smart Wallet | `317,904` | `190,525` |
| Simple Account | `297,367` | `174,219` |

## Modular Account V2

Expand Down
56 changes: 56 additions & 0 deletions site/pages/smart-contracts/gas-benchmarks.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
title: Gas Benchmarks
description: See gas benchmarks for multiple popular accounts and how they stack up.
---

# Gas Benchmarks Table

Below is a collection of gas benchmarks resulting from the open-source [aa-benchmarks repository.](https://github.com/alchemyplatform/aa-benchmarks/blob/master/README.md) They're separated into two columns, one for "Runtime" and one for "UserOp."

This is because it's possible to use accounts without going through UserOps via direct calling, allowing for more flexibility in certain edge cases-- however, UserOp gas is by far the most impactful.

Note that these benchmarks are denominated in EVM gas units. For reference, a simple Uniswap swap without smart accounts typically costs in the ballpark of 150000 gas.

## Deployment

| | UserOp | Runtime |
| :------------------------- | --------: | --------: |
| Alchemy Modular Account v2 | `233,004` | `97,772` |
| Biconomy Nexus | `342,381` | `210,309` |
| ZeroDev Kernel v3.1 | `338,419` | `180,465` |
| Safe v1.4.1 | `435,486` | `289,207` |
| Coinbase Smart Wallet | `317,904` | `190,525` |
| Simple Account | `297,367` | `174,219` |

## Native Transfer

| | UserOp | Runtime |
| :------------------------- | --------: | -------: |
| Alchemy Modular Account v2 | `158,725` | `49,021` |
| Biconomy Nexus | `164,351` | `39,685` |
| ZeroDev Kernel v3.1 | `190,912` | `48,615` |
| Safe v1.4.1 | `176,479` | `75,840` |
| Coinbase Smart Wallet | `156,812` | `39,681` |
| Simple Account | `151,045` | `39,381` |

## ERC-20 Transfer

| | UserOp | Runtime |
| :------------------------- | --------: | -------: |
| Alchemy Modular Account v2 | `182,665` | `72,946` |
| Biconomy Nexus | `188,136` | `63,384` |
| ZeroDev Kernel v3.1 | `214,817` | `72,317` |
| Safe v1.4.1 | `200,732` | `99,715` |
| Coinbase Smart Wallet | `181,014` | `63,803` |
| Simple Account | `175,283` | `63,503` |

## Uniswap V3 Swap

| | UserOp | Runtime |
| :------------------------- | --------: | --------: |
| Alchemy Modular Account v2 | `201,790` | `145,956` |
| Biconomy Nexus | `207,286` | `136,403` |
| ZeroDev Kernel v3.1 | `234,378` | `145,355` |
| Safe v1.4.1 | `220,464` | `155,690` |
| Coinbase Smart Wallet | `200,573` | `137,243` |
| Simple Account | `194,829` | `136,943` |
2 changes: 1 addition & 1 deletion site/sidebar/smart-contracts.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2fe3974

Please sign in to comment.