{"id":18674111,"url":"https://github.com/nervosnetwork/ckb-benchmark-tool","last_synced_at":"2025-07-16T11:33:42.826Z","repository":{"id":63967860,"uuid":"183438128","full_name":"nervosnetwork/ckb-benchmark-tool","owner":"nervosnetwork","description":"Benchmark CKB network TPS","archived":false,"fork":false,"pushed_at":"2019-06-01T04:30:36.000Z","size":139,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T11:07:14.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/nervosnetwork.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}},"created_at":"2019-04-25T13:17:21.000Z","updated_at":"2019-06-01T04:30:38.000Z","dependencies_parsed_at":"2023-01-14T16:45:18.150Z","dependency_job_id":null,"html_url":"https://github.com/nervosnetwork/ckb-benchmark-tool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nervosnetwork/ckb-benchmark-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-benchmark-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-benchmark-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-benchmark-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-benchmark-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nervosnetwork","download_url":"https://codeload.github.com/nervosnetwork/ckb-benchmark-tool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-benchmark-tool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265506133,"owners_count":23778662,"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":"2024-11-07T09:17:31.945Z","updated_at":"2025-07-16T11:33:42.791Z","avatar_url":"https://github.com/nervosnetwork.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Benchmark CKB network TPS\n=======\n\n## Setup\n\n```\ngit clone https://github.com/nervosnetwork/ckb-benchmark-tool.git\ncd ckb-benchmark-tool \u0026\u0026 bundle install\n```\n\n## Usage\n\n1, Start a local CKB node.\n\n\n2, Send transactions\n\n```\n# update config.toml\n./bench.rb run config.toml \u003cblock_number\u003e \u003ctxs_count\u003e\n```\n\n1. find cellbases from `block_number`, then prepare a bench of cells\n2. send `txs_count` transactions to node, then wait for committed.\n\n3, Run statistics\n\n```\n./bench.rb stat \u003cfile\u003e\n```\n\nExample:\n\n\u003e testnet is still at early stage, the benchmark result may change frequently\n\n```\nstatistics...\nTotal: 2000\nTotal TPS: 57\n+------------------+---------------------------+---------------------------+---------------------------+---------------------------+-----+\n| type             | avg                       | median                    | fastest 20%               | slowest 20%               | tps |\n+------------------+---------------------------+---------------------------+---------------------------+---------------------------+-----+\n| Proposed at      | 2019-04-27 00:10:53 +0800 | 2019-04-27 00:10:53 +0800 | 2019-04-27 00:10:53 +0800 | 2019-04-27 00:10:53 +0800 | 153 |\n| Committed at     | 2019-04-27 00:11:15 +0800 | 2019-04-27 00:11:15 +0800 | 2019-04-27 00:11:15 +0800 | 2019-04-27 00:11:15 +0800 | 57  |\n| Per tx proposed  | 13.0                      | 13                        | 13.0                      | 13.0                      | 153 |\n| Per tx committed | 35.0                      | 35                        | 35.0                      | 35.0                      | 57  |\n+------------------+---------------------------+---------------------------+---------------------------+---------------------------+-----+\n```\n\n## TODO\n\n- [ ] Wait confirmation blocks\n- [ ] Allow txs timeout\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervosnetwork%2Fckb-benchmark-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnervosnetwork%2Fckb-benchmark-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervosnetwork%2Fckb-benchmark-tool/lists"}