This document describes how to measure TaskFlow MCP performance, expected baselines, and how to interpret results. Performance will vary by machine, disk, and OS. Use these numbers as target SLOs, not absolute guarantees.
- Task CRUD latency
- Search performance on 1,000+ tasks
- Template rendering speed
- JSON parse/serialize time
- Sustained load behavior
- Memory growth under repeated operations
Run the benchmark script after building:
pnpm build
pnpm run benchmarkThe script creates a temporary dataset and prints timings for task creation, list operations, search, planning, and JSON parse/serialize.
The integration test suite includes performance checks:
pnpm test tests/integration/performance.test.tsThese tests validate latency and sustained load characteristics against the targets below.
For deeper profiling, run Node with built-in profiling:
node --prof dist/index.jsYou can also profile the benchmark script:
node --prof benchmarks/run-benchmarks.mjsThe generated isolate-*.log can be inspected with node --prof-process.
These are the performance objectives for typical developer machines:
- Task operations: < 50ms for 1,000 tasks
- Search: < 100ms for 1,000 tasks
- Template rendering: < 10ms
- JSON parse/serialize: < 20ms for 1,000 tasks
- Memory: < 100MB during steady load
- Sustained load: < 100ms average list time on 500 tasks
- Cold runs are slower due to disk caches and module initialization.
- Disk speed impacts CRUD and list performance the most.
- Use the benchmark output to compare improvements across releases.