Tinkerwell - The PHP Scratchpad

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

OpenAI Releases GPT-5.3-Codex, a New Codex Model for Agent-Style Development image

OpenAI Releases GPT-5.3-Codex, a New Codex Model for Agent-Style Development

Read article
`hasMany()` Collection Method in Laravel 12.50.0 image

`hasMany()` Collection Method in Laravel 12.50.0

Read article
Manage PostgreSQL Databases Directly in VS Code with Microsoft's Extension image

Manage PostgreSQL Databases Directly in VS Code with Microsoft's Extension

Read article
Laravel Debugbar v4.0.0 is released image

Laravel Debugbar v4.0.0 is released

Read article
Speeding Up Laravel News With Cloudflare image

Speeding Up Laravel News With Cloudflare

Read article
Query Builder Expression Aliases in Laravel 12.48 image

Query Builder Expression Aliases in Laravel 12.48

Read article
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $3200/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media