Files
..
2024-03-27 17:13:03 -07:00
2024-03-27 17:13:03 -07:00
2024-03-27 17:13:03 -07:00
2024-03-27 17:13:03 -07:00
2024-04-07 10:09:20 -07:00
2024-04-07 10:09:20 -07:00
2024-03-27 17:13:03 -07:00

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.