Skip to content

Benchmarks

h2corn delivered 9.1–28× the throughput of the compared servers in the one-worker HTTP/1.1 GET comparison. All serve the same Starlette application over loopback; h2corn uses its profile-guided release wheel.

Connect on h2corn delivered 1.3–2.9× the throughput of grpc.aio across the five direction-resolved gRPC workloads, and 3.0× in the calibration-limited cleartext Duplex run; Download and Upload remained inconclusive on the shared host. These compare complete stacks using common Python handlers and protobuf codecs, not the host server in isolation.

Environment

Python 3.15.1 | Linux 7.3.5 | x86_64 · CPU: AMD Ryzen 9 5950X 16-Core Processor

gunicorn 26.2.0, h11 0.16.0, h2 4.4.1, h2corn 2.0.1, hypercorn 0.18.0, starlette 1.9.0, uvicorn 0.54.0, websockets 17.3.

Results

HTTP/1 GET (1 Worker)

HTTP/1 GET (1 Worker). h2corn 52,978 requests/s p99 5.2ms peak memory (PSS) 61.3 MB, gunicorn 6,199 requests/s p99 20.8ms peak memory (PSS) 41.3 MB, uvicorn 4,570 requests/s p99 31.1ms peak memory (PSS) 27.5 MB, hypercorn 1,939 requests/s p99 88.8ms peak memory (PSS) 52.1 MB.HTTP/1 GET (1 Worker). h2corn 52,978 requests/s p99 5.2ms peak memory (PSS) 61.3 MB, gunicorn 6,199 requests/s p99 20.8ms peak memory (PSS) 41.3 MB, uvicorn 4,570 requests/s p99 31.1ms peak memory (PSS) 27.5 MB, hypercorn 1,939 requests/s p99 88.8ms peak memory (PSS) 52.1 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn52,97861.7615.24661.3-
uvicorn4,570621.42731.10027.5inconclusive (calibration-limited)
hypercorn1,939650.18588.77852.1inconclusive (calibration-limited)
gunicorn6,199615.99120.78041.3inconclusive (calibration-limited)

Collection: calibration-limited.

HTTP/1 GET (4 Workers)

HTTP/1 GET (4 Workers). h2corn 219,238 requests/s p99 1.1ms peak memory (PSS) 120.8 MB, gunicorn 37,387 requests/s p99 5.8ms peak memory (PSS) 86.7 MB, uvicorn 24,745 requests/s p99 8.6ms peak memory (PSS) 112.2 MB, hypercorn 10,837 requests/s p99 21.9ms peak memory (PSS) 124.2 MB.HTTP/1 GET (4 Workers). h2corn 219,238 requests/s p99 1.1ms peak memory (PSS) 120.8 MB, gunicorn 37,387 requests/s p99 5.8ms peak memory (PSS) 86.7 MB, uvicorn 24,745 requests/s p99 8.6ms peak memory (PSS) 112.2 MB, hypercorn 10,837 requests/s p99 21.9ms peak memory (PSS) 124.2 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn219,23860.4131.108120.8-
uvicorn24,74563.8208.638112.2inconclusive (calibration-limited)
hypercorn10,83767.77621.902124.2inconclusive (calibration-limited)
gunicorn37,38762.2455.83286.7inconclusive (calibration-limited)

Collection: calibration-limited.

HTTP/1 GET over UDS (1 Worker)

HTTP/1 GET over UDS (1 Worker). h2corn 98,347 requests/s p99 1.8ms peak memory (PSS) 61.3 MB, gunicorn 11,706 requests/s p99 11.9ms peak memory (PSS) 41.2 MB, uvicorn 7,952 requests/s p99 16.2ms peak memory (PSS) 27.5 MB, hypercorn 3,231 requests/s p99 48.9ms peak memory (PSS) 52.0 MB.HTTP/1 GET over UDS (1 Worker). h2corn 98,347 requests/s p99 1.8ms peak memory (PSS) 61.3 MB, gunicorn 11,706 requests/s p99 11.9ms peak memory (PSS) 41.2 MB, uvicorn 7,952 requests/s p99 16.2ms peak memory (PSS) 27.5 MB, hypercorn 3,231 requests/s p99 48.9ms peak memory (PSS) 52.0 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn98,34760.9611.83561.3-
uvicorn7,952612.12316.16227.5slower
hypercorn3,231629.75548.90552.0slower
gunicorn11,70668.31811.94141.2slower

