百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

performance

> 后端框架
开源

⏱ PHP 性能工具可实时分析您的脚本、内存使用情况和数据库查询。支持 Laravel 和 Composer 的 Web、Web 控制台和命令行接口。

521 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

⏱ PHP 性能工具可实时分析您的脚本、内存使用情况和数据库查询。支持 Laravel 和 Composer 的 Web、Web 控制台和命令行接口。

⏱ PHP Performance tool

Build: Master|Develop

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

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

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

php
Performance::point(  );

Finish previous measuring point

php
Performance::finish();

Finish all measuring points and return test results

php
Performance::results();

See the function overview for more.

Command line

Run the performance test for the command line

php
// 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.

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

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.

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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPanalyzercommand-linecommand-line-toolcomposer

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架