1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! # httpress
//!
//! A fast HTTP benchmarking library built in Rust.
//!
//! `httpress` provides a simple yet powerful API for load testing HTTP services. It supports
//! concurrent requests, rate limiting, custom request generation, and hooks for metrics collection.
//!
//! ## Quick Start
//!
//! ```no_run
//! use httpress::{Benchmark, Result};
//! use std::time::Duration;
//!
//! #[tokio::main]
//! async fn main() -> Result<()> {
//! let results = Benchmark::builder()
//! .url("http://localhost:3000")
//! .concurrency(50)
//! .duration(Duration::from_secs(10))
//! .build()?
//! .run()
//! .await?;
//!
//! results.print();
//! Ok(())
//! }
//! ```
//!
//! ## Features
//!
//! - **Simple API**: Builder pattern for easy configuration
//! - **Flexible Rate Control**: Fixed rates or dynamic rate functions
//! - **Custom Request Generation**: Generate requests dynamically per-worker
//! - **Hook System**: Inject custom logic before/after requests
//! - **Detailed Metrics**: Latency percentiles, throughput, status codes
// Re-export main types for library users
pub use ;
pub use ;
pub use ;
pub use BenchmarkResults;