Collection: direction-resolved.

HTTP/1 GET over UDS (4 Workers)

HTTP/1 GET over UDS (4 Workers). h2corn 226,901 requests/s p99 1.1ms peak memory (PSS) 123.4 MB, gunicorn 41,255 requests/s p99 5.2ms peak memory (PSS) 88.1 MB, uvicorn 27,061 requests/s p99 7.4ms peak memory (PSS) 113.6 MB, hypercorn 11,724 requests/s p99 18.0ms peak memory (PSS) 125.3 MB.HTTP/1 GET over UDS (4 Workers). h2corn 226,901 requests/s p99 1.1ms peak memory (PSS) 123.4 MB, gunicorn 41,255 requests/s p99 5.2ms peak memory (PSS) 88.1 MB, uvicorn 27,061 requests/s p99 7.4ms peak memory (PSS) 113.6 MB, hypercorn 11,724 requests/s p99 18.0ms peak memory (PSS) 125.3 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn226,90160.4341.060123.4-
uvicorn27,06163.4937.447113.6slower
hypercorn11,72468.54518.016125.3slower
gunicorn41,25562.2545.22688.1slower

Collection: direction-resolved.

HTTP/1 Portable streaming download (1 Worker)

HTTP/1 Portable streaming download (1 Worker). h2corn 7,800 requests/s p99 34.0ms peak memory (PSS) 65.6 MB, gunicorn 1,545 requests/s p99 90.7ms peak memory (PSS) 45.5 MB, uvicorn 1,094 requests/s p99 112.7ms peak memory (PSS) 33.2 MB, hypercorn 748 requests/s p99 165.1ms peak memory (PSS) 59.0 MB.HTTP/1 Portable streaming download (1 Worker). h2corn 7,800 requests/s p99 34.0ms peak memory (PSS) 65.6 MB, gunicorn 1,545 requests/s p99 90.7ms peak memory (PSS) 45.5 MB, uvicorn 1,094 requests/s p99 112.7ms peak memory (PSS) 33.2 MB, hypercorn 748 requests/s p99 165.1ms peak memory (PSS) 59.0 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn7,800611.72233.97365.6-
uvicorn1,094687.458112.70933.2slower
hypercorn7486124.579165.12359.0slower
gunicorn1,545662.24990.73945.5slower

Collection: direction-resolved.

HTTP/1 Portable streaming download (4 Workers)

HTTP/1 Portable streaming download (4 Workers). h2corn 21,228 requests/s p99 15.0ms peak memory (PSS) 139.3 MB, gunicorn 6,992 requests/s p99 26.2ms peak memory (PSS) 89.9 MB, uvicorn 4,659 requests/s p99 39.6ms peak memory (PSS) 123.8 MB, hypercorn 3,039 requests/s p99 68.9ms peak memory (PSS) 136.9 MB.HTTP/1 Portable streaming download (4 Workers). h2corn 21,228 requests/s p99 15.0ms peak memory (PSS) 139.3 MB, gunicorn 6,992 requests/s p99 26.2ms peak memory (PSS) 89.9 MB, uvicorn 4,659 requests/s p99 39.6ms peak memory (PSS) 123.8 MB, hypercorn 3,039 requests/s p99 68.9ms peak memory (PSS) 136.9 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn21,22864.03414.977139.3-
uvicorn4,659618.27439.585123.8slower
hypercorn3,039626.62568.904136.9slower
gunicorn6,992612.59926.18489.9slower

Collection: direction-resolved.

HTTP/1 Static file (1 Worker)

HTTP/1 Static file (1 Worker). h2corn 5,093 requests/s p99 34.9ms peak memory (PSS) 160.1 MB, uvicorn 633 requests/s p99 190.0ms peak memory (PSS) 70.9 MB, hypercorn 507 requests/s p99 222.3ms peak memory (PSS) 86.9 MB, gunicorn: failed.HTTP/1 Static file (1 Worker). h2corn 5,093 requests/s p99 34.9ms peak memory (PSS) 160.1 MB, uvicorn 633 requests/s p99 190.0ms peak memory (PSS) 70.9 MB, hypercorn 507 requests/s p99 222.3ms peak memory (PSS) 86.9 MB, gunicorn: failed.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn5,093619.00634.884160.1-
uvicorn6336155.162189.99170.9inconclusive (calibration-limited)
hypercorn5076192.217222.34186.9inconclusive (calibration-limited)
gunicornfailed-----

