Skip to content

Performance Tuning

Coming Soon

Detailed performance tuning guide is under development.

Quick Tips

1. Worker Count

Start with 2-8 workers per CPU core:

Workers: runtime.NumCPU() * 2

2. Connection Pooling

Use MaxInFlight (global) and MaxInFlightPerWorker (per-worker) to control backpressure:

MaxInFlight:          10 // global concurrent requests
MaxInFlightPerWorker: 1  // per-worker in-flight cap

3. Benchmarking

go test -bench=. ./pkg/pyproc/

See Architecture for performance characteristics.