PHPackages                             bvanhoekelen/performance - 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. [Database &amp; ORM](/categories/database)
4. /
5. bvanhoekelen/performance

ActiveLibrary[Database &amp; ORM](/categories/database)

bvanhoekelen/performance
========================

PHP performance tool analyser your script on time, memory usage and db query. Support Laravel and Composer for web, web console and command line interfaces.

v2.6.0(4mo ago)522846.1k↑101.8%40[6 issues](https://github.com/bvanhoekelen/performance/issues)3Apache-2.0PHPPHP &gt;=5.6.0CI failing

Since Mar 23Pushed 4mo ago22 watchersCompare

[ Source](https://github.com/bvanhoekelen/performance)[ Packagist](https://packagist.org/packages/bvanhoekelen/performance)[ RSS](/packages/bvanhoekelen-performance/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (5)Versions (25)Used By (3)

⏱ PHP Performance tool 🛠
========================

[](#-php-performance-tool-)

[![Hex.pm](https://camo.githubusercontent.com/deba58212918eeb974a7659ab52917cf517a949f1bb99bce9bed6c74a02adb6f/68747470733a2f2f696d672e736869656c64732e696f2f686578706d2f6c2f706c75672e7376673f6d61784167653d32353932303030267374796c653d666c61742d737175617265)](https://github.com/bvanhoekelen/performance/blob/master/LICENSE)[![GitHub release](https://camo.githubusercontent.com/91eb9811a981916bb7552a2e784678d3933c5ddd138d9f3ac86d507e53a060b4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6276616e686f656b656c656e2f706572666f726d616e63652e7376673f7374796c653d666c61742d737175617265)](https://github.com/bvanhoekelen/performance/releases)[![Packagist](https://camo.githubusercontent.com/17ceaeda9bd227863fba6379700928f617da65d076f6d4fbc1b1ee608a2f507e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6276616e686f656b656c656e2f706572666f726d616e63652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bvanhoekelen/performance)[![Github issues](https://camo.githubusercontent.com/cd8ea6636f22087d9ed22d917f8a7901ad8b9dfb307291abd94b8c97573819e4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6276616e686f656b656c656e2f706572666f726d616e63652e7376673f7374796c653d666c61742d737175617265)](https://github.com/bvanhoekelen/performance/issues)[![Travis branch](https://camo.githubusercontent.com/1532f907093134b82091c9890dc8a74f3afa872162696e231ec24ca78cce8657/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6276616e686f656b656c656e2f706572666f726d616e63652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bvanhoekelen/performance)[![Travis branch](https://camo.githubusercontent.com/bc29547a704b624dda60331cc15651876ca0264144493c9d1ac120e90fb15a0f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6276616e686f656b656c656e2f706572666f726d616e63652f646576656c6f702e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bvanhoekelen/performance) Build: Master|Develop

[![PHP performance tool](/assets/raw/php-performance-tool.png)](/assets/raw/php-performance-tool.png)

Highlight
---------

[](#highlight)

- Measure easily the performance of your PHP script across multiple platforms
- Support for Laravel framework » [Laravel](https://laravel.com)
- Support interface web, web console and command line
- Export results to class, file or json string » [how to use query logging](https://github.com/bvanhoekelen/performance/wiki/Export-handler)
- Print information about PHP version, max exaction time and max memory
- Display current user and process id » [how to display username and process id](https://github.com/bvanhoekelen/performance/wiki/Config-run-information)
- Support multiple points » [how to use multiple points](https://github.com/bvanhoekelen/performance/wiki/Multiple-points)
- Measure time, memory usage and memory peak
- Switch automatically between interfaces
- Log database queries » [how to use query logging](https://github.com/bvanhoekelen/performance/wiki/Config-query-log)
- Live function » [how to use](#command-line)
- Easy to install » [installation](#installation)
- Support PHP version 5.6, 7.0, 7.1, 7.2
- Clearly and active wiki » [Wiki](https://github.com/bvanhoekelen/performance/wiki)
- Love feedback » [backlog](https://github.com/bvanhoekelen/performance/blob/master/BACKLOG.md) or [create issues](https://github.com/bvanhoekelen/performance/issues)

Easy to use
-----------

[](#easy-to-use)

```
// Add namespace at the top
use Performance\Performance;

// Set measure point
Performance::point();

//
// Run test code
//

// Finish all tasks and show test results
Performance::results();
```

See the [function overview](https://github.com/bvanhoekelen/performance/wiki/Doc-functions) for more functions.

Web preview
-----------

[](#web-preview)

[![PHP performance tool for web](/assets/raw/php-performance-tool-web-support.png)](/assets/raw/php-performance-tool-web-support.png)

Command line preview
--------------------

[](#command-line-preview)

[![PHP performance tool for command line](/assets/raw/php-performance-tool-command-line.png)](/assets/raw/php-performance-tool-command-line.png)

See [how to use query logging](https://github.com/bvanhoekelen/performance/wiki/Config-query-log).

Web console
-----------

[](#web-console)

[![PHP performance tool with full date review](/assets/raw/php-performance-tool-full-data-review.png)](/assets/raw/php-performance-tool-full-data-review.png)

See [how to use query logging](https://github.com/bvanhoekelen/performance/wiki/Config-query-log).

See [how to export data](https://github.com/bvanhoekelen/performance/wiki/Export-handler).

See [more info over data review](https://github.com/bvanhoekelen/performance/wiki/Config-presenter).

Functions
---------

[](#functions)

Set measuring point with or without label

```
Performance::point(  );
```

Finish previous measuring point

```
Performance::finish();
```

Finish all measuring points and return test results

```
Performance::results();
```

See the [function overview](https://github.com/bvanhoekelen/performance/wiki/Doc-functions) for more.

Command line
------------

[](#command-line)

Run the performance test for the command line

```
// Normal
$ php your_script.php

// Or live version
$ php your_script.php --live
```

Help, docs and links
====================

[](#help-docs-and-links)

- [Wiki](https://github.com/bvanhoekelen/performance/wiki)
- [Config items](https://github.com/bvanhoekelen/performance/wiki/Doc-config)
- [Backlog](https://github.com/bvanhoekelen/performance/blob/master/BACKLOG.md)
- [Change log](https://github.com/bvanhoekelen/performance/blob/master/CHANGELOG.md)
- [Packagist](https://packagist.org/packages/bvanhoekelen/performance)

Backlog &amp; Feedback
----------------------

[](#backlog--feedback)

If you have any suggestions to improve this performance tool? Please add your feature, bug or improvement to the [BACKLOG.dm](https://github.com/bvanhoekelen/performance/blob/master/BACKLOG.md). Or create a [issues](https://github.com/bvanhoekelen/performance/issues).

- [Open backlog](https://github.com/bvanhoekelen/performance/blob/master/BACKLOG.md)
- [Create issues](https://github.com/bvanhoekelen/performance/issues)

Installation
============

[](#installation)

Install with Laravel
--------------------

[](#install-with-laravel)

Get PHP performance tool by running the Composer command in the command line.

```
 $ composer require bvanhoekelen/performance

```

Open your file for the performance test.

```
// Add namespace at the top
use Performance\Performance;

// Set measure point
Performance::point();

//
// Run test code
//

// Finish all tasks and show test results
Performance::results();
```

Install with Composer
---------------------

[](#install-with-composer)

Get PHP performance by running the Composer command in the command line.

```
 $ composer require bvanhoekelen/performance

```

Open your file for the performance test.

```
// Require vender autoload
require_once('../vendor/autoload.php');

// Add namespace at the top
use Performance\Performance;

// Set measure point
Performance::point();

//
// Run test code
//

// Finish all tasks and show test results
Performance::results();
```

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance76

Regular maintenance activity

Popularity59

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 96.8% 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 ~155 days

Recently: every ~674 days

Total

22

Last Release

132d ago

Major Versions

v1.0.7 → v2.0.02017-04-26

PHP version history (2 changes)v1.0.1PHP &gt;=5.4.0

v2.5.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae4ee069f1a323e71f722f3f738e807b7ed7403444054bd64d01618ef1de121b?d=identicon)[Bart van Hoekelen](/maintainers/Bart%20van%20Hoekelen)

---

Top Contributors

[![bvanhoekelen](https://avatars.githubusercontent.com/u/5804062?v=4)](https://github.com/bvanhoekelen "bvanhoekelen (305 commits)")[![bart-digitalenterprises](https://avatars.githubusercontent.com/u/53082269?v=4)](https://github.com/bart-digitalenterprises "bart-digitalenterprises (3 commits)")[![nunomaduro](https://avatars.githubusercontent.com/u/5457236?v=4)](https://github.com/nunomaduro "nunomaduro (3 commits)")[![MarouaneRag](https://avatars.githubusercontent.com/u/39207036?v=4)](https://github.com/MarouaneRag "MarouaneRag (1 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")[![Jazz-Man](https://avatars.githubusercontent.com/u/6892898?v=4)](https://github.com/Jazz-Man "Jazz-Man (1 commits)")[![lex111](https://avatars.githubusercontent.com/u/4408379?v=4)](https://github.com/lex111 "lex111 (1 commits)")

---

Tags

analyzercommand-linecommand-line-toolcomposercomposer-commandsdatabaseexportlaravelmeasurepackagistperformanceperformance-analysisperformance-testingphpphp-performancequeryquery-optimizationphpcommand-lineterminalweblaraveldatabaseperformanceexportanalysermemoryquerytimecompressorquery logperformance toolphp performance toolphp-performancephp performance analyserquery analyserdatabase query log

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bvanhoekelen-performance/health.svg)

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

###  Alternatives

[nwidart/db-exporter

Export your database quickly and easily as a Laravel Migration and all the data as a Seeder class.

37739.1k](/packages/nwidart-db-exporter)[renoki-co/l1

Laravel integration for Cloudflare Workers services.

16321.9k](/packages/renoki-co-l1)[sarfraznawaz2005/indexer

Laravel package to monitor SELECT queries and offer best possible INDEX fields.

562.7k](/packages/sarfraznawaz2005-indexer)[itpathsolutions/dbstan

Database Standardization and Analysis Tool for Laravel

492.8k](/packages/itpathsolutions-dbstan)

PHPackages © 2026

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