Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.16 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.16 KB

create-bench

Scaffold a new ComputeSDK benchmark project that uses @benchsdk/runner.

Usage

npx create-bench my-benchmark

Or with npm:

npm create bench my-benchmark

What gets created

The CLI creates a directory with the given project name and writes:

  • package.json — with @benchsdk/runner, tsx, and benchmark scripts
  • tsconfig.json — basic TypeScript configuration
  • bench.ts — a minimal benchmark using defineBenchmarkConfig / defineTask
  • .env.example — environment variables to configure the worker
  • README.md — instructions for the new project

Next steps

  1. cd my-benchmark
  2. pnpm install
  3. Copy .env.example to .env and fill in the required values
  4. 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.