Replies: 1 comment 3 replies
-
|
You are using the native We don't use the native Response or any other slow "native" implementation for Node, we use our own implementation of WHATWG You should use our ponyfill not the global one. const { createServer } = require("node:http");
const { createServerAdapter } = require("@whatwg-node/server");
const { Response } = require("@whatwg-node/fetch");
createServer(
createServerAdapter(() => Response.json({ hello: 'world' })),
).listen(3000); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I was running fastify benchmarks on node v24 (which show remarkable improvement for
express) and I thought I would hook@whatwg-node/serversince that's what runs my Yoga deployment and I was wondering how close to "bare" it its.Benchmark server code:
The result is worrying:

Would have any idea what's so slow about adopting node to WHATWG standards and if anything can still be done to improve it?
Beta Was this translation helpful? Give feedback.
All reactions