py-perf - Measure, diagnose, and optimize Python code performance.
Diagnose and improve Python performance using benchmarks, profiling tools, memory analysis, concurrency, and regression tests.
Tags
Updated: 2026-09-22Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Profile CPU execution time
- Track memory allocations
- Run reproducible performance benchmarks
- Analyze line-level execution bottlenecks
- Optimize algorithms and data structures
- Evaluate free-threaded Python behavior
- Establish performance regression tests
Inputs
- Python source code
- Representative workload data
- Performance targets
- Environment configurations
Outputs
- Profiling reports and flame graphs
- Memory allocation snapshots
- Benchmark result records
- Performance regression test suites
Requirements
- Python 3.10+
- Profiling tools
- OS permissions for profiling
