Roo-Code/benchmark
2025-03-19 23:41:50 -07:00
..
packages Small fixes 2025-03-19 23:41:50 -07:00
.env.sample Small fixes 2025-03-19 23:41:50 -07:00
.gitignore Add next.js stuff to .gitignore 2025-03-19 23:11:53 -07:00
.npmrc Add comment 2025-03-19 23:21:41 -07:00
package.json More progress 2025-03-19 23:04:59 -07:00
pnpm-lock.yaml More progress 2025-03-19 23:04:59 -07:00
pnpm-workspace.yaml Turn benchmarks into a monorepo 2025-03-19 19:05:03 -07:00
README.md Turn benchmarks into a monorepo 2025-03-19 19:05:03 -07:00
turbo.json Turn benchmarks into a monorepo 2025-03-19 19:05:03 -07:00

Benchmark Harness

Install nvm:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
# Reload shell.
nvm install

Install pnpm:

npm install --global corepack@latest
corepack enable pnpm
corepack use pnpm@latest-10

Install dependencies:

pnpm install

Configure database:

cp packages/server/.env.sample packages/server/.env
# Update BENCHMARKS_DB_PATH as needed in `packages/server/.env`.
pnpm --filter @benchmark/server db:migrate

Run the benchmark server:

pnpm dev

################################################################################

Configure ENV vars (OpenRouter, PostHog, etc):

cp .env.local.sample .env.local
# Update ENV vars as needed.

Build and run a Docker image with the development environment needed to run the benchmarks (C++, Go, Java, Node.js, Python & Rust):

npm run docker:start

Run an exercise:

npm run docker:benchmark -- -e exercises/javascript/binary

Select and run an exercise:

npm run cli

Select and run an exercise for a specific language:

npm run cli -- run rust

Run all exercises for a language:

npm run cli -- run rust all

Run all exercises:

npm run cli -- run all

Run all exercises using a specific runId (useful for re-trying when an unexpected error occurs):

npm run cli -- run all --runId 1