diff --git a/scripts/bench/boot-profile.ts b/scripts/bench/boot-profile.ts new file mode 100644 index 000000000..e2e499bfe --- /dev/null +++ b/scripts/bench/boot-profile.ts @@ -0,0 +1,398 @@ +/** + * Boot and idle-memory profile of the production build. + * + * DATABASE_URL=postgresql://… API_TOKEN_HMAC_KEY=… ENCRYPTION_KEYS=… \ + * ENCRYPTION_ACTIVE_KEY_ID=… pnpm dlx tsx scripts/bench/boot-profile.ts \ + * [--idle-seconds 300] [--heap-mb 792] [--port 3101] \ + * [--no-snapshot] [--no-cpu-prof] [--out scripts/bench/results/