Files
ColdStartTest/server.ts
T
2026-03-28 02:53:32 -04:00

16 lines
320 B
TypeScript

// server.ts
// A simple server that simulates a cold start of ~300ms
const BOOT_DELAY = 300;
console.log("Server starting...");
setTimeout(() => {
Bun.serve({
port: 3000,
fetch(req) {
return new Response("OK");
},
});
console.log("Server listening on http://localhost:3000");
}, BOOT_DELAY);