> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Benchmarks

> Measured throughput, latency, cost math, and reproducible mock-server benchmark instructions.

`jev-curate` measures `23.97 rows/sec` (`~24.0 rows/sec`, `49.6–50.4 ms` p50 latency) against an in-process `wiremock` server on a 4-core machine. This mock harness is **rate-limiter-clamped** by `JevClient`'s built-in `20 req/sec` default token-bucket limiter.

## Reproducible local benchmark

Run the mock benchmark without network access or TypeSafe credits:

```bash theme={null}
bash bench/run_mock.sh
```

Or invoke the Rust example directly:

```bash theme={null}
cargo run --release --example bench_mock
```

The script boots an in-process `wiremock` server, mounts a canned response at the `systemone` path, and runs 120 identical rows through the real `JevClient` and `CurateFilter` pipeline twice: once at concurrency 1 and once at concurrency 32. Results are written to `bench/results/mock.json`.

## Measured results

| Run | Rows | Concurrency | Throughput | p50 Latency |
| - | - | - | - | - |
| Sequential | 120 | 1 | 23.98 (\~24.0) rows/sec | 49.6 ms |
| Concurrent | 120 | 32 | 23.97 (\~24.0) rows/sec | 50.4 ms |

Hardware used for this run: Intel Core i3-1115G4 (2 cores, 4 threads), 8 GB RAM, Windows 11, release build.

Sequential and concurrent runs hit essentially the same `23.97`/`24.0 rows/sec` ceiling because the mock harness is **rate-limiter-clamped** by `JevClient`'s built-in `20 req/sec` default token-bucket rate limiter (an initial 20-token burst plus steady `20 req/sec` refill over 120 rows yields \~`24.0 rows/sec`), not bound by CPU or local I/O.

## Scaling arithmetic and org quota constraints

Because rows are independent, theoretical horizontal scaling across independent workers at `23.97` (\~`24.0`) rows/sec per node is:

| Nodes | Expected rows/sec | Rough daily volume | Org quota notes |
| - | - | - | - |
| 1 | 24.0 | 2.1M | Fits within default `80 req/sec`, `100k tok/sec` org quota |
| 4 | 96 | 8.3M | Saturates `80 req/sec` default org cap (and `100k tok/sec` at \~1,040 tok/row) |
| 16 | 384 | 33.2M | Requires raised org quota (`>320 req/sec`, `>100k tok/sec`) |
| 63 | 1,512 | 130M | Requires enterprise/multi-org quota (`>1,260 req/sec`) |

**Org quota constraints:** TypeSafe's default org quota is **`80 req/s`** and **`100k tok/s`**. Under a single org's default limits, multi-node runs above \~4 workers (at `20 req/s` each) or above `100k tok/s` aggregate input token rate will trigger `429` rate-limit backoff. Achieving the `1,500+ rows/sec` cluster target (\~63 workers) requires raised enterprise org quotas or sharding across separate orgs—it is not a single-node benchmark or default single-org guarantee.

## Cost math

TypeSafe Jev input pricing is `$0.042` per million tokens (`$0.042/Mtok`). Because `jev-curate` sends one speculative fan-out request per row with all rubric questions together, you pay the input token cost once per row instead of once per question.

For a 1,000-token row, 1,000,000 rows equal 1,000 Mtok, or `$42.00` total input cost. Compared to frontier LLM judges priced in the `$18.65/Mtok` range, `$0.042/Mtok` is roughly 444x cheaper per input token. Actual bills depend on row length, prompt overhead, and live API usage.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.