Files
js/packages/thirdweb/benchmarks/README.md
T
+2 01fd5237f5 Beta (#2356)
Signed-off-by: Joaquim Verges <[email protected]>
Signed-off-by: jxom  <[email protected]>
Signed-off-by: greg <[email protected]>
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
Co-authored-by: jxom <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
Co-authored-by: greg <[email protected]>
Co-authored-by: Winston Yeo <[email protected]>
Co-authored-by: iketw <[email protected]>
Co-authored-by: Winston Yeo <[email protected]>
Co-authored-by: Isaac Dubuque <[email protected]>
2024-03-27 17:13:03 -07:00

1.3 KiB

Comparitive Benchmarks

We aim to compare real-world use-cases of the thirdweb library with other popular libraries in the Ethereum ecosystem.

Bundle size

Imported bundle size to make a basic RPC call:

  • thirdweb: 4.63 KB gzipped
    • import { createThirdwebClient, getRpcClient, defineChain }
  • viem: 3.78 KB gzipped
    • import { createClient, http }
  • ethers: 88 KB gzipped
    • import { getJsonRPCProvider }

Benchmarks

Latest results are from the beta branch on March 20th, 2024.

Running benchmarks

You can run these benchmarks yourself by cloning the repository and running the following commands:

# install dependencies
pnpm i
# cd into the thirdweb package
cd packages/thirdweb
# run the benchmark
pnpm run bench:compare

Please note that you need to have the following prerequisites installed in order to run the benchmarks:

Reporting issues / inconsistencies

Please report any issues or inconsistencies you encounter while running the benchmarks in the issues.