PHPackages                             anlutro/phpbench - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. anlutro/phpbench

AbandonedArchivedLibrary[Framework](/categories/framework)

anlutro/phpbench
================

PHP Benchmarking Framework

311[4 issues](https://github.com/anlutro/phpbench/issues)PHP

Since Feb 12Pushed 12y ago1 watchersCompare

[ Source](https://github.com/anlutro/phpbench)[ Packagist](https://packagist.org/packages/anlutro/phpbench)[ RSS](/packages/anlutro-phpbench/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHPBench [![Build Status](https://camo.githubusercontent.com/2fa6f9e213e3aa6cda0dbf1ef9a93a1b448588effe42d84e70d6b640d88dde22/68747470733a2f2f7472617669732d63692e6f72672f616e6c7574726f2f70687062656e63682e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/anlutro/phpbench)
========================================================================================================================================================================================================================================================================================

[](#phpbench-)

PHP Benchmarking Framework
--------------------------

[](#php-benchmarking-framework)

In early development stages. Nothing to be considered stable.

Inspired by PHPUnit, aimed to provide a simple way to measure PHP code's performance.

### Usage

[](#usage)

Install the package via composer and run `./vendor/bin/phpbench`. This file scans {current working directory\]/bench/ for files ending in Benchmark.php (classes must be named the same as the file) and runs all public methods beginning with "bench", providing output on the time it took.

You can control the number of iterations yourself by doing a for loop or use an annotation as shown in [the example](https://github.com/anlutro/phpbench/blob/master/bench/ExampleBenchmark.php).

### Contact

[](#contact)

Open an issue on GitHub if you have any problems or suggestions.

### License

[](#license)

The contents of this repository is released under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/48f62855097c02888b96494da9a389988cd7ecb9001465f8ec30f15672fb5b5a?d=identicon)[anlutro](/maintainers/anlutro)

---

Top Contributors

[![anlutro](https://avatars.githubusercontent.com/u/163093?v=4)](https://github.com/anlutro "anlutro (14 commits)")

### Embed Badge

![Health badge](/badges/anlutro-phpbench/health.svg)

```
[![Health](https://phpackages.com/badges/anlutro-phpbench/health.svg)](https://phpackages.com/packages/anlutro-phpbench)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M290](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
