Kludex
uvicorn
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Reduce allocations in response header construction
#2850
Closed
Comparing
optimize-response-header-construction
(
cfc5be3
) with
main
(
9dbb783
)
CodSpeed Performance Gauge
0%
Untouched
24
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Untouched
24 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_connection_close[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
+1%
1.3 ms
1.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_pipelined_requests[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
+1%
1.5 ms
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_simple_post[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_http10[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_keepalive_reuse[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.4 ms
1.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_simple_post[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_pipelined_requests[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
2 ms
2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_chunked_response[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_fragmented_body[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
2.9 ms
2.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_keepalive_reuse[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.7 ms
1.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_connection_close[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_http10[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_ws_handshake[websockets-sansio]
tests/benchmarks/test_ws.py
CodSpeed Performance Gauge
0%
1.6 ms
1.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_chunked_response[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_post_body_receive[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_post_body_receive[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_simple_get[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_large_post[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
2 ms
2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_fragmented_body[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
10.9 ms
10.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_ws_send_text[websockets-sansio]
tests/benchmarks/test_ws.py
CodSpeed Performance Gauge
0%
1.6 ms
1.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_large_post[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.6 ms
1.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_ws_handshake[wsproto]
tests/benchmarks/test_ws.py
CodSpeed Performance Gauge
0%
1.6 ms
1.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_ws_send_text[wsproto]
tests/benchmarks/test_ws.py
CodSpeed Performance Gauge
0%
1.6 ms
1.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bench_simple_get[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
Commits
Click on a commit to change the comparison range
Base
main
9dbb783
-0.19%
Reduce allocations in response header construction
27e125f
18 hours ago
by Kludex
+0.18%
Use keep_alive flag instead of tracking has_close_header separately
cd2f5a5
18 hours ago
by Kludex
+0.23%
Restore has_close_header tracking
cfc5be3
18 hours ago
by Kludex
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs