bvanhoekelen/performance
Composer 安装命令:
composer require 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.
关键字:
README 文档
README
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
Command line preview
Web console
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 适用场景与选型建议
bvanhoekelen/performance 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 838.87k 次下载、GitHub Stars 达 520, 最近一次更新时间为 2017 年 03 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「performance」 「php」 「web」 「time」 「command line」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bvanhoekelen/performance 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bvanhoekelen/performance 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bvanhoekelen/performance 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
g4 application profiler package
CSS/Javascript Minificator, Compressor and Concatenator for TYPO3 - highly configurable frontend asset optimization for CSS/JS merging, minification and compression with optional body parsing, async/defer loading, inline output, data-ignore exclusions, SRI integrity validation/calculation, external
WordPress mu-plugin to remove jQuery Migrate from the list of jQuery dependencies and to allow jQuery to enqueue before </body> instead of in the <head>.
Store your language lines in the database, yaml or other sources
Create link to static resources with cache-breaking segment based on md5 of the file
统计信息
- 总下载量: 838.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 522
- 点击次数: 37
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2017-03-22



