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
派生數122
提交數1.5k
已啟用問題?
問題數433
打開的問題數24
拉請求數595
打開的拉請求數6
關閉的拉請求數72
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?