import { heapStats } from "bun:jsc"; const { SERVER } = process.env; if (typeof SERVER === "undefined" || !SERVER?.length) { throw new Error("SERVER environment variable is not set"); } const COUNT = parseInt(process.env.COUNT || "200", 10); await (async function runAll() { var fetches = new Array(COUNT); let i = 0; while (i < Math.max(COUNT - 32, 0)) { for (let j = 0; j < 32; j++) { fetches.push(fetch(SERVER)); } await Promise.all(fetches); fetches.length = 0; i += 32; } while (i++ < COUNT) { fetches.push(fetch(SERVER)); } await Promise.all(fetches); fetches.length = 0; fetches = []; })(); await Bun.sleep(10); Bun.gc(true); if ((heapStats().objectTypeCounts.Response ?? 0) > 1 + ((COUNT / 2) | 0)) { throw new Error("Too many Response objects: " + heapStats().objectTypeCounts.Response); } option value='another-image-approach'>another-image-approach Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/.devcontainer/framework-preact (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-05-30Content collections - fix `.json` collection errors (#7246)Gravatar Ben Holmes 4-7/+52
2023-05-30[ci] formatGravatar bholmesdev 4-5/+5
2023-05-30Markdoc - remove `$entry` variable (#7244)Gravatar Ben Holmes 16-257/+217
2023-05-30Markdoc: new README for Markdoc nodes (#7225)Gravatar Ben Holmes 1-46/+85
2023-05-30[ci] formatGravatar MoustaphaDev 1-1/+1
2023-05-30fix: prioritize dynamic prerendered routes over dynamic server routes (#7235)Gravatar Happydev 6-19/+361
2023-05-30[ci] formatGravatar matthewp 1-5/+8
2023-05-30Bug 6672 (#7062)Gravatar wulinsheng123 10-0/+138