docs/plans/benchmark-improvements/000-benchmark-improvements-index.md
This directory contains executable task plans for improving Prisma's query and compilation performance benchmark suite. The tasks cover migration to modern tooling, benchmark refinement, documentation, and establishing performance baselines.
| ID | Task | Priority | Status | Dependencies |
|---|---|---|---|---|
| 001 | Migrate from Benchmark.js to Tinybench | High | Planned | None |
| 002 | Bump CodSpeed Plugin to v5.x | Medium | Planned | None (skip if doing 001) |
| 003 | Review Query Performance Benchmarks | Medium | Planned | None |
| 004 | Review Interpreter Benchmarks | Medium | Planned | None |
| 005 | Establish Performance Baselines | High | Planned | 001, 003, 004 |
| 006 | Update Benchmarking Documentation | Medium | Planned | 001, 005 |
| 007 | Clean Up Legacy Benchmark Code | Low | Planned | 001 |
Task 005 - Establish Performance Baselines
Task 006 - Update Benchmarking Documentation
query-performance.bench.ts)compilation.bench.ts)interpreter.bench.ts)docs/benchmarking.md)@ts-nocheck and other suppressionspnpm bench
pnpm bench query-performance
pnpm bench compilation
pnpm bench interpreter
| Benchmark | Location |
|---|---|
| Query Performance | packages/client/src/__tests__/benchmarks/query-performance/query-performance.bench.ts |
| Compilation | packages/client/src/__tests__/benchmarks/query-performance/compilation.bench.ts |
| Interpreter | packages/client-engine-runtime/bench/interpreter.bench.ts |
| Client Generation | packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts |
| Relations Generation | packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts |
| Platform Detection | packages/get-platform/bench/get-platform.bench.ts |
| Current | Target |
|---|---|
@codspeed/[email protected] | @codspeed/[email protected] |
[email protected] | tinybench@^4.0.1 |