{"id":28954502,"url":"https://github.com/magicblock-labs/redline","last_synced_at":"2026-07-15T15:33:19.313Z","repository":{"id":299835188,"uuid":"921691231","full_name":"magicblock-labs/redline","owner":"magicblock-labs","description":"REDLINE is a powerful benchmarking tool designed for load testing MagicBlock validators","archived":false,"fork":false,"pushed_at":"2026-01-26T06:09:13.000Z","size":1529,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-26T08:03:59.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/magicblock-labs.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-24T12:36:28.000Z","updated_at":"2026-01-26T06:09:16.000Z","dependencies_parsed_at":"2025-09-19T19:16:45.522Z","dependency_job_id":"d09a9c09-6291-4cac-a8f0-1347ead1c7ea","html_url":"https://github.com/magicblock-labs/redline","commit_stats":null,"previous_names":["magicblock-labs/redline"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/magicblock-labs/redline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicblock-labs%2Fredline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicblock-labs%2Fredline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicblock-labs%2Fredline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicblock-labs%2Fredline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magicblock-labs","download_url":"https://codeload.github.com/magicblock-labs/redline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicblock-labs%2Fredline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35511387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-06-23T19:10:44.876Z","updated_at":"2026-07-15T15:33:19.305Z","avatar_url":"https://github.com/magicblock-labs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](logo.png)\n# REDLINE: A MagicBlock Validator Benchmarking Tool\n\nMeet the **REDLINE**, a high-performance benchmarking tool specifically designed for load-testing MagicBlock validators. REDLINE was developed to analyze and ensure the performance of our validator infrastructure under heavy, real-world conditions. We are sharing it with the community in the hope that it will be a valuable resource for other developers and validator operators.\n\nWith REDLINE, you can simulate high-throughput scenarios, identify performance bottlenecks, and gain a comprehensive understanding of your validator's operational limits. It offers a suite of flexible configuration options and a variety of benchmark modes to rigorously test every aspect of your validator's performance.\n\n\u003e **Note on Compatibility**: While REDLINE is optimized for MagicBlock validators, its RPC-based benchmark modes can be used to test any validator that conforms to the official Solana RPC-API specification.\n\n-----\n\n## Features\n\nHere are some of the key features of REDLINE:\n\n  * **Unified Benchmark Runner**: Run both TPS (Transactions Per Second) and RPS (Requests Per Second) benchmarks, and even mix them together in the same run.\n  * **Multi-threaded Execution**: Simulate realistic, high-load conditions by running multiple benchmark instances in parallel.\n  * **Per-Request Statistics**: Get detailed statistics on the performance of each benchmark mode, including latency and throughput metrics.\n  * **Flexible Benchmark Modes**: Test different aspects of your validator's performance with a variety of built-in benchmark modes.\n  * **Customizable Configuration**: Use a simple TOML file to configure every aspect of the benchmark, from connection settings to workload mix.\n  * **Comprehensive Reporting**: Generate detailed, human-readable reports from your benchmark results, and compare performance between runs.\n  * **Minimal Resource Footprint**: REDLINE is designed to run locally alongside your validator without significantly skewing the results.\n  * **Accurate Measurements**: REDLINE is engineered to provide precise measurements of latencies and throughput for in-depth performance analysis.\n\n-----\n\n## Getting Started\n\nHere’s how to get up and running with REDLINE:\n\n### 1\\. Clone the Repository\n\n```bash\ngit clone https://github.com/magicblock-labs/redline.git\ncd redline\n```\n\n### 2\\. Build the Binaries\n\n```bash\nmake build\n```\n\nThis will build both the `redline` and `redline-assist` binaries in release mode and place them in the `target/release` directory.\n\n### 3\\. Prepare the Benchmark\n\nBefore running a benchmark, you'll need to create and fund the necessary accounts.\n\n```bash\nmake prepare CONFIG=config.example.toml\n```\n\nThis command uses the `redline-assist` tool to get all the on-chain accounts ready for the benchmark based on your configuration file.\n\n### 4\\. Run the Benchmark\n\nNow you're ready to run the benchmark.\n\n```bash\nmake bench CONFIG=config.example.toml\n```\n\nThis will start the benchmark with the parameters specified in your configuration file.\n\n-----\n\n## Usage\n\nREDLINE includes two binaries: `redline` for running the benchmark and `redline-assist` for helper utilities. The `makefile` provides a convenient interface for common operations.\n\n| Command | Description |\n| --- | --- |\n| `make build` | Compiles the `redline` and `redline-assist` binaries in release mode. |\n| `make prepare` | Prepares the environment for a benchmark run by creating and funding the necessary accounts, using the specified `CONFIG` file. |\n| `make bench` | Runs the benchmark with the configuration from the specified `CONFIG` file. Results are saved as a timestamped JSON file in the `runs/` directory. |\n| `make report` | Generates a detailed, human-readable report from the latest benchmark results file. |\n| `make bench-report` | A convenience command that first runs the benchmark and then immediately generates a report. |\n| `make compare` | Compares the results of the two most recent benchmark runs and highlights performance regressions or improvements. You can customize the `SENSITIVITY` of the regression detection (default is 15%). |\n| `make bench-compare`| Runs a new benchmark and then compares its results with the previous run. |\n| `make clean` | Deletes the latest benchmark result file from the `runs/` directory. |\n| `make clean-all` | Deletes the entire `runs/` directory, removing all benchmark result files. |\n\n-----\n\n## Configuration\n\nREDLINE uses a TOML file for configuration. Here's an overview of the available options:\n\n```toml\n# The number of parallel threads to run the benchmark on.\nparallelism = 1\n\n# Number of payers/transaction signers\npayers = 8\n\n# Path to keypairs\nkeypairs = \"keypairs/\"\n\n# The pubkey of the validator (ER) identity, which\n# is used as a target for account delegation\nauthority = \"mAGicPQYBMvcYveUZA5F5UNNwyHvfYh5xkLS2Fr1mev\"\n\n[connection]\n# The URL of the main chain node.\nchain-url = \"http://api.devnet.solana.com\"\n# The URL of the ephemeral node.\nephem-url = \"http://127.0.0.1:8899\"\n# The type of HTTP connection to use.\n# Options: \"http1\" or \"http2\"\nhttp-connection-type = \"http2\"\n# The maximum number of HTTP connections.\nhttp-connections-count = 16\n# The maximum number of WebSocket connections.\nws-connections-count = 16\n\n[benchmark]\n# The total number of iterations.\niterations = 100000\n# The target rate of requests or transactions per second.\nrate = 3000\n# The number of concurrent tasks.\nconcurrency = 64\n# The frequency, in milliseconds, at which account cloning should be triggered.\nclone-frequency-ms = 1000\n# Whether to perform a preflight check for transactions.\npreflight-check = false\n# The number of accounts to use for the benchmark.\naccounts-count = 8\n# The benchmark mode to run.\nmode = { mixed = [\n    { mode = { high-cu-cost = { iters = 23 } }, weight = 50 },\n    { mode = { simple-byte-set = {} }, weight = 29 },\n    { mode = { read-write = {} }, weight = 20 },\n    { mode = { commit = { accounts-per-transaction = 2 } }, weight = 1 },\n] }\n\n[confirmations]\n# Whether to subscribe to account notifications.\nsubscribe-to-accounts = true\n# Whether to subscribe to signature notifications.\nsubscribe-to-signatures = true\n# Whether to use `getSignatureStatuses` for confirmations.\nget-signature-status = false\n# Whether to enforce total synchronization for confirmations.\nenforce-total-sync = true\n\n[data]\n# The encoding for account data.\n# Options: \"base58\", \"base64\", \"base64+zstd\"\naccount-encoding = \"base64+zstd\"\n# The size of the accounts.\n# Options: \"bytes128\", \"bytes512\", \"bytes2048\", \"bytes8192\"\naccount-size = \"bytes128\"\n```\n\n-----\n\n## Conclusion\n\nWe hope REDLINE proves to be a useful tool for testing your validator infrastructure. If you\nhave any questions or feedback, please feel free to open an issue or pull request on our GitHub\nrepository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicblock-labs%2Fredline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagicblock-labs%2Fredline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicblock-labs%2Fredline/lists"}