[ExoBench server version: 1.4.30]
Benchmark a raw SQL query across increasing dataset sizes in an ephemeral SQLite database.
SQLite ONLY. For Postgres/SQL Server/MySQL use benchmarkSql instead (far faster; generates data
inside the database). Call getMcpDocs('benchmark-sql-generic') first for full guidance and examples.
WHEN TO USE: to see how a SQLite query's plan and timing change as row counts grow. Prefer
EXPLAIN QUERY PLAN queries for plan analysis; use plain SELECT only to sanity-check correctness.
EPHEMERAL: each call builds a fresh database from `schema` and destroys it on return — nothing
persists. Pass the FULL `schema` (CREATE TABLE + indexes; NO INSERTs — data is auto-generated) in
EVERY call. `correlationId` is tracking only; it does NOT preserve DB state.
KEY INPUTS:
- query: SQL to benchmark (typically EXPLAIN QUERY PLAN SELECT ...)
- schema: CREATE TABLE statements only; declare FKs with REFERENCES so generated data is valid
- numRowsToCreate: row counts per iteration, e.g. [100, 1000, 10000]
- Optional: perTableRowsOverride (per-table counts), randomSeedOverride (reproducible data),
columnConstraints (control generated values), warmCache
OUTPUT: JSON array, one object per iteration, each with `sql`, `output` (2D array, headers first),
`runtimeDurationMs`, and `rowsAreCapped`. Output is capped at 30 rows but the full result set is
always traversed for accurate timing. On error: {"error": ..., "sql": ...}.
LIMITS: max 5 scale points per request; max 3,000,000 rows per scale point (sum of all tables);
Requests exceeding limits are rejected.
IF THIS TIMES OUT: you receive a workerId and a "still running" status — that is NOT a result. Call
benchmarkSqlGenericResults(workerId) repeatedly until it returns a terminal result. Do NOT end your
turn or report findings while a worker is still running. A timed-out response's `data` field MAY
carry best-effort partial results — do not depend on their presence.