Collection: calibration-limited.

HTTP/1 Static file (4 Workers)

HTTP/1 Static file (4 Workers). h2corn 15,513 requests/s p99 19.0ms peak memory (PSS) 405.5 MB, uvicorn 2,328 requests/s p99 73.6ms peak memory (PSS) 210.3 MB, hypercorn 1,945 requests/s p99 98.1ms peak memory (PSS) 216.5 MB, gunicorn: failed.HTTP/1 Static file (4 Workers). h2corn 15,513 requests/s p99 19.0ms peak memory (PSS) 405.5 MB, uvicorn 2,328 requests/s p99 73.6ms peak memory (PSS) 210.3 MB, hypercorn 1,945 requests/s p99 98.1ms peak memory (PSS) 216.5 MB, gunicorn: failed.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn15,51365.32619.001405.5-
uvicorn2,328642.18773.610210.3inconclusive (calibration-limited)
hypercorn1,945646.75698.135216.5inconclusive (calibration-limited)
gunicornfailed-----

Collection: calibration-limited.

HTTP/1 Streaming POST (1 Worker)

HTTP/1 Streaming POST (1 Worker). h2corn 5,497 requests/s p99 946.0ms peak memory (PSS) 130.7 MB, gunicorn 2,080 requests/s p99 3250.0ms peak memory (PSS) 69.2 MB, uvicorn 1,245 requests/s p99 1174.8ms peak memory (PSS) 74.4 MB, hypercorn 660 requests/s p99 1974.7ms peak memory (PSS) 115.8 MB.HTTP/1 Streaming POST (1 Worker). h2corn 5,497 requests/s p99 946.0ms peak memory (PSS) 130.7 MB, gunicorn 2,080 requests/s p99 3250.0ms peak memory (PSS) 69.2 MB, uvicorn 1,245 requests/s p99 1174.8ms peak memory (PSS) 74.4 MB, hypercorn 660 requests/s p99 1974.7ms peak memory (PSS) 115.8 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn5,4976139.839945.951130.7-
uvicorn1,2456757.1481,174.81674.4inconclusive (calibration-limited)
hypercorn66061,280.8031,974.727115.8inconclusive (calibration-limited)
gunicorn2,0806283.1613,249.99969.2inconclusive (calibration-limited)

Collection: calibration-limited.

HTTP/1 Streaming POST (4 Workers)

HTTP/1 Streaming POST (4 Workers). h2corn 25,292 requests/s p99 83.3ms peak memory (PSS) 196.4 MB, gunicorn 8,520 requests/s p99 192.4ms peak memory (PSS) 125.5 MB, uvicorn 5,007 requests/s p99 370.1ms peak memory (PSS) 160.0 MB, hypercorn 1,713 requests/s p99 1219.5ms peak memory (PSS) 203.0 MB.HTTP/1 Streaming POST (4 Workers). h2corn 25,292 requests/s p99 83.3ms peak memory (PSS) 196.4 MB, gunicorn 8,520 requests/s p99 192.4ms peak memory (PSS) 125.5 MB, uvicorn 5,007 requests/s p99 370.1ms peak memory (PSS) 160.0 MB, hypercorn 1,713 requests/s p99 1219.5ms peak memory (PSS) 203.0 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn25,292631.50383.256196.4-
uvicorn5,0076179.732370.096160.0inconclusive (calibration-limited)
hypercorn1,7136212.9141,219.546203.0inconclusive (calibration-limited)
gunicorn8,5206110.329192.358125.5inconclusive (calibration-limited)

Collection: calibration-limited.

HTTP/1 WebSocket (1 Worker)

