PHPackages                             skillaug/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. skillaug/benchmark

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

skillaug/benchmark
==================

Good Performance need to benchmark

v1.0.0(7y ago)5982BSD-3-ClausePHPPHP &gt;=5.3.0

Since Oct 12Pushed 7y agoCompare

[ Source](https://github.com/skillaug/benchmark)[ Packagist](https://packagist.org/packages/skillaug/benchmark)[ RSS](/packages/skillaug-benchmark/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP benchmark solution
----------------------

[](#php-benchmark-solution)

Find the best solution by using benchmark

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

[](#installation)

```
composer require --dev skillaug/benchmark "~1.0.0"
```

Usages
------

[](#usages)

### Basic

[](#basic)

```
\skillaug\Benchmark::begin();

// your codes for benchmark here

\skillaug\Benchmark::end();
```

example results

```
Time:                     74 Mili second(s)
Memory_get_usage:         26 Megabyte(s)
Memory_get_peak_usage:    25.961 Megabyte(s)

```

### With unit options

[](#with-unit-options)

```
\skillaug\Benchmark::begin([
    'time' => 's', // second(s)
    'memory' => 'kb', // kilobyte(s)
]);
```

example results

```
Time:                     0.0759 Second(s)
Memory_get_usage:         26624.06 Kilobyte(s)
Memory_get_peak_usage:    26584.53 Kilobyte(s)

```

License
-------

[](#license)

The BSD 3-Clause "New" or "Revised" License.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

2811d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22816936?v=4)[Luu Thanh Sang](/maintainers/skillaug)[@skillaug](https://github.com/skillaug)

---

Top Contributors

[![skillaug](https://avatars.githubusercontent.com/u/22816936?v=4)](https://github.com/skillaug "skillaug (2 commits)")

---

Tags

benchmarkbenchmark php scriptphp benchmark solution

### Embed Badge

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

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

###  Alternatives

[devster/ubench

Micro PHP library for benchmarking

5641.0M33](/packages/devster-ubench)[christophrumpel/artisan-benchmark

Benchmark Artisan Commands

18380.9k](/packages/christophrumpel-artisan-benchmark)[dragon-code/benchmark

Simple comparison of code execution speed between different options

12036.2k6](/packages/dragon-code-benchmark)[ayesh/php-timer

High-resolution and monotonic stop-watch for all your needs. Supports timer start, pause, resume, stop, read, and minimal conversion.

22232.8k12](/packages/ayesh-php-timer)[janiaje/benchmark

Benchmark package.

1688.5k](/packages/janiaje-benchmark)

PHPackages © 2026

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