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 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.
Every result
Alpha Round, 16 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 | 134,654 | 7.99ms | 19.20ms | 784.7% | 3.9GiB |
| Connection | Pipelined | 4,096 | 47,157 | 575.26ms | 1.99s | 229.4% | 4.1GiB |
| Connection | Short-lived | 4,096 | 53,795 | 1.26ms | 10.90ms | 543.0% | 1.5GiB |
| Concurrency | Async Delay | 32,000 | 25,264 | 306.25ms | 296.70ms | 211.0% | 559MiB |
| Efficiency | Latency-10K | 1,024 | 9,696 | 107.3us | 155.0us | 59.7% | 463MiB |
| Efficiency | Latency-1M | 1,024 | 87,840 | 7228074.8us | 17113088.0us | 397.3% | 462MiB |
| Workload | JSON Comp | 4,096 | 43,975 | 25.90ms | 50.80ms | 6452.7% | 5.1GiB |
| Workload | JSON Comp | 16,384 | 43,720 | 31.96ms | 62.30ms | 6325.8% | 5.1GiB |
| WebSocket | Echo | 512 | 94,942 | 3.87ms | 5.59ms | 374.9% | 442MiB |
| WebSocket | Echo | 4,096 | 89,328 | 15.12ms | 24.90ms | 365.9% | 440MiB |
| WebSocket | Echo | 16,384 | 89,869 | 8.41ms | 10.60ms | 359.4% | 443MiB |
| WebSocket | Echo Pipelined | 512 | 1,622,898 | 5.05ms | 10.10ms | 3465.6% | 604MiB |
| WebSocket | Echo Pipelined | 4,096 | 2,115,038 | 10.38ms | 24.00ms | 4163.2% | 612MiB |
| WebSocket | Echo Pipelined | 16,384 | 2,094,711 | 11.24ms | 24.60ms | 4279.2% | 650MiB |
| WebSocket | Echo Short-lived | 512 | 69,414 | 217us | 1.93ms | 473.0% | 469MiB |
| WebSocket | Echo Short-lived | 4,096 | 68,855 | 220us | 1.87ms | 411.1% | 464MiB |
Compared with
The Clojure HTTP engines around capra 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 capra | |
|---|---|---|---|
| Enso | 2766 | +681% | head to head |
| pedestal | 864 | +144% | head to head |
| http-kit | 462 | +30% | 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