HTTP/1 WebSocket (1 Worker). h2corn 10,561 sessions/s p99 20.9ms peak memory (PSS) 73.1 MB, gunicorn 1,708 sessions/s p99 532.8ms peak memory (PSS) 236.7 MB, uvicorn 872 sessions/s p99 298.7ms peak memory (PSS) 61.2 MB, hypercorn 849 sessions/s p99 190.5ms peak memory (PSS) 58.9 MB.HTTP/1 WebSocket (1 Worker). h2corn 10,561 sessions/s p99 20.9ms peak memory (PSS) 73.1 MB, gunicorn 1,708 sessions/s p99 532.8ms peak memory (PSS) 236.7 MB, uvicorn 872 sessions/s p99 298.7ms peak memory (PSS) 61.2 MB, hypercorn 849 sessions/s p99 190.5ms peak memory (PSS) 58.9 MB.

Detailed results
ServerSessions/sBlocksp50 session (ms)p99 session (ms)PSS (MB)Throughput vs h2corn
h2corn10,56168.63320.85173.1-
uvicorn8726104.857298.68461.2inconclusive (calibration-limited)
hypercorn8496113.218190.52458.9inconclusive (calibration-limited)
gunicorn1,708642.914532.766236.7inconclusive (calibration-limited)

Collection: calibration-limited.

HTTP/1 WebSocket (4 Workers)

HTTP/1 WebSocket (4 Workers). h2corn 12,945 sessions/s p99 21.2ms peak memory (PSS) 145.5 MB, gunicorn 5,797 sessions/s p99 82.5ms peak memory (PSS) 742.2 MB, hypercorn 3,406 sessions/s p99 62.2ms peak memory (PSS) 139.7 MB, uvicorn 3,203 sessions/s p99 72.9ms peak memory (PSS) 160.1 MB.HTTP/1 WebSocket (4 Workers). h2corn 12,945 sessions/s p99 21.2ms peak memory (PSS) 145.5 MB, gunicorn 5,797 sessions/s p99 82.5ms peak memory (PSS) 742.2 MB, hypercorn 3,406 sessions/s p99 62.2ms peak memory (PSS) 139.7 MB, uvicorn 3,203 sessions/s p99 72.9ms peak memory (PSS) 160.1 MB.

Detailed results
ServerSessions/sBlocksp50 session (ms)p99 session (ms)PSS (MB)Throughput vs h2corn
h2corn12,94566.64921.197145.5-
uvicorn3,203628.84272.937160.1inconclusive (calibration-limited)
hypercorn3,406627.76662.201139.7inconclusive (calibration-limited)
gunicorn5,797612.17982.508742.2inconclusive (calibration-limited)

Collection: calibration-limited.

HTTP/2 GET (1 Worker)

HTTP/2 GET (1 Worker). h2corn 56,831 requests/s p99 2.9ms peak memory (PSS) 63.6 MB, hypercorn 1,246 requests/s p99 145.4ms peak memory (PSS) 57.4 MB.HTTP/2 GET (1 Worker). h2corn 56,831 requests/s p99 2.9ms peak memory (PSS) 63.6 MB, hypercorn 1,246 requests/s p99 145.4ms peak memory (PSS) 57.4 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn56,83161.7262.94063.6-
uvicornunsupported-----
hypercorn1,246676.389145.44657.4inconclusive (calibration-limited)
gunicornunsupported-----

Collection: calibration-limited.

HTTP/2 GET (4 Workers)

HTTP/2 GET (4 Workers). h2corn 143,653 requests/s p99 2.1ms peak memory (PSS) 131.6 MB, hypercorn 5,674 requests/s p99 40.5ms peak memory (PSS) 132.6 MB.HTTP/2 GET (4 Workers). h2corn 143,653 requests/s p99 2.1ms peak memory (PSS) 131.6 MB, hypercorn 5,674 requests/s p99 40.5ms peak memory (PSS) 132.6 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn143,65360.6132.088131.6-
uvicornunsupported-----
hypercorn5,674615.23840.542132.6inconclusive (calibration-limited)
gunicornunsupported-----

Collection: calibration-limited.

HTTP/2 GET multiplexed (1 Worker)

