Avatar for the Kludex user
Kludex
uvicorn
BlogDocsChangelog

Eagerly import the ASGI app in the parent process

#2919Merged
Comparing
eager-load-app-in-parent
(
55fbca9
) with
main
(
b224045
)
CodSpeed Performance Gauge
0%
Untouched
24

Benchmarks

24 total
test_bench_fragmented_body[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
+3%
2.3 ms2.2 ms
test_bench_fragmented_body[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
+1%
10.5 ms10.4 ms
test_bench_ws_handshake[wsproto]
tests/benchmarks/test_ws.py
CodSpeed Performance Gauge
+1%
1.2 ms1.2 ms
test_bench_pipelined_requests[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
+1%
1.4 ms1.4 ms
test_bench_keepalive_reuse[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
+1%
1.2 ms1.1 ms
test_bench_chunked_response[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
+1%
950.9 µs946 µs
test_bench_simple_post[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
743.3 µs739.8 µs
test_bench_http10[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
962.3 µs958.6 µs
test_bench_ws_send_text[websockets-sansio]
tests/benchmarks/test_ws.py
CodSpeed Performance Gauge
0%
1.2 ms1.1 ms
test_bench_chunked_response[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
732 µs729.5 µs
test_bench_ws_handshake[websockets-sansio]
tests/benchmarks/test_ws.py
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
test_bench_simple_get[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
877.2 µs874.9 µs
test_bench_large_post[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_bench_keepalive_reuse[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
786.9 µs785 µs
test_bench_ws_send_text[wsproto]
tests/benchmarks/test_ws.py
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
test_bench_post_body_receive[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
972.2 µs970.1 µs
test_bench_pipelined_requests[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
842 µs840.2 µs
test_bench_connection_close[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
733.4 µs731.9 µs
test_bench_connection_close[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
977.9 µs975.9 µs
test_bench_http10[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
725.7 µs724.8 µs
test_bench_large_post[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_bench_simple_post[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
981.9 µs981.2 µs
test_bench_simple_get[h11]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
1 ms1 ms
test_bench_post_body_receive[httptools]
tests/benchmarks/test_http.py
CodSpeed Performance Gauge
0%
738.6 µs738.7 µs

Commits

Click on a commit to change the comparison range
Base
main
b224045
+0.4%
Eagerly import the ASGI app in the parent process
8ef461a
15 hours ago
by Kludex
+11.6%
Fix ruff format
90603a6
15 hours ago
by Kludex
-11.68%
Merge remote-tracking branch 'upstream/main' into eager-load-app-in-parent
a3e465a
15 hours ago
by Kludex
-0.25%
Cover the new uncovered lines
d0c6612
15 hours ago
by Kludex
-0.04%
Move full-coverage pragma to except line
7b6dc53
15 hours ago
by Kludex
+0.25%
Validate-and-discard rather than persisting loaded_app on parent config
49a43e3
14 hours ago
by Kludex
+0.08%
Use Config.load_app() then drop the result instead of inline import
e03a2ad
13 hours ago
by Kludex
+0.1%
Make Config.load_app() return the app instead of mutating self
209e02c
9 hours ago
by Kludex
-0.02%
Address codex review: revert load() idempotency, fix #941 test wording
55fbca9
9 hours ago
by Kludex
© 2026 CodSpeed Technology
Home Terms Privacy Docs