HttpArena

barejs-uws

Experimental · TS · engine: uWebSockets.js · standard configuration · completeness 4/4

BareJS web framework running on Node.js with its built-in uWebSockets.js driver, zero-allocation context pooling, built-in compression middleware, static file handler, and native WebSocket routing.

Achievements

🥈 2 Silver. 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
🥈 SilverWithin its languageTS · HTTP/1.12 of 3
🥈 SilverTest profileConcurrency · CON-1M-TLS2 of 11

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.130 of 362069
WebSocket18 of 252039
Database9 of 12404

Protocol compliance

The conformance suites this entry subscribes to, run against it on the benchmark machine: Http11Probe on HTTP/1.1, h2spec on HTTP/2, h3spec on HTTP/3 and Autobahn on WebSocket. A score, not part of the composite. How it works.

SuiteToolPassedFailed
HTTP/1.1http11probe d50d818156 of 159 (98.1%)3
WebSocketautobahn-testsuite 25.10.1237 of 244 (97.1%)7

HTTP/1.1: what failed

TestExpectedGot
COMP-OPTIONS-STAR OPTIONS * is the only valid asterisk-form request (RFC 9112 §3.2.4, MUST)2xx or 405; close/timeout = warn400, connection left open
COMP-HTTP10-DEFAULT-CLOSE HTTP/1.0 without keep-alive — server should close connection after response (RFC 9112 §9.3, SHOULD)2xx + close400, connection closed
COMP-UNKNOWN-METHOD Unrecognized method should be rejected with 501 or 405 (RFC 9110 §9.1, SHOULD)501/405/400 or close404, connection left open

WebSocket: what failed

TestExpectedGot
1.1.6 Send text message message with payload of length 65535.Receive echo'ed text message (with payload as sent). Clean close with normal code.Actual events differ from any expected. / close: The connection was failed by the wrong endpoint
1.1.7 Send text message message with payload of length 65536.Receive echo'ed text message (with payload as sent). Clean close with normal code.Actual events differ from any expected. / close: The connection was failed by the wrong endpoint
1.1.8 Send text message message with payload of length 65536. Sent out data in chops of 997 octets.Receive echo'ed text message (with payload as sent). Clean close with normal code.Actual events differ from any expected. / close: The connection was failed by the wrong endpoint
1.2.6 Send binary message message with payload of length 65535.Receive echo'ed binary message (with payload as sent). Clean close with normal code.Actual events differ from any expected. / close: The connection was failed by the wrong endpoint
1.2.7 Send binary message message with payload of length 65536.Receive echo'ed binary message (with payload as sent). Clean close with normal code.Actual events differ from any expected. / close: The connection was failed by the wrong endpoint
1.2.8 Send binary message message with payload of length 65536. Sent out data in chops of 997 octets.Receive echo'ed binary message (with payload as sent). Clean close with normal code.Actual events differ from any expected. / close: The connection was failed by the wrong endpoint
10.1.1 Send text message with payload of length 65536 auto-fragmented with <b>autoFragmentSize = 1300</b>.Receive echo'ed text message (with payload as sent and transmitted frame counts as expected). Clean close with normal code.Actual events differ from any expected. / close: The connection was failed by the wrong endpoint

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,096688,1835.95ms11.30ms6453.6%5.4GiB
ConnectionPipelined4,0961,600,98840.88ms55.40ms6362.7%5.8GiB
ConnectionShort-lived4,096651,9196.27ms25.80ms6350.2%5.4GiB
ConcurrencyAsync Delay32,000647,05649.45ms83.50ms6467.6%11.1GiB
ConcurrencyCON-1M1,000,000249,965148.0us423.0us1352.6%7595.4MiB
ConcurrencyCON-1M-TLS1,000,000249,969196.0us562.0us2809.1%10.8GiB
EfficiencyLatency-10K1,0249,982208.4us381.0us174.1%3.7GiB
EfficiencyLatency-1M1,024788,1971742542.4us7989248.0us6493.9%5.2GiB
WorkloadJSON Comp4,096212,83319.23ms61.60ms6328.5%10.5GiB
WorkloadJSON Comp16,384223,54773.01ms165.20ms6239.6%10.8GiB
WorkloadJSON TLS4,096542,0507.57ms143.79ms6468.1%6.4GiB
Workload8Gbit51249,344227.6us590.0us1369.6%4.9GiB
WorkloadStatic TLS1,024155,4058.09ms88.19ms6490.9%8.6GiB
DatabaseAsync DB1,02498,96510.34ms44.40ms3262.4%4.4GiB
DatabaseFortunes1,02442,95823.86ms43.90ms3289.8%3.9GiB
WebSocketEcho5123,518,324144us394us6447.1%2.8GiB
WebSocketEcho4,0963,600,8651.14ms2.37ms6580.7%2.9GiB
WebSocketEcho16,3843,323,4114.93ms9.40ms6544.9%3.0GiB
WebSocketEcho Pipelined51220,764,208393us1.04ms6745.0%2.9GiB
WebSocketEcho Pipelined4,09620,793,0913.15ms5.26ms6527.3%2.9GiB
WebSocketEcho Pipelined16,38420,167,24813.01ms17.20ms6281.9%3.1GiB
WebSocketEcho Short-lived5122,063,261199us686us5779.1%2.9GiB
WebSocketEcho Short-lived4,0962,476,9371.35ms3.92ms6078.7%3.3GiB

Compared with

The experimental TS frameworks around barejs-uws 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.

EntryCompositevs barejs-uws
barejs4257+106%head to head
swerverts721-65%head to head

Compare barejs-uws with any TS entry · Compare barejs-uws with any entry, in any language · Every TS entry, ranked

Results updated · How the benchmark is run · The machine · Add or fix an entry