HTTP/2 GET multiplexed (1 Worker). h2corn 33,623 requests/s p99 1.3ms peak memory (PSS) 59.4 MB, hypercorn 1,924 requests/s p99 7.6ms peak memory (PSS) 49.3 MB.HTTP/2 GET multiplexed (1 Worker). h2corn 33,623 requests/s p99 1.3ms peak memory (PSS) 59.4 MB, hypercorn 1,924 requests/s p99 7.6ms peak memory (PSS) 49.3 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn33,62360.2431.26159.4-
uvicornunsupported-----
hypercorn1,92464.9277.57949.3inconclusive (calibration-limited)
gunicornunsupported-----

Collection: calibration-limited.

HTTP/2 Portable streaming download (1 Worker)

HTTP/2 Portable streaming download (1 Worker). h2corn 7,426 requests/s p99 108.2ms peak memory (PSS) 72.3 MB, hypercorn 441 requests/s p99 287.4ms peak memory (PSS) 66.3 MB.HTTP/2 Portable streaming download (1 Worker). h2corn 7,426 requests/s p99 108.2ms peak memory (PSS) 72.3 MB, hypercorn 441 requests/s p99 287.4ms peak memory (PSS) 66.3 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn7,426611.459108.17672.3-
uvicornunsupported-----
hypercorn4416185.176287.40666.3slower
gunicornunsupported-----

Collection: direction-resolved.

HTTP/2 Portable streaming download (4 Workers)

HTTP/2 Portable streaming download (4 Workers). h2corn 22,227 requests/s p99 14.4ms peak memory (PSS) 145.5 MB, hypercorn 2,005 requests/s p99 110.9ms peak memory (PSS) 149.0 MB.HTTP/2 Portable streaming download (4 Workers). h2corn 22,227 requests/s p99 14.4ms peak memory (PSS) 145.5 MB, hypercorn 2,005 requests/s p99 110.9ms peak memory (PSS) 149.0 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn22,22763.76414.372145.5-
uvicornunsupported-----
hypercorn2,005641.214110.891149.0slower
gunicornunsupported-----

Collection: direction-resolved.

HTTP/2 Static file (1 Worker)

HTTP/2 Static file (1 Worker). h2corn 3,874 requests/s p99 55.6ms peak memory (PSS) 164.5 MB, hypercorn 320 requests/s p99 402.3ms peak memory (PSS) 108.0 MB.HTTP/2 Static file (1 Worker). h2corn 3,874 requests/s p99 55.6ms peak memory (PSS) 164.5 MB, hypercorn 320 requests/s p99 402.3ms peak memory (PSS) 108.0 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn3,874624.08955.599164.5-
uvicornunsupported-----
hypercorn3206294.506402.299108.0inconclusive (calibration-limited)
gunicornunsupported-----

Collection: calibration-limited.

HTTP/2 Static file (4 Workers)

HTTP/2 Static file (4 Workers). h2corn 9,726 requests/s p99 34.3ms peak memory (PSS) 432.4 MB, hypercorn 979 requests/s p99 231.9ms peak memory (PSS) 222.4 MB.HTTP/2 Static file (4 Workers). h2corn 9,726 requests/s p99 34.3ms peak memory (PSS) 432.4 MB, hypercorn 979 requests/s p99 231.9ms peak memory (PSS) 222.4 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn9,72668.60834.285432.4-
uvicornunsupported-----
hypercorn979688.850231.853222.4inconclusive (calibration-limited)
gunicornunsupported-----

Collection: calibration-limited.

HTTP/2 Streaming POST (1 Worker)

HTTP/2 Streaming POST (1 Worker). h2corn 4,394 requests/s p99 1023.4ms peak memory (PSS) 151.2 MB, hypercorn: failed.HTTP/2 Streaming POST (1 Worker). h2corn 4,394 requests/s p99 1023.4ms peak memory (PSS) 151.2 MB, hypercorn: failed.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn4,3946171.6591,023.350151.2-
uvicornunsupported-----
hypercornfailed-----
gunicornunsupported-----

Collection: no-comparison.

HTTP/2 Streaming POST (4 Workers)

HTTP/2 Streaming POST (4 Workers). h2corn 25,601 requests/s p99 98.0ms peak memory (PSS) 240.9 MB, hypercorn 888 requests/s p99 1635.8ms peak memory (PSS) 254.1 MB.HTTP/2 Streaming POST (4 Workers). h2corn 25,601 requests/s p99 98.0ms peak memory (PSS) 240.9 MB, hypercorn 888 requests/s p99 1635.8ms peak memory (PSS) 254.1 MB.

