| 1 | import * as Cloudflare from "alchemy/Cloudflare"; |
| 2 | |
| 3 | /** |
| 4 | * Non-Effect container built from a Dockerfile whose base image is the *same* |
| 5 | * `oven/bun:latest` the effectful variant uses — but with no Effect program |
| 6 | * bundled, just a raw `Bun.serve`. Comparing this against the effectful variant |
| 7 | * rules out base-image pull/boot time as the cause of any gap: the remaining |
| 8 | * difference is the bundled Effect runtime. |
| 9 | */ |
| 10 | export class BunContainer extends Cloudflare.Container<BunContainer>()( |
| 11 | "BenchBunContainer", |
| 12 | { |
| 13 | context: `${import.meta.dirname}/../contexts/bun`, |
| 14 | maxInstances: 100, |
| 15 | instanceType: "lite", |
| 16 | instances: 0, |
| 17 | }, |
| 18 | ) {} |