Scaffold a new ComputeSDK benchmark project that uses @benchsdk/runner.
npx create-bench my-benchmarkOr with npm:
npm create bench my-benchmarkThe CLI creates a directory with the given project name and writes:
package.json— with@benchsdk/runner,tsx, and benchmark scriptstsconfig.json— basic TypeScript configurationbench.ts— a minimal benchmark usingdefineBenchmarkConfig/defineTask.env.example— environment variables to configure the workerREADME.md— instructions for the new project
cd my-benchmarkpnpm install- Copy
.env.exampleto.envand fill in the required values pnpm bench
For a full guide to authoring benchmarks and runnable examples covering every capability, see WRITING_BENCHMARKS.md and the examples/ directory.
For the full bench CLI reference (auth, runs, results, artifacts, export), see the benchsdk-cli skill.