Skip to content

Latest commit

 

History

History
73 lines (54 loc) · 1.64 KB

File metadata and controls

73 lines (54 loc) · 1.64 KB

ERC1155 Benchmarks (WIP)

Benchmarks for implementations of the ERC115 standard.

Methods TODO

  • deploy
  • mint (not in the specification, but common)
  • mintBatch (not in the specification, but common)
  • safeTransferFrom
  • safeBatchTransferFrom
  • setApprovalForAll
  • balanceOf
  • balanceOfBatch
  • isApprovedForAll

Deployment

How much gas to deploy the contract as is?

Implementation --
OpenZeppelin 962365
Solmate 735871

mint

How much gas to mint a token?

Implementation --
OpenZeppelin 33707
Solmate 33026

mintBatch

How much gas to mint n different tokens?

Implementation 1 5 10
OpenZeppelin 35719 131858 250350
Solmate 36907 131491 249838

safeTransferFrom

How much gas to transfer one token?

Implementation --
OpenZeppelin 38003
Solmate 36834

safeBatchTransferFrom

How much gas to transfer n tokens to the same address?

Implementation 1 5 10
OpenZeppelin 39614 138468 260316
Solmate 39545 134484 253249