Skip to main content

Module perf_server

Module perf_server 

Source
Available on crate feature high-perf only.
Expand description

High-performance async-first HTTP/1 server primitives.

Structs§

PerfLimits
Runtime limits for the high-performance server mode.

Functions§

start_high_perf
Starts an async-first accept loop with adaptive backpressure.
start_high_perf_multi_threadhigh-perf-multi-thread
Synchronous entry point that builds a multi-threaded Tokio runtime and runs start_high_perf on it. Use this on multi-core hosts when start_high_perf called from a current_thread runtime is leaving cores idle — bombardier load tests showed sync Server::start outperforming the async path 3× under 256-connection keep-alive purely because the async path was funneling all connections through one OS thread.