Expand description
Worker lifecycle traits and unified summary types.
The framework clones a *Work implementor once per worker task.
Shared resources (reqwest::Client, Arc<Pool>, etc.) live in
Self and remain shared across workers through Clone. Per-worker
resources (dedicated connections, local buffers) live in
Self::State and are created by init.
Consumer note: ConsumerWork owns its event loop — the framework
calls ConsumerWork::run once per worker with a ConsumerRecorder
handle for reporting consumed items.
Structs§
- Async
Task Results - Results from an
super::async_task::AsyncTaskBenchmarkrun. - Benchmark
Results - Results from a
super::request::Benchmarkrun. - Benchmark
Summary - Final metrics from one role in a benchmark run.
- Consumer
Recorder - A handle passed to
ConsumerWork::runfor reporting consumed items back to the framework. - Producer
Consumer Results - Results from a
super::producer_consumer::ProducerConsumerBenchmarkrun.
Enums§
- Poll
Result - Result of polling an async task.
- Work
Result - Result of one request/response work unit.
Traits§
- Benchmark
Work - Worker lifecycle for the request/response benchmark pattern.
- Consumer
Work - Worker lifecycle for the consumer side of a producer/consumer benchmark.
- Poll
Work - Worker lifecycle for the poll side of an async-task benchmark.
- Producer
Work - Worker lifecycle for the producer side of a producer/consumer benchmark.
- Submit
Work - Worker lifecycle for the submit side of an async-task benchmark.