Source: https://h2corn.monicz.dev/benchmarks/

# 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](https://www.starlette.io/) application over loopback; h2corn uses its profile-guided release wheel.

**Connect on h2corn delivered 1.3–2.9× the throughput of [grpc.aio](https://grpc.io/docs/languages/python/)** 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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_1_get_1_worker-loopback.b22c8a7efc1145f5.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 52,978 | 6 | 1.761 | 5.246 | 61.3 | - |
| uvicorn | 4,570 | 6 | 21.427 | 31.100 | 27.5 | inconclusive (calibration-limited) |
| hypercorn | 1,939 | 6 | 50.185 | 88.778 | 52.1 | inconclusive (calibration-limited) |
| gunicorn | 6,199 | 6 | 15.991 | 20.780 | 41.3 | inconclusive (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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_1_get_4_workers-loopback.ed51c6076b28afbf.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 219,238 | 6 | 0.413 | 1.108 | 120.8 | - |
| uvicorn | 24,745 | 6 | 3.820 | 8.638 | 112.2 | inconclusive (calibration-limited) |
| hypercorn | 10,837 | 6 | 7.776 | 21.902 | 124.2 | inconclusive (calibration-limited) |
| gunicorn | 37,387 | 6 | 2.245 | 5.832 | 86.7 | inconclusive (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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_1_get_over_uds_1_worker-loopback.21822e03161a4bc6.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 98,347 | 6 | 0.961 | 1.835 | 61.3 | - |
| uvicorn | 7,952 | 6 | 12.123 | 16.162 | 27.5 | slower |
| hypercorn | 3,231 | 6 | 29.755 | 48.905 | 52.0 | slower |
| gunicorn | 11,706 | 6 | 8.318 | 11.941 | 41.2 | slower |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_1_get_over_uds_4_workers-loopback.a3f753961bfb732c.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 226,901 | 6 | 0.434 | 1.060 | 123.4 | - |
| uvicorn | 27,061 | 6 | 3.493 | 7.447 | 113.6 | slower |
| hypercorn | 11,724 | 6 | 8.545 | 18.016 | 125.3 | slower |
| gunicorn | 41,255 | 6 | 2.254 | 5.226 | 88.1 | slower |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_1_portable_streaming_download_1_worker-loopback.c990d19093434431.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 7,800 | 6 | 11.722 | 33.973 | 65.6 | - |
| uvicorn | 1,094 | 6 | 87.458 | 112.709 | 33.2 | slower |
| hypercorn | 748 | 6 | 124.579 | 165.123 | 59.0 | slower |
| gunicorn | 1,545 | 6 | 62.249 | 90.739 | 45.5 | slower |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_1_portable_streaming_download_4_workers-loopback.94b1d069c3dd7af4.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 21,228 | 6 | 4.034 | 14.977 | 139.3 | - |
| uvicorn | 4,659 | 6 | 18.274 | 39.585 | 123.8 | slower |
| hypercorn | 3,039 | 6 | 26.625 | 68.904 | 136.9 | slower |
| gunicorn | 6,992 | 6 | 12.599 | 26.184 | 89.9 | slower |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_1_static_file_1_worker-loopback.c3ad309a6b707b4f.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 5,093 | 6 | 19.006 | 34.884 | 160.1 | - |
| uvicorn | 633 | 6 | 155.162 | 189.991 | 70.9 | inconclusive (calibration-limited) |
| hypercorn | 507 | 6 | 192.217 | 222.341 | 86.9 | inconclusive (calibration-limited) |
| gunicorn | failed | - | - | - | - | - |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_1_static_file_4_workers-loopback.2aecdd75580ef3de.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 15,513 | 6 | 5.326 | 19.001 | 405.5 | - |
| uvicorn | 2,328 | 6 | 42.187 | 73.610 | 210.3 | inconclusive (calibration-limited) |
| hypercorn | 1,945 | 6 | 46.756 | 98.135 | 216.5 | inconclusive (calibration-limited) |
| gunicorn | failed | - | - | - | - | - |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_1_streaming_post_1_worker-loopback.08c60d1f70906d52.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 5,497 | 6 | 139.839 | 945.951 | 130.7 | - |
| uvicorn | 1,245 | 6 | 757.148 | 1,174.816 | 74.4 | inconclusive (calibration-limited) |
| hypercorn | 660 | 6 | 1,280.803 | 1,974.727 | 115.8 | inconclusive (calibration-limited) |
| gunicorn | 2,080 | 6 | 283.161 | 3,249.999 | 69.2 | inconclusive (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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_1_streaming_post_4_workers-loopback.b71166cc57f0bfc6.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 25,292 | 6 | 31.503 | 83.256 | 196.4 | - |
| uvicorn | 5,007 | 6 | 179.732 | 370.096 | 160.0 | inconclusive (calibration-limited) |
| hypercorn | 1,713 | 6 | 212.914 | 1,219.546 | 203.0 | inconclusive (calibration-limited) |
| gunicorn | 8,520 | 6 | 110.329 | 192.358 | 125.5 | inconclusive (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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_1_websocket_1_worker-loopback.95bdaa8f60e9101a.svg)

Detailed results

| Server | Sessions/s | Blocks | p50 session (ms) | p99 session (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 10,561 | 6 | 8.633 | 20.851 | 73.1 | - |
| uvicorn | 872 | 6 | 104.857 | 298.684 | 61.2 | inconclusive (calibration-limited) |
| hypercorn | 849 | 6 | 113.218 | 190.524 | 58.9 | inconclusive (calibration-limited) |
| gunicorn | 1,708 | 6 | 42.914 | 532.766 | 236.7 | inconclusive (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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_1_websocket_4_workers-loopback.cf6e09c98e3a6441.svg)

Detailed results

| Server | Sessions/s | Blocks | p50 session (ms) | p99 session (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 12,945 | 6 | 6.649 | 21.197 | 145.5 | - |
| uvicorn | 3,203 | 6 | 28.842 | 72.937 | 160.1 | inconclusive (calibration-limited) |
| hypercorn | 3,406 | 6 | 27.766 | 62.201 | 139.7 | inconclusive (calibration-limited) |
| gunicorn | 5,797 | 6 | 12.179 | 82.508 | 742.2 | inconclusive (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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_2_get_1_worker-loopback.441fa0b9191dc825.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 56,831 | 6 | 1.726 | 2.940 | 63.6 | - |
| uvicorn | unsupported | - | - | - | - | - |
| hypercorn | 1,246 | 6 | 76.389 | 145.446 | 57.4 | inconclusive (calibration-limited) |
| gunicorn | unsupported | - | - | - | - | - |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_2_get_4_workers-loopback.7a75af1d965c2289.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 143,653 | 6 | 0.613 | 2.088 | 131.6 | - |
| uvicorn | unsupported | - | - | - | - | - |
| hypercorn | 5,674 | 6 | 15.238 | 40.542 | 132.6 | inconclusive (calibration-limited) |
| gunicorn | unsupported | - | - | - | - | - |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_2_get_multiplexed_1_worker-loopback.fbc188d3376d2242.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 33,623 | 6 | 0.243 | 1.261 | 59.4 | - |
| uvicorn | unsupported | - | - | - | - | - |
| hypercorn | 1,924 | 6 | 4.927 | 7.579 | 49.3 | inconclusive (calibration-limited) |
| gunicorn | unsupported | - | - | - | - | - |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_2_portable_streaming_download_1_worker-loopback.9187f70d75195d70.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 7,426 | 6 | 11.459 | 108.176 | 72.3 | - |
| uvicorn | unsupported | - | - | - | - | - |
| hypercorn | 441 | 6 | 185.176 | 287.406 | 66.3 | slower |
| gunicorn | unsupported | - | - | - | - | - |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_2_portable_streaming_download_4_workers-loopback.37fee571c9d43abc.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 22,227 | 6 | 3.764 | 14.372 | 145.5 | - |
| uvicorn | unsupported | - | - | - | - | - |
| hypercorn | 2,005 | 6 | 41.214 | 110.891 | 149.0 | slower |
| gunicorn | unsupported | - | - | - | - | - |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_2_static_file_1_worker-loopback.acf1c256641ad5af.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 3,874 | 6 | 24.089 | 55.599 | 164.5 | - |
| uvicorn | unsupported | - | - | - | - | - |
| hypercorn | 320 | 6 | 294.506 | 402.299 | 108.0 | inconclusive (calibration-limited) |
| gunicorn | unsupported | - | - | - | - | - |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_2_static_file_4_workers-loopback.c64732525e8ae384.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 9,726 | 6 | 8.608 | 34.285 | 432.4 | - |
| uvicorn | unsupported | - | - | - | - | - |
| hypercorn | 979 | 6 | 88.850 | 231.853 | 222.4 | inconclusive (calibration-limited) |
| gunicorn | unsupported | - | - | - | - | - |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_2_streaming_post_1_worker-loopback.db16100cafb6d782.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 4,394 | 6 | 171.659 | 1,023.350 | 151.2 | - |
| uvicorn | unsupported | - | - | - | - | - |
| hypercorn | failed | - | - | - | - | - |
| gunicorn | unsupported | - | - | - | - | - |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_http_2_streaming_post_4_workers-loopback.5fe9a07beb655b5b.svg)

Detailed results

| Server | Requests/s | Blocks | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- |
| h2corn | 25,601 | 6 | 30.187 | 97.972 | 240.9 | - |
| uvicorn | unsupported | - | - | - | - | - |
| hypercorn | 888 | 6 | 1,075.800 | 1,635.828 | 254.1 | inconclusive (calibration-limited) |
| gunicorn | unsupported | - | - | - | - | - |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_grpc_download-grpc.1167600d6259232a.svg)

Detailed results

| Server | Median messages/s | Blocks | Median complete RPC/s | Median completed RPCs/trial | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Connect / h2corn | 7,726 | 12 | 483 | 488.5 | 15.678 | 39.791 | 60.7 | - |
| Connect / Hypercorn | 2,523 | 12 | 158 | 160 | 46.617 | 72.910 | 57.4 | slower |
| grpc.aio | 5,762 | 12 | 360 | 366.5 | 20.605 | 42.176 | 53.9 | inconclusive |
| grpclib | not 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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_grpc_duplex-grpc.2f92140cda6a0bd0.svg)

Detailed results

| Server | Median messages/s | Blocks | Median complete RPC/s | Median completed RPCs/trial | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Connect / h2corn | 38,746 | 6 | 605 | 2,428 | 12.783 | 24.767 | 62.7 | - |
| Connect / Hypercorn | 7,845 | 6 | 123 | 494.5 | 66.409 | 105.845 | 36.9 | inconclusive (calibration-limited) |
| grpc.aio | 13,108 | 6 | 205 | 824.5 | 37.999 | 68.350 | 56.2 | inconclusive (calibration-limited) |
| grpclib | 10,365 | 6 | 162 | 650 | 49.470 | 75.519 | 29.5 | inconclusive (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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_grpc_tls_duplex-grpc.5f076f2d370d684a.svg)

Detailed results

| Server | Median messages/s | Blocks | Median complete RPC/s | Median completed RPCs/trial | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Connect / h2corn | 43,509 | 6 | 680 | 685 | 11.743 | 19.409 | 68.0 | - |
| Connect / Hypercorn | 8,611 | 6 | 135 | 140 | 60.645 | 84.221 | 39.3 | slower |
| grpc.aio | 15,182 | 6 | 237 | 240.5 | 33.423 | 48.392 | 57.0 | slower |
| grpclib | not 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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_grpc_tls_u32-grpc.fca053144ed7c7de.svg)

Detailed results

| Server | Median RPC/s | Blocks | Median completed RPCs/trial | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Connect / h2corn | 4,877 | 6 | 19,529 | 11.862 | 46.132 | 59.1 | - |
| Connect / Hypercorn | 1,174 | 6 | 4,742 | 52.769 | 97.492 | 40.4 | slower |
| grpc.aio | 2,328 | 6 | 9,363.5 | 26.160 | 54.382 | 61.2 | slower |
| grpclib | not 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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_grpc_u0-grpc.6942bb81bd32eecc.svg)

Detailed results

| Server | Median RPC/s | Blocks | Median completed RPCs/trial | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Connect / h2corn | 1,537 | 6 | 3,076.5 | 0.463 | 3.257 | 60.4 | - |
| Connect / Hypercorn | 987 | 6 | 1,975.5 | 0.938 | 2.287 | 36.7 | slower |
| grpc.aio | 971 | 6 | 1,942 | 0.816 | 3.856 | 52.7 | slower |
| grpclib | not 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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_grpc_u32-grpc.6ba68d5bcb8ee785.svg)

Detailed results

| Server | Median RPC/s | Blocks | Median completed RPCs/trial | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Connect / h2corn | 6,478 | 6 | 6,509 | 9.624 | 25.517 | 67.7 | - |
| Connect / Hypercorn | 1,619 | 6 | 1,660 | 39.732 | 55.926 | 38.0 | slower |
| grpc.aio | 3,412 | 6 | 3,474 | 18.560 | 25.917 | 58.1 | slower |
| grpclib | 2,966 | 6 | 3,016 | 21.550 | 28.897 | 30.0 | slower |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_grpc_u64k-grpc.367279b9acd9beca.svg)