Detailed results
ServerRequests/sBlocksp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
h2corn25,601630.18797.972240.9-
uvicornunsupported-----
hypercorn88861,075.8001,635.828254.1inconclusive (calibration-limited)
gunicornunsupported-----

Collection: calibration-limited.

gRPC Environment

Python 3.15.1 | Linux 7.3.5 | x86_64 · CPU: AMD Ryzen 9 5950X 16-Core Processor

connectrpc 0.13.0, grpcio 1.85.4, grpclib 0.4.9, hypercorn 0.18.0, protobuf-py 0.7.0, protobuf-py-ext 0.7.0.

gRPC Results

gRPC Download

gRPC Download. Connect / h2corn 7,726 messages/s p99 39.8ms peak memory (PSS) 60.7 MB, grpc.aio 5,762 messages/s p99 42.2ms peak memory (PSS) 53.9 MB, Connect / Hypercorn 2,523 messages/s p99 72.9ms peak memory (PSS) 57.4 MB.gRPC Download. Connect / h2corn 7,726 messages/s p99 39.8ms peak memory (PSS) 60.7 MB, grpc.aio 5,762 messages/s p99 42.2ms peak memory (PSS) 53.9 MB, Connect / Hypercorn 2,523 messages/s p99 72.9ms peak memory (PSS) 57.4 MB.

Detailed results
ServerMedian messages/sBlocksMedian complete RPC/sMedian completed RPCs/trialp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
Connect / h2corn7,72612483488.515.67839.79160.7-
Connect / Hypercorn2,5231215816046.61772.91057.4slower
grpc.aio5,76212360366.520.60542.17653.9inconclusive
grpclibnot selected-------

Collection: maximum-look.

gRPC Duplex

gRPC Duplex. Connect / h2corn 38,746 messages/s p99 24.8ms peak memory (PSS) 62.7 MB, grpc.aio 13,108 messages/s p99 68.3ms peak memory (PSS) 56.2 MB, grpclib 10,365 messages/s p99 75.5ms peak memory (PSS) 29.5 MB, Connect / Hypercorn 7,845 messages/s p99 105.8ms peak memory (PSS) 36.9 MB.gRPC Duplex. Connect / h2corn 38,746 messages/s p99 24.8ms peak memory (PSS) 62.7 MB, grpc.aio 13,108 messages/s p99 68.3ms peak memory (PSS) 56.2 MB, grpclib 10,365 messages/s p99 75.5ms peak memory (PSS) 29.5 MB, Connect / Hypercorn 7,845 messages/s p99 105.8ms peak memory (PSS) 36.9 MB.

Detailed results
ServerMedian messages/sBlocksMedian complete RPC/sMedian completed RPCs/trialp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
Connect / h2corn38,74666052,42812.78324.76762.7-
Connect / Hypercorn7,8456123494.566.409105.84536.9inconclusive (calibration-limited)
grpc.aio13,1086205824.537.99968.35056.2inconclusive (calibration-limited)
grpclib10,365616265049.47075.51929.5inconclusive (calibration-limited)

Collection: calibration-limited.

gRPC TLS-Duplex TLS

gRPC TLS-Duplex TLS. Connect / h2corn 43,509 messages/s p99 19.4ms peak memory (PSS) 68.0 MB, grpc.aio 15,182 messages/s p99 48.4ms peak memory (PSS) 57.0 MB, Connect / Hypercorn 8,611 messages/s p99 84.2ms peak memory (PSS) 39.3 MB.gRPC TLS-Duplex TLS. Connect / h2corn 43,509 messages/s p99 19.4ms peak memory (PSS) 68.0 MB, grpc.aio 15,182 messages/s p99 48.4ms peak memory (PSS) 57.0 MB, Connect / Hypercorn 8,611 messages/s p99 84.2ms peak memory (PSS) 39.3 MB.

