PHPackages                             mindplay/benchpress - 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. mindplay/benchpress

ActiveLibrary

mindplay/benchpress
===================

A simple benchmark suite for PHP 5.3 and up

0.1.0(9y ago)72.4k↓100%6LGPL-3.0+PHPPHP &gt;=5.3.0

Since Aug 7Pushed 9y ago3 watchersCompare

[ Source](https://github.com/mindplay-dk/benchpress)[ Packagist](https://packagist.org/packages/mindplay/benchpress)[ RSS](/packages/mindplay-benchpress/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (6)

mindplay/benchpress
-------------------

[](#mindplaybenchpress)

A simple benchmark suite for PHP 5.3 and up.

Basic usage:

```
    use mindplay\benchpress\Benchmark;

    $bench = new Benchmark();

    // Benchmark a function and get the result immediately:

    $time = $bench->mark(
        function () {
            // do the work...
        }
    );
```

With reporting:

```
    use mindplay\benchpress\Benchmark;

    $bench = new Benchmark();

    // Queue up functions to be benchmarked:

    $bench->add(
        "Description of work",
        function () {
            // do the work...
        }
    );

    $bench->add(...);
    $bench->add(...);
    $bench->add(...);

    // Run the queued functions and generate a report:

    $bench->run();
```

Report output from the included "example.php" benchmark looks like this:

```
OVERHEAD:    0.001 msec
BASELINE:    0.056 msec
HOST OS:     WINNT
PHP VERSION: 5.4.7
MIN. TIME:   2000 msec
MIN. MARKS:  30

* Completed: Native arrays
* Completed: Native properties
* Completed: Native synchronous methods
* Completed: Protected accessors
* Completed: Virtual accessors
* Completed: Type-checked accessors

Results
-------

Native arrays ..................... 0.011 msec ...... 0.653 points ....... 43.55% ......... 1.00x
Native properties ................. 0.011 msec ...... 0.656 points ....... 43.81% ......... 1.01x
Native synchronous methods ........ 0.017 msec ...... 1.018 points ....... 67.92% ......... 1.56x
Virtual accessors ................. 0.019 msec ...... 1.137 points ....... 75.88% ......... 1.74x
Protected accessors ............... 0.021 msec ...... 1.238 points ....... 82.62% ......... 1.90x
Type-checked accessors ............ 0.025 msec ...... 1.499 points ...... 100.00% ......... 2.30x

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3562d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9445f567f43ee7a963270651e40e533634586f959e4df3d5398d001b1cb49be8?d=identicon)[mindplay.dk](/maintainers/mindplay.dk)

---

Top Contributors

[![mindplay-dk](https://avatars.githubusercontent.com/u/103348?v=4)](https://github.com/mindplay-dk "mindplay-dk (7 commits)")

### Embed Badge

![Health badge](/badges/mindplay-benchpress/health.svg)

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

PHPackages © 2026

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