Clojure web framework comparison: any two, head to head
ring-http-exchange is ahead of reitit on 8 of the 9 tests they both run, and behind on 1. On the HTTP/1.1 composite reitit scores 1283 and ring-http-exchange 2410.
Pick any two of the 11 Clojure entries. Requests per second is the best of three runs and the delta is the first column against the second; every row is the same profile at the same connection count, on the same machine. The fixed-rate profiles offer every entry the same request rate, so they are compared on their score out of 100 instead, which is CPU cost and latency at that rate. What each profile measures.
| Profile | Conns | reitit | ring-http-exchange | Delta | reitit p99 | ring-http-exchange p99 |
|---|---|---|---|---|---|---|
| Requests per second | ||||||
| Baseline | 4,096 | 606,264 | 1,215,341 | -50% | 8.46ms | 13.70ms |
| Short-lived | 4,096 | 400,618 | 845,208 | -53% | 15.50ms | 50.40ms |
| Async Delay | 32,000 | 4,079 | 1,232,919 | -100% | 5.00s | 55.00ms |
| JSON Comp | 4,096 | 38,570 | 140,401 | -73% | 322.90ms | 56.90ms |
| JSON Comp | 16,384 | 38,224 | 236,978 | -84% | 1.10s | 274.90ms |
| JSON TLS | 4,096 | 70,300 | 477,327 | -85% | 174.09ms | 186.03ms |
| Fixed-rate profiles: score out of 100 | ||||||
| Latency-10K | 1,024 | 53.4 | 55.0 | -3% | 147us | 125us |
| Latency-1M | 1,024 | 8.6 | 37.0 | -77% | 9.17s | 4.79ms |
| 8Gbit | 512 | 53.4 | 47.1 | +13% | 297us | 804us |
Common comparisons
reitit vs ring-http-exchange · reitit vs Enso · reitit vs ring-jetty9-adapter · ring-http-exchange vs Enso · ring-http-exchange vs ring-jetty9-adapter · Enso vs ring-jetty9-adapter
Questions
Is reitit faster than ring-http-exchange?
ring-http-exchange is ahead of reitit on 8 of the 9 tests they both run, and behind on 1. On the HTTP/1.1 composite reitit scores 1283 and ring-http-exchange 2410. Both run on the same machine, in the same round, against the same profiles.
Is reitit faster than Enso?
Enso is ahead of reitit on 9 of the 9 tests they both run. Their composite scores are not on one scale: reitit is ranked among web frameworks and Enso among HTTP engines, and each league is measured against its own leader. Both run on the same machine, in the same round, against the same profiles.
Is reitit faster than ring-jetty9-adapter?
ring-jetty9-adapter is ahead of reitit on 7 of the 9 tests they both run, and behind on 2. Their composite scores are not on one scale: reitit is ranked among web frameworks and ring-jetty9-adapter among HTTP engines, and each league is measured against its own leader. Both run on the same machine, in the same round, against the same profiles.
Is ring-http-exchange faster than Enso?
Enso is ahead of ring-http-exchange on 8 of the 10 tests they both run, and behind on 2. Their composite scores are not on one scale: ring-http-exchange is ranked among web frameworks and Enso among HTTP engines, and each league is measured against its own leader. Both run on the same machine, in the same round, against the same profiles.
Which Clojure framework is fastest overall?
Among the Clojure web frameworks, ring-http-exchange holds the highest HTTP/1.1 composite, at 2410; among the Clojure HTTP engines, Enso holds the highest HTTP/1.1 composite, at 2766. Each league is measured against its own leader, and the leagues do not all count the same profiles, so those numbers are not on one scale and the highest of them is not the fastest entry on the page: to set an entry of one league against an entry of another, pick the two in the table above. The composite is throughput over the whole suite; if a service is one shape of workload, compare that profile on its own in the table above, because the order changes.
Every Clojure entry
- ring-http-exchange
- reitit
- Enso
- ring-jetty9-adapter
- busker
- ring-jetty-adapter
- aleph
- hirundo
- pedestal
- http-kit
- capra
Results updated · Clojure composite ranking · Compare across languages · Other languages · Open the leaderboard