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 | 890595 |
Solmate | 755090 |
How much gas to mint a token?
Implementation | -- |
---|---|
OpenZeppelin | 33719 |
Solmate | 33085 |
How much gas to mint n different tokens?
Implementation | 1 | 5 | 10 |
---|---|---|---|
OpenZeppelin | 35716 | 131561 | 249715 |
Solmate | 36911 | 131373 | 249582 |
How much gas to transfer one token?
Implementation | -- |
---|---|
OpenZeppelin | 37994 |
Solmate | 36858 |
How much gas to transfer n tokens to the same address?
Implementation | 1 | 5 | 10 |
---|---|---|---|
OpenZeppelin | 39679 | 138235 | 259747 |
Solmate | 39590 | 134484 | 253223 |