morojs
Emerging · JS · engine: @morojs/engine · standard configuration · completeness 4/4
MoroJS 1.8 on its native HTTP engine (@morojs/engine), clustered by the framework itself with one worker thread per core sharing the port through SO_REUSEPORT. Routing, path and query parameters and body parsing through the Moro request, JSON through res.json, compression (brotli quality 3 or gzip level 3 as the client accepts, one reused encoder per setting per worker, handed to the engine's own response path by the route middleware), static files from the built-in middleware's in-memory cache and the cache-aside through the built-in cache adapters, WebSockets through the engine's own RFC 6455 support, upgrades included, HTTP/2 through the engine's own implementation (ALPN h2 on TLS, prior knowledge on cleartext), TLS through the BoringSSL bundled with the engine.
Achievements
🥇 7 Gold · 🥈 4 Silver · 🥉 2 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 | Family composite | Composite · Gateway | 1 of 8 |
| 🥇 Gold | Within its language | JS · WebSocket | 1 of 3 |
| 🥇 Gold | Test profile | Concurrency · Async Delay | 1 of 84 |
| 🥇 Gold | Test profile | Gateway · Gateway (H2) | 1 of 7 |
| 🥇 Gold | Test profile | Gateway · Gateway (H3) | 1 of 7 |
| 🥇 Gold | Test profile | HTTP/2 · Baseline | 1 of 32 |
| 🥇 Gold | Test profile | HTTP/2 · Baseline (h2c) | 1 of 27 |
| 🥈 Silver | Family composite | Composite · HTTP/2 | 2 of 34 |
| 🥈 Silver | Within its language | JS · HTTP/1.1 | 2 of 8 |
| 🥈 Silver | Test profile | HTTP/2 · JSON (h2c) | 2 of 29 |
| 🥈 Silver | Test profile | HTTP/2 · Static | 2 of 30 |
| 🥉 Bronze | Test profile | Workload · JSON Comp | 3 of 84 |
| 🥉 Bronze | Test profile | Workload · JSON TLS | 3 of 85 |
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, 34 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 | 3,012,380 | 1.36ms | 2.73ms | 6359.7% | 7.8GiB |
| Connection | Pipelined | 4,096 | 37,437,401 | 1.75ms | 3.25ms | 6407.1% | 7.9GiB |
| Connection | Short-lived | 4,096 | 2,430,174 | 1.66ms | 5.24ms | 6433.3% | 7.9GiB |
| Concurrency | Async Delay | 32,000 | 2,454,348 | 12.94ms | 17.30ms | 5948.5% | 8.7GiB |
| Efficiency | Latency-10K | 1,024 | 9,979 | 79.7us | 112.0us | 32.9% | 7.6GiB |
| Efficiency | Latency-1M | 1,024 | 997,999 | 112.5us | 206.0us | 2917.4% | 7.9GiB |
| Workload | JSON Comp | 4,096 | 447,591 | 9.14ms | 25.40ms | 6500.2% | 9.7GiB |
| Workload | JSON Comp | 16,384 | 441,733 | 36.71ms | 78.40ms | 6577.6% | 10.0GiB |
| Workload | JSON TLS | 4,096 | 1,258,448 | 3.24ms | 48.26ms | 6411.5% | 7.8GiB |
| Workload | 8Gbit | 512 | 49,399 | 94.8us | 124.0us | 242.5% | 8.5GiB |
| Workload | Static TLS | 1,024 | 839,519 | 1.21ms | 18.95ms | 6518.8% | 8.3GiB |
| HTTP/2 | Baseline | 256 | 13,223,015 | 1.12ms | 9.49ms | 3805.2% | 9.1GiB |
| HTTP/2 | Baseline | 1,024 | 12,981,069 | 3.88ms | 88.46ms | 3763.6% | 7.8GiB |
| HTTP/2 | Static | 256 | 939,463 | 8.96ms | 65.22ms | 6184.7% | 9.5GiB |
| HTTP/2 | Static | 1,024 | 899,237 | 34.68ms | 195.22ms | 6315.1% | 12.0GiB |
| HTTP/2 | Baseline (h2c) | 256 | 13,733,300 | 993us | 6.05ms | 3420.3% | 7.8GiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 13,451,873 | 3.66ms | 17.17ms | 3331.8% | 7.8GiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 12,500,978 | 15.60ms | 80.41ms | 3175.9% | 8.0GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 2,863,814 | 11.06ms | 65.74ms | 6475.6% | 8.3GiB |
| HTTP/2 | JSON (h2c) | 4,096 | 2,892,708 | 43.40ms | 148.28ms | 6359.0% | 9.1GiB |
| Gateway | Gateway (H2) | 512 | 277,177 | 55.46ms | 529.43ms | 5658.5% | 3.4GiB |
| Gateway | Gateway (H2) | 1,024 | 278,843 | 102.76ms | 970.51ms | 6070.4% | 4.0GiB |
| Gateway | Gateway (H3) | 64 | 192,106 | 11.44ms | 37.76ms | 4723.6% | 3.2GiB |
| Gateway | Gateway (H3) | 256 | 194,311 | 43.36ms | 210.29ms | 5002.5% | 3.8GiB |
| Gateway | Production Stack | 256 | 121,742 | 34.44ms | 1.17s | 3031.4% | 3.0GiB |
| Gateway | Production Stack | 1,024 | 109,412 | 107.45ms | 3.70s | 2940.3% | 3.6GiB |
| WebSocket | Echo | 512 | 3,759,073 | 135us | 373us | 6372.1% | 7.6GiB |
| WebSocket | Echo | 4,096 | 3,813,765 | 1.07ms | 2.20ms | 6316.0% | 7.6GiB |
| WebSocket | Echo | 16,384 | 3,444,631 | 4.72ms | 8.76ms | 6123.1% | 8.0GiB |
| WebSocket | Echo Pipelined | 512 | 36,970,048 | 220us | 561us | 6667.0% | 7.6GiB |
| WebSocket | Echo Pipelined | 4,096 | 36,104,828 | 1.81ms | 3.26ms | 6486.4% | 8.0GiB |
| WebSocket | Echo Pipelined | 16,384 | 34,833,705 | 7.48ms | 13.80ms | 6564.5% | 8.4GiB |
| WebSocket | Echo Short-lived | 512 | 1,957,321 | 170us | 637us | 5814.0% | 8.2GiB |
| WebSocket | Echo Short-lived | 4,096 | 2,429,526 | 1.21ms | 4.40ms | 6089.1% | 8.5GiB |
Compared with
The JS web frameworks around morojs 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 morojs | |
|---|---|---|---|
| fulmine.js - uwsLite | 6059 | +18% | head to head |
| fulmine.js | 5418 | +6% | head to head |
| spliffy | 4649 | -9% | head to head |
| hyper-express | 3008 | -41% | head to head |
Compare morojs with any JS entry · Compare morojs with any entry, in any language · Every JS entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry