Skip to content

Commit 08c77b9

Browse files
docs: update gas benchmarks with latest changes (#367)
1 parent 6bb8fcf commit 08c77b9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,11 @@ The following benchmarks are for a single packet transfer without aggregation.
189189
190190
| **Contract** | **Method** | **Description** | **Gas (groth16)** | **Gas (plonk)** |
191191
|:---:|:---:|:---:|:---:|:---:|
192-
| `ICS26Router.sol` | `sendPacket` | Initiating an IBC transfer with an `ERC20`. | ~150,000 | ~150,000 |
193-
| `ICS26Router.sol` | `recvPacket` | Receiving _back_ an `ERC20` token. | ~509,542 | ~592,518 |
194-
| `ICS26Router.sol` | `recvPacket` | Receiving a _new_ Cosmos token for the first time. (Deploying an `ERC20` contract) | ~1,079,133 | ~1,163,441 |
195-
| `ICS26Router.sol` | `ackPacket` | Acknowledging an ICS20 packet. | ~393,224 | ~477,022 |
196-
| `ICS26Router.sol` | `timeoutPacket` | Timing out an ICS20 packet | ~465,360 | ~549,821 |
192+
| `ICS26Router.sol` | `sendPacket` | Initiating an IBC transfer with an `ERC20`. | ~165,000 | ~165,000 |
193+
| `ICS26Router.sol` | `recvPacket` | Receiving _back_ an `ERC20` token. | ~518,643 | ~601,729 |
194+
| `ICS26Router.sol` | `recvPacket` | Receiving a _new_ Cosmos token for the first time. (Deploying an `ERC20` contract) | ~1,087,456 | ~1,171,586 |
195+
| `ICS26Router.sol` | `ackPacket` | Acknowledging an ICS20 packet. | ~393,398 | ~477,221 |
196+
| `ICS26Router.sol` | `timeoutPacket` | Timing out an ICS20 packet | ~466,007 | ~549,322 |
197197
198198
### Aggregated Packet Benchmarks
199199
@@ -202,8 +202,8 @@ Since there is no meaningful difference in gas costs between plonk and groth16 i
202202
203203
| **ICS26Router Method** | **Description** | **Avg Gas (25 packets)** | **Avg Gas (50 packets)** |
204204
|:---:|:---:|:---:|:---:|
205-
| `multicall/recvPacket` | Receiving _back_ an `ERC20` token. | ~170,301 | ~163,748 |
206-
| `multicall/ackPacket` | Acknowledging an ICS20 packet. | ~92,137 | ~86,432 |
205+
| `multicall/recvPacket` | Receiving _back_ an `ERC20` token. | ~178,272 | ~165,240 |
206+
| `multicall/ackPacket` | Acknowledging an ICS20 packet. | ~92,269 | ~86,564 |
207207
208208
Note: These gas benchmarks are with Groth16.
209209

0 commit comments

Comments
 (0)