phpbench

PHP Benchmarking framework

Github星跟踪图

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.

主要指标

概览
名称与所有者phpbench/phpbench
主编程语言PHP
编程语言PHP (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2015-05-03 10:34:08
推送于2025-03-12 08:07:54
最后一次提交2025-03-12 08:01:40
发布数77
最新版本名称1.4.1 (发布于 )
第一版名称0.1 (发布于 )
用户参与
星数1.9k
关注者数30
派生数123
提交数1.5k
已启用问题?
问题数433
打开的问题数24
拉请求数595
打开的拉请求数6
关闭的拉请求数72
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?