HttpArena

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.

MedalAwardFieldRank
🥇 GoldFamily compositeComposite · Gateway1 of 8
🥇 GoldWithin its languageJS · WebSocket1 of 3
🥇 GoldTest profileConcurrency · Async Delay1 of 84
🥇 GoldTest profileGateway · Gateway (H2)1 of 7
🥇 GoldTest profileGateway · Gateway (H3)1 of 7
🥇 GoldTest profileHTTP/2 · Baseline1 of 32
🥇 GoldTest profileHTTP/2 · Baseline (h2c)1 of 27
🥈 SilverFamily compositeComposite · HTTP/22 of 34
🥈 SilverWithin its languageJS · HTTP/1.12 of 8
🥈 SilverTest profileHTTP/2 · JSON (h2c)2 of 29
🥈 SilverTest profileHTTP/2 · Static2 of 30
🥉 BronzeTest profileWorkload · JSON Comp3 of 84
🥉 BronzeTest profileWorkload · JSON TLS3 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.

FamilyRankComposite
HTTP/1.16 of 885120
HTTP/22 of 343851
Gateway1 of 82497
WebSocket6 of 312301

Every result

Alpha Round, 34 runs. Requests per second is the best of three; latency, CPU and memory come from that run.

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,012,3801.36ms2.73ms6359.7%7.8GiB
ConnectionPipelined4,09637,437,4011.75ms3.25ms6407.1%7.9GiB
ConnectionShort-lived4,0962,430,1741.66ms5.24ms6433.3%7.9GiB
ConcurrencyAsync Delay32,0002,454,34812.94ms17.30ms5948.5%8.7GiB
EfficiencyLatency-10K1,0249,97979.7us112.0us32.9%7.6GiB
EfficiencyLatency-1M1,024997,999112.5us206.0us2917.4%7.9GiB
WorkloadJSON Comp4,096447,5919.14ms25.40ms6500.2%9.7GiB
WorkloadJSON Comp16,384441,73336.71ms78.40ms6577.6%10.0GiB
WorkloadJSON TLS4,0961,258,4483.24ms48.26ms6411.5%7.8GiB
Workload8Gbit51249,39994.8us124.0us242.5%8.5GiB
WorkloadStatic TLS1,024839,5191.21ms18.95ms6518.8%8.3GiB
HTTP/2Baseline25613,223,0151.12ms9.49ms3805.2%9.1GiB
HTTP/2Baseline1,02412,981,0693.88ms88.46ms3763.6%7.8GiB
HTTP/2Static256939,4638.96ms65.22ms6184.7%9.5GiB
HTTP/2Static1,024899,23734.68ms195.22ms6315.1%12.0GiB
HTTP/2Baseline (h2c)25613,733,300993us6.05ms3420.3%7.8GiB
HTTP/2Baseline (h2c)1,02413,451,8733.66ms17.17ms3331.8%7.8GiB
HTTP/2Baseline (h2c)4,09612,500,97815.60ms80.41ms3175.9%8.0GiB
HTTP/2JSON (h2c)1,0242,863,81411.06ms65.74ms6475.6%8.3GiB
HTTP/2JSON (h2c)4,0962,892,70843.40ms148.28ms6359.0%9.1GiB
GatewayGateway (H2)512277,17755.46ms529.43ms5658.5%3.4GiB
GatewayGateway (H2)1,024278,843102.76ms970.51ms6070.4%4.0GiB
GatewayGateway (H3)64192,10611.44ms37.76ms4723.6%3.2GiB
GatewayGateway (H3)256194,31143.36ms210.29ms5002.5%3.8GiB
GatewayProduction Stack256121,74234.44ms1.17s3031.4%3.0GiB
GatewayProduction Stack1,024109,412107.45ms3.70s2940.3%3.6GiB
WebSocketEcho5123,759,073135us373us6372.1%7.6GiB
WebSocketEcho4,0963,813,7651.07ms2.20ms6316.0%7.6GiB
WebSocketEcho16,3843,444,6314.72ms8.76ms6123.1%8.0GiB
WebSocketEcho Pipelined51236,970,048220us561us6667.0%7.6GiB
WebSocketEcho Pipelined4,09636,104,8281.81ms3.26ms6486.4%8.0GiB
WebSocketEcho Pipelined16,38434,833,7057.48ms13.80ms6564.5%8.4GiB
WebSocketEcho Short-lived5121,957,321170us637us5814.0%8.2GiB
WebSocketEcho Short-lived4,0962,429,5261.21ms4.40ms6089.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.

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