Roo-Code/benchmark/apps/web/README.md
2025-03-20 14:38:06 -07:00

885 B

Roo Code Benchmark Web UI

Getting Started

Install dependencies:

pnpm install

Create your SQLite database:

cp .env.sample .env
# Update path to SQLite database as needed in `.env`.
npx drizzle-kit push

Start the app:

pnpm dev

API

curl -f -X POST http://localhost:3000/api/runs \
  -H "Content-Type: application/json" \
  -d '{"model": "Claude 3.7 Sonnet"}'

curl -f -X POST http://localhost:3000/api/tasks \
  -H "Content-Type: application/json" \
  -d '{
    "runId": 1,
    "language": "javascript",
    "exercise": "binary",
    "tokensIn": 1000000,
    "tokensOut": 50000,
    "tokensContext": 50,
    "cacheWrites": 5,
    "cacheReads": 10,
    "cost": 0.543,
    "duration": 150000,
    "passed": true
  }'

Recipes

Zero-out and re-create database file:

truncate -s 0 /tmp/benchmarks.db
npx drizzle-kit push