Roo-Code/benchmark/README.md
2025-03-17 10:09:19 -07:00

51 lines
803 B
Markdown

# Benchmark Harness
Configure ENV vars (OpenRouter, PostHog, etc):
```sh
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):
```sh
npm run docker:start
```
Run an exercise:
```sh
npm run docker:benchmark -- -e exercises/javascript/binary
```
Select and run an exercise:
```sh
npm run cli
```
Select and run an exercise for a specific language:
```sh
npm run cli -- run rust
```
Run all exercises for a language:
```sh
npm run cli -- run rust all
```
Run all exercises:
```sh
npm run cli -- run all
```
Run all exercises using a specific runId (useful for re-trying when an unexpected error occurs):
```sh
npm run cli -- run all --runId 1
```