PHPackages                             dydro/benchmark - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. dydro/benchmark

ActiveLibrary[Testing &amp; Quality](/categories/testing)

dydro/benchmark
===============

A comparison benchmarking utility

v1.1.0(12y ago)021[2 issues](https://github.com/Dydro/php-benchmark/issues)BSD-3-ClausePHPPHP 5.4.\*

Since Jul 7Pushed 12y ago2 watchersCompare

[ Source](https://github.com/Dydro/php-benchmark)[ Packagist](https://packagist.org/packages/dydro/benchmark)[ RSS](/packages/dydro-benchmark/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

PHP-Benchmark
=============

[](#php-benchmark)

A comparison benchmarking utility

PHP-Benchmark is intented to be used to compare libraries, or do small testing in your application

[![Latest Stable Version](https://camo.githubusercontent.com/ec97c9ccf7db72119da256ba3355eb44dbd5bbdd9a45189ee9d4e4cd0e6bc73e/68747470733a2f2f706f7365722e707567782e6f72672f647964726f2f62656e63686d61726b2f762f737461626c652e706e67)](https://packagist.org/packages/dydro/benchmark)[![Build Status](https://camo.githubusercontent.com/78f936d5be43c536bf16712ee5a6528d25a6916394f1582d86dc97f6c8521f71/68747470733a2f2f7472617669732d63692e6f72672f447964726f2f7068702d62656e63686d61726b2e706e67)](https://travis-ci.org/Dydro/php-benchmark)

Installation
------------

[](#installation)

Installation should be handled through Composer:

```
"require": {
    "dydro/benchmark": "dev-master"
}
```

Usage
-----

[](#usage)

Usage is very simple with Benchmark:

```
$benchmark = new Benchmark('MyProduct');
$manager = new Manager();
$manager->addBenchmark($benchmark);

$benchmark->start();
...do stuff...
$benchmark->stop();

echo $manager->getResults('MyProduct test');
```

Output
------

[](#output)

Depending on the environment in which PHP is running (CLI or non-CLI) Benchmark will spit out different responses:

### CLI

[](#cli)

```
+--------------------------------------------------------+
|                                                        |
|           BENCHMARK RESULTS -- 04.images.php           |
|                                                        |
+-------------------+----------------+-------------------+
|      PRODUCT      |    TIME (s)    |    MEMORY (kB)    |
+-------------------+----------------+-------------------+
|       FPDF        |    0.01311     |       599.8       |
+-------------------+----------------+-------------------+
|       TCPDF       |     0.4036     |     10946.85      |
+-------------------+----------------+-------------------+

```

### HTML

[](#html)

```

        BENCHMARK RESULTS -- 04.images.php

        #dy-benchmark-results * {text-align: center;}

                                BENCHMARK RESULTS -- 04.images.php

                                PRODUCT
                                TIME (s)
                                MEMORY (kB)

FPDF0.01278599.9
TCPDF0.3934410946.73

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~4 days

Total

2

Last Release

4690d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/241466e7109a5a7a534948fbc38a9ce7ba415a66ae8d5306f246c8dcba1de29c?d=identicon)[troymccabe](/maintainers/troymccabe)

---

Top Contributors

[![troymccabe](https://avatars.githubusercontent.com/u/1299743?v=4)](https://github.com/troymccabe "troymccabe (12 commits)")

---

Tags

testingcomparisonbenchmark

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dydro-benchmark/health.svg)

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

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[phpunit/php-code-coverage

Library that provides collection, processing, and rendering functionality for PHP code coverage information.

8.9k892.4M1.5k](/packages/phpunit-php-code-coverage)[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[symfony/phpunit-bridge

Provides utilities for PHPUnit, especially user deprecation notices management

2.5k201.2M4.2k](/packages/symfony-phpunit-bridge)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)

PHPackages © 2026

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