{"id":26153954,"url":"https://github.com/Cetipoo/solana-rpc-benchmark-tool","last_synced_at":"2025-03-11T08:03:00.405Z","repository":{"id":246311416,"uuid":"806369085","full_name":"Cetipoo/solana-rpc-benchmark-tool","owner":"Cetipoo","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-27T04:17:45.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-27T05:29:02.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cetipoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-27T04:17:15.000Z","updated_at":"2024-06-27T05:29:08.301Z","dependencies_parsed_at":"2024-06-27T05:29:06.190Z","dependency_job_id":"0dd0975a-5968-45d4-92bf-50e3016b2d1d","html_url":"https://github.com/Cetipoo/solana-rpc-benchmark-tool","commit_stats":null,"previous_names":["cetipoo/solana-rpc-benchmark-tool"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cetipoo%2Fsolana-rpc-benchmark-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cetipoo%2Fsolana-rpc-benchmark-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cetipoo%2Fsolana-rpc-benchmark-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cetipoo%2Fsolana-rpc-benchmark-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cetipoo","download_url":"https://codeload.github.com/Cetipoo/solana-rpc-benchmark-tool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242995899,"owners_count":20218828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-11T08:02:09.658Z","updated_at":"2025-03-11T08:03:00.391Z","avatar_url":"https://github.com/Cetipoo.png","language":"TypeScript","funding_links":[],"categories":["Solana Infrastructure and RPC"],"sub_categories":["Notes"],"readme":"# Solana RPC sendTransaction Benchmark\n\nThis repository contains a script designed to evaluate the efficiency of the `sendTransaction` function on a Solana RPC.\n\n## Configuration Parameters\n\n- **`AUTH_KEYPAIR_PATH`**:  \n  Path to the JSON file containing your keypair.\n\n- **`RPC_URL`**:  \n  The RPC URL used to retrieve block and slot information. For consistent results, use the same `RPC_URL` when testing different `SEND_RPC_URL` endpoints.\n\n- **`SEND_RPC_URL`**:  \n  The RPC URL you wish to test. Maintain consistency in other parameters when testing different RPCs to ensure comparable results.\n\n- **`NUM_OF_TRANSACTIONS_PER_ROUND`**:  \n  The number of transactions sent together in each round.\n\n- **`NUM_OF_ROUNDS`**:  \n  The total number of rounds to run during the test.\n\n- **`COMPUTE_UNIT_LIMIT`**:  \n  The compute unit limit set for each transaction.\n\n- **`COMPUTE_UNIT_PRICE`**:  \n  The price per compute unit set for the transactions.\n\n- **`NUM_OF_SPAM_PER_TX`**:  \n  The number of times to send an individual transaction to the same rpc.\n\n## Usage\n\nBefore running the script, ensure that all configuration parameters are set according to your testing requirements. Rename `.env.example` to `.env`, adjust the parameters as needed.\n\nTo execute the script, use the following command:\n\n```bash\nnpm install\nnpm run start\n```\n\nExample output\n```bash\nRound 0: Tx sent: 20, Tx landed: 3, landing rate: 0.15\nAverage slot gap: 8, Min slot gap: 8, Max slot gap: 8\nRound 1: Tx sent: 20, Tx landed: 0, landing rate: 0.00\nAverage slot gap: NaN, Min slot gap: Infinity, Max slot gap: -Infinity\nRound 2: Tx sent: 20, Tx landed: 3, landing rate: 0.15\nAverage slot gap: 16, Min slot gap: 3, Max slot gap: 42\nRound 3: Tx sent: 20, Tx landed: 2, landing rate: 0.10\nAverage slot gap: 38.5, Min slot gap: 37, Max slot gap: 40\nRound 4: Tx sent: 20, Tx landed: 0, landing rate: 0.00\nAverage slot gap: NaN, Min slot gap: Infinity, Max slot gap: -Infinity\n\n\nOverall: Tx sent: 100, Tx landed: 8, landing rate: 0.08\nAverage slot gap: 18.625, Min slot gap: 3, Max slot gap: 42\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCetipoo%2Fsolana-rpc-benchmark-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCetipoo%2Fsolana-rpc-benchmark-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCetipoo%2Fsolana-rpc-benchmark-tool/lists"}