← Tilbage til værktøjer
PHPBench
Benchmarking framework til performance testing og regression detection
Version: 1.x
Foto: Алекс Арцибашев / Unsplash
Features
- +Micro-benchmarking
- +Statistical analysis
- +Performance regression detection
- +Multiple iterations support
- +Parameterized benchmarks
- +Memory usage tracking
- +HTML/JSON/Markdown reports
- +Comparison reports
- +Warm-up iterations
- +Retry on deviation
Installation
composer require --dev phpbench/phpbenchAlmindelige Kommandoer
phpbench run - Run all benchmarksphpbench run --report=default - With reportphpbench run --iterations=10 - Custom iterationsphpbench run --filter=testSort - Run specific benchmarkphpbench run --retry-threshold=5 - Retry on deviationphpbench run --output=html - Generate HTML report
Use Cases
- •Compare algorithm performance
- •Detect performance regressions
- •Optimize critical code paths
- •A/B test different implementations
- •Monitor performance over time
- •Generate performance reports