PHPackages                             vesic/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vesic/benchmark

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vesic/benchmark
===============

Simple utility to measure your execution time.

0.0.1(9y ago)08MITPHP

Since May 17Pushed 9y agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

benchmark
=========

[](#benchmark)

Benchmark your code

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

[](#installation)

```
composer require vesic/benchmark

```

Basic Usage
-----------

[](#basic-usage)

```
require __DIR__ . '/vendor/autoload.php';

use Vesic\Benchmark\Benchmark;

$benchmark = new Benchmark;

$bencmark->run(function() {
    for ($i=0; $irun('yourFunctionToMeasure');

function functionWithParams($param) {
    for ($i=0; $irun('functionWithParams', 1e6);

```

Output
------

[](#output)

```
Your code performance:
Time - 0.017. Memory - 356.75 kb

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.6% 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

3286d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b31abea231b812a77fa758b9d7ac61033ff1f6d3f0e1181d576a4a1cc41c3ed?d=identicon)[dusan-vesic-devtech](/maintainers/dusan-vesic-devtech)

---

Top Contributors

[![vesic](https://avatars.githubusercontent.com/u/14851810?v=4)](https://github.com/vesic "vesic (7 commits)")[![dusan-vesic-devtech](https://avatars.githubusercontent.com/u/28391650?v=4)](https://github.com/dusan-vesic-devtech "dusan-vesic-devtech (4 commits)")

### Embed Badge

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

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

###  Alternatives

[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[jimbojsb/workman

PHP process forking &amp; daemonizing library

608.8k](/packages/jimbojsb-workman)

PHPackages © 2026

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