Content pfp
Content
@
0 reply
0 recast
0 reaction

Joaquim Verges pfp
Joaquim Verges
@joaquim
We just ran benchmarks to compare the latest thirdweb@beta library against viem and ethers. Bundle size to make a basic RPC call: 6.1Kb gzipped - 5x lighter than viem - 14x ligther than ethers6 Encode a ERC20 transfer: 3ns (p99) - 3x faster than viem - 15x faster than ethers6 More details in 🧵
4 replies
5 recasts
13 reactions

Joaquim Verges pfp
Joaquim Verges
@joaquim
reading the current block number: - 1.10x faster than viem - 22x faster than ethers6 reading ERC20 balance: - 1.08x faster than viem - 9x faster than ethers6 sending native currency: - 1.82x faster than viem - 4x faster than ethers6 Code: https://github.com/thirdweb-dev/js/tree/beta/packages/thirdweb/benchmarks
0 reply
0 recast
2 reactions

Darryl Yeo 🛠️ pfp
Darryl Yeo 🛠️
@darrylyeo
Impressive! ⚡️
0 reply
0 recast
1 reaction

daws.eth pfp
daws.eth
@daws
Which basic rpc call is this bundle size benchmark? @joaquim
1 reply
0 recast
0 reaction

jns pfp
jns
@jnsdls
It’s 3000ns, but the comparison still holds :)
0 reply
0 recast
0 reaction