phpbench

PHP Benchmarking framework

Github stars Tracking Chart

PhpBench

PHPBench Logo
Build Status

PhpBench is a benchmarking framework for PHP.

Features:

  • Nice command line interface.
  • Generate reports and render them to different mediums (Console, HTML,
    Markdown, etc).
  • Benchmarks executed in a separate process, no effective overhead,
    no autoloader pollution.
  • Control stability of results with multiple iterations and retry threshold.
  • Memory usage statistics.
  • Records environment (e.g. VCS info, OS info, etc.)
  • Standard deviation and Z-Scores.
  • Kernel density estimate used to estimate the mode.
  • Time unit specification.
  • Output mode specification (throughput, average time).
  • Parameterized benchmarking cases.
  • Per-project configuration.
  • Store and query results.
  • Before and After method / class specification.
  • Pause (recover) between iterations.
  • Assertions.
  • Extendable.
  • More..

Installation Instructions

You can install PHPBench either as as a
PHAR

or as a project dependency.

Installing as a PHAR allows you to easily self-update to the latest. bleeding edge, version.

See the installation instructions for
information on both methods of installation.

Documentation

See the official documentation.

Community

Screenshots

Default output:

phpbench-standard

Aggregate report with "dots" logger:

phpbench-aggregate

Blinken logger:

phpbench-blinken

HTML report:

phpbench2

Storage log:

storage_log

See also

This library was influenced by the
athletic benchmarking framework.

Overview

Name With Ownerphpbench/phpbench
Primary LanguagePHP
Program languagePHP (Language Count: 4)
Platform
License:MIT License
Release Count73
Last Release Name1.2.15 (Posted on )
First Release Name0.1 (Posted on )
Created At2015-05-03 10:34:08
Pushed At2024-04-10 12:50:15
Last Commit At2024-04-10 05:50:15
Stargazers Count1.8k
Watchers Count32
Fork Count124
Commits Count1.4k
Has Issues Enabled
Issues Count426
Issue Open Count22
Pull Requests Count581
Pull Requests Open Count8
Pull Requests Close Count70
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top