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

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

pieceofcodero/benchmark
=======================

Lightweight, fluent benchmarking for PHP

v0.3(11mo ago)06MITPHP

Since Jun 3Pushed 11mo agoCompare

[ Source](https://github.com/pieceofcodero/benchmark)[ Packagist](https://packagist.org/packages/pieceofcodero/benchmark)[ RSS](/packages/pieceofcodero-benchmark/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Lightweight PHP Benchmarking Library
====================================

[](#lightweight-php-benchmarking-library)

A minimal, object-oriented benchmarking utility for measuring execution time of code blocks in PHP. Designed for profiling hot paths, repeated function calls, and rendering logic during development or runtime diagnostics.

- 📏 Measure execution time across multiple calls;
- 🧩 Scoped timing with `$benchmark->measure(fn() => ...)`;
- 🔁 Fluent API with method chaining: `$benchmark->stop()->getTotal()`;
- 🏷️ Label-based BenchmarkManager to organize multiple timers;
- 🚫 No dependencies, zero config — drop-in ready;

Perfect for performance tuning without reaching for full profilers like Xdebug or Blackfire.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance50

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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 ~0 days

Total

3

Last Release

350d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/191ace8a9eeaa316ba5321d33ad6c61b4881e0becc8d7e7fe9e881683520d13a?d=identicon)[zoliszabo](/maintainers/zoliszabo)

---

Top Contributors

[![zoliszabo](https://avatars.githubusercontent.com/u/9949042?v=4)](https://github.com/zoliszabo "zoliszabo (5 commits)")

### Embed Badge

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

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

###  Alternatives

[cweagans/composer-configurable-plugin

Provides a lightweight configuration system for Composer plugins.

101.9M2](/packages/cweagans-composer-configurable-plugin)

PHPackages © 2026

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