PHPBench
← 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/phpbench

Almindelige Kommandoer

  • phpbench run - Run all benchmarks
  • phpbench run --report=default - With report
  • phpbench run --iterations=10 - Custom iterations
  • phpbench run --filter=testSort - Run specific benchmark
  • phpbench run --retry-threshold=5 - Retry on deviation
  • phpbench 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

Quick Info

Kategori
Performance
Version
1.x
Sværhedsgrad
Mellem