morojs
Emerging · JS · engine: @morojs/engine · standard configuration · completeness 4/4
MoroJS 1.8 on its native HTTP engine (@morojs/engine), default configuration, 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 Moro's HTTP/2 server on Node's http2 module.
Achievements
🥇 3 Gold · 🥈 2 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 | Family composite | Composite · Gateway | 1 of 8 |
| 🥇 Gold | Within its language | JS · WebSocket | 1 of 3 |
| 🥇 Gold | Test profile | Gateway · Gateway (H2) | 1 of 7 |
| 🥈 Silver | Within its language | JS · HTTP/1.1 | 2 of 7 |
| 🥈 Silver | Test profile | Gateway · Gateway (H3) | 2 of 7 |
| 🥉 Bronze | Test profile | Concurrency · Async Delay | 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, 37 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,406,514 | 1.70ms | 3.31ms | 6673.9% | 8.5GiB |
| Connection | Pipelined | 4,096 | 37,119,811 | 1.76ms | 3.38ms | 6657.5% | 8.2GiB |
| Connection | Short-lived | 4,096 | 2,005,333 | 2.02ms | 6.68ms | 6541.4% | 8.4GiB |
| Concurrency | Async Delay | 32,000 | 2,296,906 | 13.82ms | 20.50ms | 5992.9% | 9.9GiB |
| Efficiency | Latency-10K | 1,024 | 9,981 | 79.5us | 112.0us | 31.0% | 7.8GiB |
| Efficiency | Latency-1M | 1,024 | 997,707 | 118.3us | 216.0us | 3068.3% | 8.1GiB |
| Efficiency | Latency-500K/8 | 1,024 | 396,137 | 2001803.2us | 5556224.0us | 790.6% | 1.1GiB |
| Workload | JSON Comp | 4,096 | 436,734 | 9.36ms | 26.20ms | 6519.4% | 9.9GiB |
| Workload | JSON Comp | 16,384 | 430,900 | 37.75ms | 81.50ms | 6262.9% | 10.0GiB |
| Workload | JSON TLS | 4,096 | 1,045,809 | 3.89ms | 42.10ms | 6580.6% | 8.9GiB |
| Workload | 8Gbit | 512 | 49,316 | 111.9us | 139.0us | 284.3% | 9.3GiB |
| Workload | Static TLS | 1,024 | 781,829 | 1.31ms | 18.52ms | 6533.2% | 8.6GiB |
| Database | Async DB | 1,024 | 211,850 | 4.22ms | 37.60ms | 5644.8% | 9.0GiB |
| Database | Fortunes | 1,024 | 62,038 | 15.28ms | 27.50ms | 6658.7% | 10.0GiB |
| HTTP/2 | Baseline | 256 | 800,059 | 31.70ms | 128.46ms | 6355.2% | 13.1GiB |
| HTTP/2 | Baseline | 1,024 | 732,628 | 121.37ms | 242.80ms | 6354.0% | 13.8GiB |
| HTTP/2 | Static | 256 | 451,211 | 17.95ms | 201.04ms | 6445.2% | 13.3GiB |
| HTTP/2 | Static | 1,024 | 408,400 | 74.94ms | 337.87ms | 6464.8% | 14.5GiB |
| HTTP/2 | Baseline (h2c) | 256 | 861,130 | 29.73ms | 183.09ms | 6386.4% | 12.8GiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 829,506 | 120.37ms | 1.18s | 6424.3% | 13.2GiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 831,355 | 234.56ms | 3.93s | 6291.6% | 13.8GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 739,636 | 43.83ms | 404.55ms | 6471.0% | 13.2GiB |
| HTTP/2 | JSON (h2c) | 4,096 | 654,131 | 138.56ms | 3.99s | 6364.9% | 13.0GiB |
| Gateway | Gateway (H2) | 512 | 281,802 | 54.54ms | 455.33ms | 5625.7% | 3.7GiB |
| Gateway | Gateway (H2) | 1,024 | 280,712 | 102.36ms | 1.02s | 5852.3% | 4.3GiB |
| Gateway | Gateway (H3) | 64 | 185,827 | 12.29ms | 51.81ms | 5193.7% | 3.4GiB |
| Gateway | Gateway (H3) | 256 | 193,319 | 42.31ms | 174.79ms | 4979.5% | 4.2GiB |
| Gateway | Production Stack | 256 | 114,581 | 36.48ms | 2.14s | 2957.5% | 3.2GiB |
| Gateway | Production Stack | 1,024 | 111,000 | 109.47ms | 3.44s | 2923.6% | 3.8GiB |
| WebSocket | Echo | 512 | 3,815,720 | 133us | 358us | 6381.8% | 8.1GiB |
| WebSocket | Echo | 4,096 | 3,783,340 | 1.08ms | 2.25ms | 6568.4% | 8.2GiB |
| WebSocket | Echo | 16,384 | 3,491,776 | 4.66ms | 9.02ms | 6448.7% | 8.4GiB |
| WebSocket | Echo Pipelined | 512 | 37,355,545 | 218us | 552us | 6722.7% | 8.2GiB |
| WebSocket | Echo Pipelined | 4,096 | 37,225,168 | 1.76ms | 3.29ms | 6700.6% | 8.3GiB |
| WebSocket | Echo Pipelined | 16,384 | 34,718,252 | 7.47ms | 14.40ms | 6583.0% | 8.5GiB |
| WebSocket | Echo Short-lived | 512 | 1,965,691 | 168us | 623us | 5557.3% | 8.5GiB |
| WebSocket | Echo Short-lived | 4,096 | 2,452,577 | 1.19ms | 4.28ms | 6355.9% | 8.8GiB |
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 | 6910 | +10% | head to head |
| spliffy | 6418 | +2% | head to head |
| fulmine.js | 6186 | -1% | head to head |
| hyper-express | 4276 | -32% | 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