MoroJS Native HTTP Engine Benchmarks Faster Than uWS and Fastify on Node.js
A new native HTTP engine for Node.js, called @morojs/engine, has been developed to offer a faster built-in alternative to the standard node:http module by reducing C++-to-JavaScript boundary crossings to just 2–4 per request. Benchmarks run on a Node 24.11 environment on an Apple M2 Ultra machine showed the engine achieving around 105,000 non-pipelined requests per second, comparable to uWebSockets.js and Bun, while outperforming raw node:http and Hono. In pipelined tests, the engine reached approximately 663,000 requests per second, roughly 10% ahead of uWebSockets.js, thanks to response corking and batching entire pipelines into a single write operation. The engine uses raw V8 bindings instead of N-API for maximum performance and ships precompiled binaries to ensure day-one compatibility with new Node.js releases, with an automatic fallback to node:http if a binary is unavailable. It carries zero external dependencies and handles query, cookie, multipart, and route-pattern parsing internally, with all parsers subject to regular fuzz testing.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in