mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
* Update to latest SIMDUTF * Fix issue with `Headers.toJSON` having an incorrect size set with set-cookie header * [node:http] Fix `undefined` when multiple Set-Cookie headers are sent * Count UTF8 byteLength for headers This is not necessary, just being cautious. * Update http-hello.node.mjs * Be 100% sure the test isn't caching anything * move this up --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
13 lines
368 B
JavaScript
13 lines
368 B
JavaScript
import { createServer } from "node:http";
|
|
var i = 0;
|
|
|
|
const server = createServer((req, res) => {
|
|
res.writeHead(200);
|
|
res.end("Hello, World!" + i);
|
|
if (i++ === 200_000 - 1)
|
|
setTimeout(() => {
|
|
console.log("RSS", (process.memoryUsage().rss / 1024 / 1024) | 0, "MB");
|
|
process.exit(0);
|
|
}, 0);
|
|
}).listen(parseInt(process.env.PORT || "3000", 10));
|