Skip to content

frameworks/node: add benchmark implementation - #1202

Open
nigrosimone wants to merge 1 commit into
MDA2AV:mainfrom
nigrosimone:add-node
Open

frameworks/node: add benchmark implementation#1202
nigrosimone wants to merge 1 commit into
MDA2AV:mainfrom
nigrosimone:add-node

Conversation

@nigrosimone

Copy link
Copy Markdown
Contributor

Node was on the board only through frameworks (express, fastify, koa, nestjs, node-h3, hono-node), with no bare node:http line to read them against. bun, deno and go-stdlib already have one.

One file, no dependencies: http.createServer, routing by string comparison on req.url, query parsed by hand, and zlib.gzipSync on /json because node:http negotiates nothing.

node:cluster forks one worker per core, but each worker binds 8080 with reusePort, so the kernel spreads the accepts the way bun and deno do, not the cluster round robin.

Profiles are the same six as bun, deno and go-stdlib. Checked with the image on 4 cpus: 4 workers, 4 LISTEN sockets on 8080, and every endpoint the profiles use.

@nigrosimone
nigrosimone marked this pull request as ready for review August 18, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant