GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 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.

BranchesTags
Open more actions menu

Latest commit

 

History

330 Commits
330 Commits

Folders and files

NameName
Last commit message
Last commit date
assets/raw
assets/raw
 
 
examples
examples
 
 
screenshots/examples
screenshots/examples
 
 
src
src
 
 
tests/Unit
tests/Unit
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
BACKLOG.md
BACKLOG.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 

Repository files navigation

⏱ PHP Performance tool 🛠

Hex.pm GitHub release Packagist Github issues Travis branch Travis branch Build: Master|Develop

PHP performance tool

Highlight

  • Measure easily the performance of your PHP script across multiple platforms
  • Support for Laravel framework » Laravel
  • Support interface web, web console and command line
  • Export results to class, file or json string » how to use query logging
  • Print information about PHP version, max exaction time and max memory
  • Display current user and process id » how to display username and process id
  • Support multiple points » how to use multiple points
  • Measure time, memory usage and memory peak
  • Switch automatically between interfaces
  • Log database queries » how to use query logging
  • Live function » how to use
  • Easy to install » installation
  • Support PHP version 5.6, 7.0, 7.1, 7.2
  • Clearly and active wiki » Wiki
  • Love feedback » backlog or create issues

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

  • Wiki
  • Config items
  • Backlog
  • Change log
  • Packagist

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.

  • Open backlog
  • Create 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();

About

⏱ 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.

Topics

analyzercommand-linecommand-line-toolcomposercomposer-commandsdatabaseexportlaravelmeasurepackagistperformanceperformance-analysisperformance-testingphpphp-performancequeryquery-optimization

Resources

Readme
Apache-2.0 license
Activity

Stars

520 stars

Watchers

21 watching

Forks

39 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.