mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
51 lines
803 B
Markdown
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
|
|
```
|