capra
Engine · Clojure
Minimal Capra engine benchmark pinned to upstream master with HTTP/1.1, dynamic gzip JSON, and native WebSocket echo.
Composite rank
Each profile of a family is worth 100 to the entry that leads it, 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 | 33 of 34 | 665 |
| WebSocket | 16 of 16 | 74 |
Every result
Alpha Round, 17 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 | 180,301 | 2.75ms | 8.47ms | 855.4% | 4.6GiB |
| Connection | Pipelined | 4,096 | 77,845 | 186.46ms | 1.80s | 619.6% | 1.7GiB |
| Connection | Short-lived | 4,096 | 51,547 | 1.27ms | 11.00ms | 412.9% | 1.4GiB |
| Concurrency | Async Delay | 32,000 | 24,777 | 175.09ms | 832.50ms | 237.7% | 487MiB |
| Efficiency | Latency-10K | 1,024 | 9,562 | 116.1us | 170.0us | 61.9% | 458MiB |
| Efficiency | Latency-1M | 1,024 | 85,155 | 7325792.1us | 17162240.0us | 371.4% | 782MiB |
| Efficiency | Latency-500K/8 | 1,024 | 198,749 | 4631974.8us | 10555392.0us | 639.2% | 896MiB |
| Workload | JSON Comp | 4,096 | 44,324 | 11.33ms | 25.20ms | 6390.4% | 5.0GiB |
| Workload | JSON Comp | 16,384 | 41,881 | 14.62ms | 35.30ms | 6084.7% | 5.1GiB |
| WebSocket | Echo | 512 | 97,383 | 2.52ms | 5.03ms | 428.1% | 423MiB |
| WebSocket | Echo | 4,096 | 94,866 | 5.05ms | 9.49ms | 338.8% | 490MiB |
| WebSocket | Echo | 16,384 | 92,976 | 5.59ms | 9.52ms | 339.8% | 451MiB |
| WebSocket | Echo Pipelined | 512 | 1,222,753 | 3.63ms | 8.32ms | 2704.1% | 760MiB |
| WebSocket | Echo Pipelined | 4,096 | 1,571,469 | 4.70ms | 10.60ms | 3149.0% | 773MiB |
| WebSocket | Echo Pipelined | 16,384 | 1,578,463 | 4.14ms | 9.25ms | 3163.1% | 749MiB |
| WebSocket | Echo Short-lived | 512 | 70,592 | 221us | 2.15ms | 407.3% | 794MiB |
| WebSocket | Echo Short-lived | 4,096 | 70,730 | 221us | 2.35ms | 408.4% | 819MiB |
Compared with
The Clojure entries around capra on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.
| Entry | Composite | vs capra | |
|---|---|---|---|
| ring-http-exchange | 3649 | +449% | head to head |
| pedestal | 1146 | +72% | head to head |
| http-kit | 839 | +26% | head to head |
| busker | 21 | -97% | head to head |
Compare capra with any Clojure entry · Compare capra with any entry, in any language · Every Clojure entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry