Skip to main content

Module bench_serve

Module bench_serve 

Source
Expand description

Tokenizer-aware HTTP bench client — emits the canonical schema defined in crates/ferrum-bench-core and gated by docs/bench/PLAYBOOK.md § 7.

Scenarios (PLAYBOOK § 2):

  • Closed-loop--concurrency K, K workers in tight send→wait loop. Headline = throughput. The “capacity knee” measurement.
  • Concurrency sweep--concurrency-sweep 1,4,16,32, runs N closed-loop cells back-to-back to find the knee.
  • Open-loop--request-rate R, Poisson(R) arrivals. The ONLY scenario in which goodput is meaningful (§ 0.4).

Each cell runs --n-repeats independent times; the per-run percentiles are aggregated with mean + sample stddev + Student-t 95% CI half-width. Cells where n_repeats < 3 emit mean only (PLAYBOOK § 0.4 contract).

Structs§

BenchServeCommand

Enums§

BenchHttpConnectionMode
BenchTargetBackend

Functions§

execute