This is a Next.js app for benchmarking multiple Ethereum RPC APIs on several common endpoints.
- Clone the repository
- Install the dependencies
- Update the
/config/rpc-urls.jsonfile with your RPC URLs - Run the development server
npm install
npm run devSet BENCHMARK_WORKERS to control the maximum number of concurrent RPC
requests. It must be a positive integer and defaults to 4.
Set BENCHMARK_TIMEOUT_MS to control the timeout for each RPC request. It must
be between 1 and 60000 milliseconds and defaults to 60000.
Set BENCHMARK_RESPONSE_MAX_BYTES to reject unexpectedly large RPC responses.
It must be a positive integer and defaults to 67108864 (64 MiB). Large block,
receipt, log, and trace responses run sequentially to limit peak memory usage.
BENCHMARK_INTERVAL_MS, BENCHMARK_SAMPLES_MIN, and
BENCHMARK_SAMPLES_MAX must be positive integers. The minimum sample count
must not exceed the maximum sample count.