Detailed results
ServerMedian messages/sBlocksMedian complete RPC/sMedian completed RPCs/trialp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
Connect / h2corn43,509668068511.74319.40968.0-
Connect / Hypercorn8,611613514060.64584.22139.3slower
grpc.aio15,1826237240.533.42348.39257.0slower
grpclibnot selected-------

Collection: direction-resolved.

gRPC TLS-U32 TLS

gRPC TLS-U32 TLS. Connect / h2corn 4,877 RPC/s p99 46.1ms peak memory (PSS) 59.1 MB, grpc.aio 2,328 RPC/s p99 54.4ms peak memory (PSS) 61.2 MB, Connect / Hypercorn 1,174 RPC/s p99 97.5ms peak memory (PSS) 40.4 MB.gRPC TLS-U32 TLS. Connect / h2corn 4,877 RPC/s p99 46.1ms peak memory (PSS) 59.1 MB, grpc.aio 2,328 RPC/s p99 54.4ms peak memory (PSS) 61.2 MB, Connect / Hypercorn 1,174 RPC/s p99 97.5ms peak memory (PSS) 40.4 MB.

Detailed results
ServerMedian RPC/sBlocksMedian completed RPCs/trialp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
Connect / h2corn4,877619,52911.86246.13259.1-
Connect / Hypercorn1,17464,74252.76997.49240.4slower
grpc.aio2,32869,363.526.16054.38261.2slower
grpclibnot selected------

Collection: direction-resolved.

gRPC U0

gRPC U0. Connect / h2corn 1,537 RPC/s p99 3.3ms peak memory (PSS) 60.4 MB, Connect / Hypercorn 987 RPC/s p99 2.3ms peak memory (PSS) 36.7 MB, grpc.aio 971 RPC/s p99 3.9ms peak memory (PSS) 52.7 MB.gRPC U0. Connect / h2corn 1,537 RPC/s p99 3.3ms peak memory (PSS) 60.4 MB, Connect / Hypercorn 987 RPC/s p99 2.3ms peak memory (PSS) 36.7 MB, grpc.aio 971 RPC/s p99 3.9ms peak memory (PSS) 52.7 MB.

Detailed results
ServerMedian RPC/sBlocksMedian completed RPCs/trialp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
Connect / h2corn1,53763,076.50.4633.25760.4-
Connect / Hypercorn98761,975.50.9382.28736.7slower
grpc.aio97161,9420.8163.85652.7slower
grpclibnot selected------

Collection: direction-resolved.

gRPC U32

gRPC U32. Connect / h2corn 6,478 RPC/s p99 25.5ms peak memory (PSS) 67.7 MB, grpc.aio 3,412 RPC/s p99 25.9ms peak memory (PSS) 58.1 MB, grpclib 2,966 RPC/s p99 28.9ms peak memory (PSS) 30.0 MB, Connect / Hypercorn 1,619 RPC/s p99 55.9ms peak memory (PSS) 38.0 MB.gRPC U32. Connect / h2corn 6,478 RPC/s p99 25.5ms peak memory (PSS) 67.7 MB, grpc.aio 3,412 RPC/s p99 25.9ms peak memory (PSS) 58.1 MB, grpclib 2,966 RPC/s p99 28.9ms peak memory (PSS) 30.0 MB, Connect / Hypercorn 1,619 RPC/s p99 55.9ms peak memory (PSS) 38.0 MB.

Detailed results
ServerMedian RPC/sBlocksMedian completed RPCs/trialp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
Connect / h2corn6,47866,5099.62425.51767.7-
Connect / Hypercorn1,61961,66039.73255.92638.0slower
grpc.aio3,41263,47418.56025.91758.1slower
grpclib2,96663,01621.55028.89730.0slower

Collection: direction-resolved.

gRPC U64K

gRPC U64K. Connect / h2corn 2,688 RPC/s p99 13.0ms peak memory (PSS) 65.0 MB, grpc.aio 2,285 RPC/s p99 12.1ms peak memory (PSS) 73.0 MB, grpclib 1,254 RPC/s p99 24.2ms peak memory (PSS) 32.5 MB, Connect / Hypercorn 605 RPC/s p99 45.9ms peak memory (PSS) 39.3 MB.gRPC U64K. Connect / h2corn 2,688 RPC/s p99 13.0ms peak memory (PSS) 65.0 MB, grpc.aio 2,285 RPC/s p99 12.1ms peak memory (PSS) 73.0 MB, grpclib 1,254 RPC/s p99 24.2ms peak memory (PSS) 32.5 MB, Connect / Hypercorn 605 RPC/s p99 45.9ms peak memory (PSS) 39.3 MB.

