Head to https://console.cloud.google.com/bigquery and get some addresses to test.
-- The code checks if the balance is > 0 so make sure to keep eth_balance atleast > 0
SELECT * FROM `bigquery-public-data.crypto_ethereum.balances` WHERE eth_balance > 1000000000000000000 LIMIT 1000Save it to testdata.json
Setup the config.json as follows,
{
"provider1": "https://example-rpc.com",
"provider2": "https://rpc.omnid.space",
}Save it to config.json
- Install Dependencies
npm i
# or
yarn i
# or
pnpm i- Run it
npm bench
# or
yarn bench
# or
pnpm benchnode ./rpc-bench.js bench -c config.json -t testdata.json