Get expert guidance in a few days with a Laravel code review

Performance

bvanhoekelen/performance image

Performance stats

Downloads
468.1K
Stars
517
Open Issues
7
Forks
37

View on GitHub →

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.

⏱ PHP Performance tool 🛠

Build: Master|Develop

PHP performance tool

Highlight

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 for more functions.

Web preview

PHP performance tool for web

Command line preview

PHP performance tool for command line

See how to use query logging.

Web console

PHP performance tool with full date review

See how to use query logging.

See how to export data.

See more info over data review.

Functions

Set measuring point with or without label

Performance::point( <optional:label> );

Finish previous measuring point

Performance::finish();

Finish all measuring points and return test results

Performance::results();

See the function overview for more.

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

Backlog & Feedback

If you have any suggestions to improve this performance tool? Please add your feature, bug or improvement to the BACKLOG.dm. Or create a issues.

Installation

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

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();
Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Bvanhoekelen Performance Related Articles

Debounceable Queued Jobs in Laravel 13.6.0 image

Debounceable Queued Jobs in Laravel 13.6.0

Read article
Build Custom Middleware for Query Performance Monitoring and Optimization in Laravel with MongoDB image

Build Custom Middleware for Query Performance Monitoring and Optimization in Laravel with MongoDB

Read article
Debugging production Laravel apps without losing your mind image

Debugging production Laravel apps without losing your mind

Read article
Drop in comments for Filament with Commentions image

Drop in comments for Filament with Commentions

Read article
PhpStorm 2026.1 Released image

PhpStorm 2026.1 Released

Read article
Liminal: A Browser-Based IDE for Laravel Powered by WebAssembly image

Liminal: A Browser-Based IDE for Laravel Powered by WebAssembly

Read article
CodeKudu logo

CodeKudu

Stand-ups, Retrospectives, and 360° Feedback for the entire team. 50% off with code LARAVELNEWS.

CodeKudu
Celebian logo

Celebian

Celebian is a social media marketing agency specializing in helping their clients go viral on TikTok. Whether you're looking to reach a bigger audience or gain more Tiktok followers, likes, and views, they've got you covered.

Celebian
Securing Laravel logo

Securing Laravel

The essential security resource for Laravel devs, covering everything you need to keep your apps secure. Sign up to receive weekly security tips and monthly in depth articles, diving deep into security concepts you need to know!

Securing Laravel
Tighten logo

Tighten

We help companies turn great ideas into amazing apps, products, and services.

Tighten
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech