Skip to content

Benchmarks

All benchmarks run against 10 HTTP libraries on a local ASGI server (uvicorn), 100 rounds each.

Results

Hover over the charts for detailed statistics per library.

Single GET

50 Sequential GETs

50 Concurrent GETs

Key Takeaways

Scenario httpxr vs httpx
Single GET ~1.9× faster
50 Sequential GETs ~2.3× faster
50 Concurrent GETs ~12× faster (GIL-free Rust)

Reproduce locally

uv sync --group dev --group benchmark
uv run pytest benchmarks/test_bench_httpx.py --benchmark-json=benchmarks/pytest_benchmark_results.json
uv run python benchmarks/generate_plots.py