genhttp-kestrel
Emerging · C# · engine: kestrel · standard configuration · completeness 4/4
Lightweight, embeddable and modular C# web server.
- Official repository
- Official website
- Benchmark implementation
- All C# entries, compared
- Open the leaderboard
Achievements
🥇 1 Gold · 🥈 1 Silver. Top three of a field, taken in this entry's own league: the family composite, the same composite among entries written in the same language, and each test profile it is scored on. Every field is the one the badges publish, so a medal and a badge always say the same thing. How medals are awarded.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Test profile | Efficiency · Latency-10K | 1 of 87 |
| 🥈 Silver | Within its language | C# · HTTP/3 | 2 of 4 |
Composite rank
Each profile of a family is worth its weight × 1,000 to the entry that leads it - 1, or 0.5 apiece for two profiles that measure one thing - and the composite is the sum over the family, less 2.5% for each of routing, middleware, request and response the entry does not do for you - its completeness factor, which the WebSocket and gRPC families do not carry. The field is this entry's own league: engines and reverse proxies are scored apart from frameworks. How it works.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 37 of 87 | 2150 |
| HTTP/2 | 22 of 33 | 438 |
| HTTP/3 | 8 of 16 | 366 |
| WebSocket | 19 of 31 | 926 |
| Database | 11 of 17 | 509 |
Every result
Alpha Round, 25 runs. Requests per second is the best of three; latency, CPU and memory come from that run.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 1,371,512 | 2.99ms | 7.78ms | 5990.6% | 567MiB |
| Connection | Pipelined | 4,096 | 3,531,991 | 18.42ms | 682.30ms | 6013.0% | 485MiB |
| Connection | Short-lived | 4,096 | 475,118 | 1.91ms | 11.60ms | 2885.0% | 238MiB |
| Concurrency | Async Delay | 32,000 | 929,808 | 33.29ms | 64.10ms | 4740.0% | 1.8GiB |
| Efficiency | Latency-10K | 1,024 | 9,983 | 97.4us | 117.0us | 114.4% | 241MiB |
| Efficiency | Latency-1M | 1,024 | 997,905 | 559.5us | 4202.0us | 3982.8% | 327MiB |
| Workload | JSON Comp | 4,096 | 404,590 | 9.36ms | 28.30ms | 5884.9% | 644MiB |
| Workload | JSON Comp | 16,384 | 405,484 | 14.81ms | 34.60ms | 6183.0% | 758MiB |
| Workload | JSON TLS | 4,096 | 541,873 | 7.62ms | 125.75ms | 6182.1% | 889MiB |
| Workload | 8Gbit | 512 | 49,334 | 238.2us | 3703.0us | 622.0% | 313MiB |
| Database | Async DB | 1,024 | 180,417 | 5.67ms | 14.60ms | 2749.9% | 404MiB |
| HTTP/2 | Baseline | 256 | 2,201,181 | 11.30ms | 37.87ms | 6237.4% | 1.2GiB |
| HTTP/2 | Baseline | 1,024 | 2,104,120 | 49.40ms | 184.36ms | 6033.1% | 3.0GiB |
| HTTP/2 | Static | 256 | 253,865 | 32.15ms | 270.03ms | 6097.4% | 1.4GiB |
| HTTP/2 | Static | 1,024 | 262,671 | 118.61ms | 569.08ms | 5773.1% | 3.1GiB |
| HTTP/3 | Baseline | 64 | 600,230 | 6.41ms | 18.38ms | 6152.5% | 2.2GiB |
| HTTP/3 | Static | 64 | 154,915 | 26.40ms | 106.34ms | 6045.0% | 2.2GiB |
| WebSocket | Echo | 512 | 1,763,387 | 289us | 1.35ms | 5665.7% | 274MiB |
| WebSocket | Echo | 4,096 | 1,719,824 | 2.38ms | 5.82ms | 5956.3% | 596MiB |
| WebSocket | Echo | 16,384 | 1,666,361 | 4.21ms | 10.20ms | 6231.8% | 697MiB |
| WebSocket | Echo Pipelined | 512 | 22,476,166 | 363us | 2.33ms | 5448.2% | 285MiB |
| WebSocket | Echo Pipelined | 4,096 | 22,009,331 | 2.98ms | 9.08ms | 5996.5% | 633MiB |
| WebSocket | Echo Pipelined | 16,384 | 21,280,412 | 5.65ms | 14.00ms | 6095.3% | 711MiB |
| WebSocket | Echo Short-lived | 512 | 450,171 | 71us | 394us | 2833.8% | 244MiB |
| WebSocket | Echo Short-lived | 4,096 | 460,420 | 79us | 520us | 2929.2% | 263MiB |
Compared with
The C# web frameworks around genhttp-kestrel on the HTTP/1.1 composite, and the one leading them. Entries of other leagues are left out: a composite does not carry from one league to another. The last column shows every profile side by side.
| Entry | Composite | vs genhttp-kestrel | |
|---|---|---|---|
| genhttp-ioxide | 5950 | +177% | head to head |
| aspnet-minimal | 2458 | +14% | head to head |
| carter | 2238 | +4% | head to head |
| fastendpoints | 1904 | -11% | head to head |
| codebehind | 1895 | -12% | head to head |
Compare genhttp-kestrel with any C# entry · Compare genhttp-kestrel with any entry, in any language · Every C# entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry