Benchmarks for implementations of the ERC115 standard.
- deploy
- mint (not in the specification, but common)
- mintBatch (not in the specification, but common)
- safeTransferFrom
- safeBatchTransferFrom
- setApprovalForAll
- balanceOf
- balanceOfBatch
- isApprovedForAll
How much gas to deploy the contract as is?
Implementation | -- |
---|---|
OpenZeppelin | 1041636 |
Solmate | 1055715 |
How much gas to mint a token?
Implementation | -- |
---|---|
OpenZeppelin | 33972 |
Solmate | 33170 |
How much gas to mint n different tokens?
Implementation | 1 | 5 | 10 |
---|---|---|---|
OpenZeppelin | 35473 | 131195 | 249199 |
Solmate | 36552 | 130616 | 248280 |
How much gas to transfer one token?
Implementation | -- |
---|---|
OpenZeppelin | 38068 |
Solmate | 36926 |
How much gas to transfer n tokens to the same address?
Implementation | 1 | 5 | 10 |
---|---|---|---|
OpenZeppelin | 39831 | 138299 | 259752 |
Solmate | 39907 | 135144 | 254289 |