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.

Github星跟蹤圖

⏱ PHP Performance tool ?

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

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

Command line preview

See how to use query logging.

Web console

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

主要指標

概覽
名稱與所有者bvanhoekelen/performance
主編程語言PHP
編程語言PHP (語言數: 3)
平台
許可證Apache License 2.0
所有者活动
創建於2017-03-13 20:01:00
推送於2024-06-04 15:49:35
最后一次提交2020-07-21 21:35:54
發布數21
最新版本名稱v2.5.1 (發布於 2020-07-21 21:36:27)
第一版名稱v1.0.1 (發布於 2017-03-23 01:53:26)
用户参与
星數522
關注者數23
派生數36
提交數328
已啟用問題?
問題數15
打開的問題數6
拉請求數9
打開的拉請求數1
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?