Expand description
Benchmark runner and builder.
This module provides the main entry point for creating and running HTTP benchmarks.
Use Benchmark::builder() to configure a benchmark, then call Benchmark::run()
to execute it and get results.
§Examples
use httpress::Benchmark;
use std::time::Duration;
let results = Benchmark::builder()
.url("http://localhost:3000")
.concurrency(50)
.duration(Duration::from_secs(10))
.build()?
.run()
.await?;
results.print();Structs§
- Benchmark
- A configured benchmark ready to run.
- Benchmark
Builder - Builder for configuring and running benchmarks.