spliffy
Emerging · JS · engine: uwebsockets · standard configuration · completeness 4/4
spliffy: directory based routing on uWebSockets.js. A route is a file, a handler returns the response, static files and WebSockets come from the same tree.
- Official repository
- Official website
- Benchmark implementation
- All JS entries, compared
- Open the leaderboard
Achievements
🥇 1 Gold · 🥈 1 Silver · 🥉 1 Bronze. 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 | Within its language | JS · HTTP/1.1 | 1 of 7 |
| 🥈 Silver | Test profile | Concurrency · Async Delay | 2 of 81 |
| 🥉 Bronze | Test profile | Workload · JSON Comp | 3 of 81 |
Composite rank
Each profile of a family is worth 1,000 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.
Every result
Alpha Round, 22 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 | 2,252,554 | 1.82ms | 3.22ms | 6494.3% | 1.8GiB |
| Connection | Pipelined | 4,096 | 32,385,980 | 2.02ms | 3.31ms | 6466.1% | 1.2GiB |
| Connection | Short-lived | 4,096 | 1,975,498 | 2.06ms | 7.91ms | 6548.0% | 1.7GiB |
| Concurrency | Async Delay | 32,000 | 2,344,049 | 13.55ms | 15.30ms | 6319.7% | 4.8GiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 79.0us | 113.0us | 31.6% | 1.2GiB |
| Efficiency | Latency-1M | 1,024 | 998,054 | 111.3us | 209.0us | 3047.3% | 1.4GiB |
| Efficiency | Latency-500K/8 | 1,024 | 426,629 | 1310540.7us | 5326848.0us | 793.9% | 226MiB |
| Workload | JSON Comp | 4,096 | 452,688 | 9.03ms | 25.50ms | 6319.9% | 2.1GiB |
| Workload | JSON Comp | 16,384 | 451,047 | 36.06ms | 83.80ms | 6273.8% | 2.9GiB |
| Workload | JSON TLS | 4,096 | 1,218,315 | 3.35ms | 66.38ms | 6552.6% | 1.8GiB |
| Workload | 8Gbit | 512 | 49,364 | 98.5us | 132.0us | 250.3% | 1.8GiB |
| Workload | Static TLS | 1,024 | 605,510 | 1.72ms | 25.27ms | 6567.7% | 1.7GiB |
| Database | Async DB | 1,024 | 205,638 | 4.49ms | 19.90ms | 5855.0% | 2.9GiB |
| Database | Fortunes | 1,024 | 62,704 | 14.96ms | 23.90ms | 6405.9% | 3.9GiB |
| WebSocket | Echo | 512 | 3,657,085 | 139us | 366us | 6390.9% | 1.5GiB |
| WebSocket | Echo | 4,096 | 3,745,892 | 1.09ms | 2.33ms | 6539.5% | 1.5GiB |
| WebSocket | Echo | 16,384 | 3,560,289 | 4.58ms | 8.94ms | 6492.9% | 1.6GiB |
| WebSocket | Echo Pipelined | 512 | 25,037,756 | 326us | 859us | 6721.6% | 1.5GiB |
| WebSocket | Echo Pipelined | 4,096 | 24,945,092 | 2.62ms | 5.01ms | 6512.3% | 1.6GiB |
| WebSocket | Echo Pipelined | 16,384 | 23,693,369 | 10.87ms | 14.30ms | 6274.2% | 1.7GiB |
| WebSocket | Echo Short-lived | 512 | 2,081,691 | 150us | 527us | 5643.4% | 1.5GiB |
| WebSocket | Echo Short-lived | 4,096 | 2,524,934 | 1.07ms | 2.61ms | 5980.1% | 1.6GiB |
Compared with
The JS web frameworks around spliffy 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 spliffy | |
|---|---|---|---|
| fulmine.js - uwsLite | 6910 | +8% | head to head |
| morojs | 6274 | -2% | head to head |
| fulmine.js | 6186 | -4% | head to head |
Compare spliffy with any JS entry · Compare spliffy with any entry, in any language · Every JS entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry