{"id":15930515,"url":"https://github.com/rjected/reth-bench-visualization","last_synced_at":"2025-03-24T17:32:06.676Z","repository":{"id":242938336,"uuid":"810981119","full_name":"Rjected/reth-bench-visualization","owner":"Rjected","description":"Visualization scripts for the output of `reth-bench`","archived":false,"fork":false,"pushed_at":"2024-06-05T18:43:07.000Z","size":7,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T04:04:19.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rjected.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-06-05T18:01:16.000Z","updated_at":"2025-03-05T08:04:42.000Z","dependencies_parsed_at":"2024-06-05T20:57:26.193Z","dependency_job_id":"c0d894d4-781e-4e05-8f72-33eb02af9a84","html_url":"https://github.com/Rjected/reth-bench-visualization","commit_stats":null,"previous_names":["rjected/reth-bench-visualization"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rjected%2Freth-bench-visualization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rjected%2Freth-bench-visualization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rjected%2Freth-bench-visualization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rjected%2Freth-bench-visualization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rjected","download_url":"https://codeload.github.com/Rjected/reth-bench-visualization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245319074,"owners_count":20595902,"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-10-07T00:42:20.951Z","updated_at":"2025-03-24T17:32:06.382Z","avatar_url":"https://github.com/Rjected.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reth-bench visualization\n\nThis repository contains Python scripts for visualizing benchmark data from the `reth-bench` command.\nEach script takes a CSV file as input and produces graphs that visualize a single benchmark run.\n\n## Scripts\n\n### Gas Usage Per Second\n\nThis plots the gas per second across the entire duration of a benchmark.\nThis accounts for any delays in fetching blocks from a data source, so may be only a rough estimate of block processing throughput.\n\n#### Usage\n\n```bash\npython total_gas_output.py \u003cpath_to_csv_file\u003e\n```\n\n### RPC Latency Comparison\n\nThis script analyzes the latency for two types of RPC calls: `newPayload` and `forkchoiceUpdated`. It plots the latency of each call in the input.\nIt also plots the gas per second, using only the duration of the engine RPC calls as the time taken to process a block.\nThis may be more accurate as it does not include the time taken to fetch blocks from a data source.\n\n#### Usage\n\n```bash\npython combined_latency_output.py \u003cpath_to_csv_file\u003e\n```\n\n## Installation\n\nTo run these scripts, you will need Python, matplotlib, and pandas installed:\n\n```bash\n# Clone the repository\ngit clone https://github.com/rjected/reth-bench-visualization.git\ncd reth-bench-visualization\n\n# venv, activate etc...\n\n# Install dependencies\npip install -r requirements.txt\n\n# Run the scripts\npython total_gas_output.py \u003cpath_to_csv_file\u003e\npython combined_latency_output.py \u003cpath_to_csv_file\u003e\n```\n\n## Data Format\n\n### Gas Usage\n\nThe expected CSV format follows the `TotalGasRow` output of the `reth-bench` command:\n\n```\nblock_number,gas_used,time\n19600001,13831756,341350\n19600002,18131995,1326017\n...\n```\n\n### RPC Latency\n\nThe expected CSV format follows the `CombinedResult` output of the `reth-bench` command:\n\n```\ngas_used,new_payload_latency,fcu_latency,total_latency\n13831756,120259,212107,332367\n18131995,672227,312281,984508\n...\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a pull request or create an issue if you have suggestions or improvements.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjected%2Freth-bench-visualization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjected%2Freth-bench-visualization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjected%2Freth-bench-visualization/lists"}