Detailed results
ServerMedian RPC/sBlocksMedian completed RPCs/trialp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
Connect / h2corn2,68862,6935.68113.03665.0-
Connect / Hypercorn6056618.525.26545.91939.3slower
grpc.aio2,28562,2966.86312.13773.0slower
grpclib1,25461,266.512.46824.17332.5slower

Collection: direction-resolved.

gRPC Upload

gRPC Upload. Connect / h2corn 624 RPC/s p99 25.6ms peak memory (PSS) 71.2 MB, grpc.aio 579 RPC/s p99 25.2ms peak memory (PSS) 167.7 MB, Connect / Hypercorn 114 RPC/s p99 98.3ms peak memory (PSS) 39.3 MB.gRPC Upload. Connect / h2corn 624 RPC/s p99 25.6ms peak memory (PSS) 71.2 MB, grpc.aio 579 RPC/s p99 25.2ms peak memory (PSS) 167.7 MB, Connect / Hypercorn 114 RPC/s p99 98.3ms peak memory (PSS) 39.3 MB.

Detailed results
ServerMedian RPC/sBlocksMedian completed RPCs/trialp50 latency (ms)p99 latency (ms)PSS (MB)Throughput vs h2corn
Connect / h2corn624121,25012.34225.64771.2-
Connect / Hypercorn1141223268.67898.27239.3slower
grpc.aio579121,162.513.16625.164167.7inconclusive
grpclibnot selected------

Collection: maximum-look.

Reading the results

Rates are medians; dots show individual trials and whiskers their observed range. Headline ratios use paired trials. Each scenario uses six fresh-start blocks, extended up to twelve for unresolved comparisons, with server order rotated on an unpinned, shared host. Paired comparisons report 95% intervals; host drift still limits their interpretation. “Inconclusive” does not mean equal.

Latency curves show medians of per-trial percentiles under closed-loop load, not production arrival-rate guarantees. Memory is sampled peak proportional set size (PSS) across the supervisor and workers; short peaks can be missed. Responses are checked, and failed or unstable comparisons are identified in the detailed results.

HTTP tests use standard asyncio, direct connections without TLS or a proxy, Uvicorn's h11 parser, and Gunicorn's Python HTTP parser. HTTP/2 uses cleartext prior knowledge.

The benchmark source and raw results and trial evidence provide exact commands, calibration rules, configurations, and observations.

HTTP workload notes

  • Multiplexed HTTP/2 uses ten concurrent streams on one connection.
  • Static files are 128 KiB Starlette FileResponse objects, using http.response.pathsend where supported. Gunicorn 26.2.0 fails the reused-connection check, so its file results are reported as failed.
  • Streaming downloads yield eight 16 KiB chunks. Streaming POSTs upload 1 KiB and receive three chunks with 20 ms of application delay.
  • WebSocket trials connect, echo one text message, and disconnect: they measure session turnover, not sustained message throughput.

gRPC setup

Each stack uses one serving process, standard asyncio, one HTTP/2 client connection, and no message compression. TLS rows terminate TLS 1.3 directly at each server. The same Go client drives every stack.

Unary and Upload report complete RPCs/second; Download and Duplex report response messages/second. Latency percentiles use histogram upper bounds with one-percent buckets.

gRPC workload notes

U0, U32, and U64K are unary calls with 0-byte, 32-byte, and 64 KiB payloads. Upload and Download transfer sixteen 64 KiB messages per RPC; Duplex exchanges 64 messages of 256 bytes in each direction. TLS rows repeat U32 and Duplex. The grpclib comparison covers U32, U64K, and Duplex.

Known gRPC failures

Valid-request checks passed for all measured workloads. Cancellation passed for h2corn and grpc.aio but timed out on Hypercorn. Released Connect failed the reserved-flag and truncated-suffix checks. Throughput results do not imply that these error paths conform.

The gRPC records and evidence retain exact configurations, verified counts, and failure details.