HttpArena
Frameworks

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.

MedalAwardFieldRank
🥇 GoldFamily compositeComposite · Gateway1 of 8
🥇 GoldWithin its languageJS · WebSocket1 of 3
🥇 GoldTest profileGateway · Gateway (H2)1 of 7
🥈 SilverWithin its languageJS · HTTP/1.12 of 7
🥈 SilverTest profileGateway · Gateway (H3)2 of 7
🥉 BronzeTest profileConcurrency · Async Delay3 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.

FamilyRankComposite
HTTP/1.17 of 856274
HTTP/214 of 31908
Gateway1 of 82478
WebSocket4 of 302522

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0962,406,5141.70ms3.31ms6673.9%8.5GiB
ConnectionPipelined4,09637,119,8111.76ms3.38ms6657.5%8.2GiB
ConnectionShort-lived4,0962,005,3332.02ms6.68ms6541.4%8.4GiB
ConcurrencyAsync Delay32,0002,296,90613.82ms20.50ms5992.9%9.9GiB
EfficiencyLatency-10K1,0249,98179.5us112.0us31.0%7.8GiB
EfficiencyLatency-1M1,024997,707118.3us216.0us3068.3%8.1GiB
EfficiencyLatency-500K/81,024396,1372001803.2us5556224.0us790.6%1.1GiB
WorkloadJSON Comp4,096436,7349.36ms26.20ms6519.4%9.9GiB
WorkloadJSON Comp16,384430,90037.75ms81.50ms6262.9%10.0GiB
WorkloadJSON TLS4,0961,045,8093.89ms42.10ms6580.6%8.9GiB
Workload8Gbit51249,316111.9us139.0us284.3%9.3GiB
WorkloadStatic TLS1,024781,8291.31ms18.52ms6533.2%8.6GiB
DatabaseAsync DB1,024211,8504.22ms37.60ms5644.8%9.0GiB
DatabaseFortunes1,02462,03815.28ms27.50ms6658.7%10.0GiB
HTTP/2Baseline256800,05931.70ms128.46ms6355.2%13.1GiB
HTTP/2Baseline1,024732,628121.37ms242.80ms6354.0%13.8GiB
HTTP/2Static256451,21117.95ms201.04ms6445.2%13.3GiB
HTTP/2Static1,024408,40074.94ms337.87ms6464.8%14.5GiB
HTTP/2Baseline (h2c)256861,13029.73ms183.09ms6386.4%12.8GiB
HTTP/2Baseline (h2c)1,024829,506120.37ms1.18s6424.3%13.2GiB
HTTP/2Baseline (h2c)4,096831,355234.56ms3.93s6291.6%13.8GiB
HTTP/2JSON (h2c)1,024739,63643.83ms404.55ms6471.0%13.2GiB
HTTP/2JSON (h2c)4,096654,131138.56ms3.99s6364.9%13.0GiB
GatewayGateway (H2)512281,80254.54ms455.33ms5625.7%3.7GiB
GatewayGateway (H2)1,024280,712102.36ms1.02s5852.3%4.3GiB
GatewayGateway (H3)64185,82712.29ms51.81ms5193.7%3.4GiB
GatewayGateway (H3)256193,31942.31ms174.79ms4979.5%4.2GiB
GatewayProduction Stack256114,58136.48ms2.14s2957.5%3.2GiB
GatewayProduction Stack1,024111,000109.47ms3.44s2923.6%3.8GiB
WebSocketEcho5123,815,720133us358us6381.8%8.1GiB
WebSocketEcho4,0963,783,3401.08ms2.25ms6568.4%8.2GiB
WebSocketEcho16,3843,491,7764.66ms9.02ms6448.7%8.4GiB
WebSocketEcho Pipelined51237,355,545218us552us6722.7%8.2GiB
WebSocketEcho Pipelined4,09637,225,1681.76ms3.29ms6700.6%8.3GiB
WebSocketEcho Pipelined16,38434,718,2527.47ms14.40ms6583.0%8.5GiB
WebSocketEcho Short-lived5121,965,691168us623us5557.3%8.5GiB
WebSocketEcho Short-lived4,0962,452,5771.19ms4.28ms6355.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.

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