Detailed results

| Server | Median RPC/s | Blocks | Median completed RPCs/trial | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Connect / h2corn | 2,688 | 6 | 2,693 | 5.681 | 13.036 | 65.0 | - |
| Connect / Hypercorn | 605 | 6 | 618.5 | 25.265 | 45.919 | 39.3 | slower |
| grpc.aio | 2,285 | 6 | 2,296 | 6.863 | 12.137 | 73.0 | slower |
| grpclib | 1,254 | 6 | 1,266.5 | 12.468 | 24.173 | 32.5 | slower |

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.](https://h2corn.monicz.dev/assets/benchmarks/benchmark_grpc_upload-grpc.847d42e8e38d6d02.svg)

Detailed results

| Server | Median RPC/s | Blocks | Median completed RPCs/trial | p50 latency (ms) | p99 latency (ms) | PSS (MB) | Throughput vs h2corn |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Connect / h2corn | 624 | 12 | 1,250 | 12.342 | 25.647 | 71.2 | - |
| Connect / Hypercorn | 114 | 12 | 232 | 68.678 | 98.272 | 39.3 | slower |
| grpc.aio | 579 | 12 | 1,162.5 | 13.166 | 25.164 | 167.7 | inconclusive |
| grpclib | not 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](https://github.com/Zaczero/pkgs/tree/main/h2corn/bench) and [raw results and trial evidence](https://h2corn.monicz.dev/assets/benchmarks/http-evidence.zip) 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`](https://h2corn.monicz.dev/asgi/#sending-a-file) 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](https://github.com/vmagamedov/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](https://h2corn.monicz.dev/assets/benchmarks/grpc-evidence.zip) retain exact configurations, verified counts, and failure details.
