{"repo":"wfxr/rlt","free":true,"listed":false,"github":"https://github.com/wfxr/rlt","clone":"git clone https://github.com/wfxr/rlt.git","description":"A universal load testing framework for Rust, with real-time tui support.","language":"Rust","stars":228,"topics":["benchmark","cli","load-testing","performance","rust","tui"],"license":"MIT","category":"cli-tools","readme_excerpt":"rlt A R ust L oad T esting framework with real-time TUI support. rlt provides a simple way to create load test tools in Rust. It is designed to be a universal load test framework, which means you can use rlt for various services, such as HTTP, gRPC, Thrift, Database, or other customized services. Features - Flexible : Customize the workload with your own logic. - Easy to use : Little boilerplate code, just focus on testing. - Rich Statistics : Collect and display rich statistics. - High Performance : Optimized for performance and resource usage. - Real-time TUI : Monitor testing progress with a powerful real-time TUI. - Baseline Comparison : Save and compare results to track performance changes. Quick Start Run cargo add rlt to add rlt as a dependency to your Cargo.toml : Stateless Benchmark For simple benchmarks without per-worker state, implement the StatelessBenchSuite trait: Stateful Benchmark For benchmarks requiring per-worker state (e.g., HTTP clients, DB connections), implement BenchSuite . The bench cli! macro helps define CLI options: You can also create a separate struct to hold the CLI options for more flexibility. There is an example in examples/http hyper.rs. Finally, create the main function to run the load test using the bench cli run! macro: CLI Reference All benchmarks built with rlt include these CLI options: Core Options Option Short Description -------- ------- ------------- --concurrency -c Number of concurrent workers --iterations -n Stop after N iterat","default_branch":null,"files":null,"tree":[],"storefront":"/r/wfxr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wfxr/rlt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}