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 | 956352 |
Solmate | 736471 |
How much gas to mint a token?
Implementation | -- |
---|---|
OpenZeppelin | 33655 |
Solmate | 33026 |
How much gas to mint n different tokens?
Implementation | 1 | 5 | 10 |
---|---|---|---|
OpenZeppelin | 35667 | 131598 | 249830 |
Solmate | 36907 | 131491 | 249838 |
How much gas to transfer one token?
Implementation | -- |
---|---|
OpenZeppelin | 37950 |
Solmate | 36834 |
How much gas to transfer n tokens to the same address?
Implementation | 1 | 5 | 10 |
---|---|---|---|
OpenZeppelin | 39561 | 138209 | 259797 |
Solmate | 39545 | 134484 | 253249 |