skillaug/benchmark
最新稳定版本:v1.0.0
Composer 安装命令:
composer require skillaug/benchmark
包简介
Good Performance need to benchmark
README 文档
README
Find the best solution by using benchmark
Installation
composer require --dev skillaug/benchmark "~1.0.0"
Usages
Basic
\skillaug\Benchmark::begin(); // your codes for benchmark here \skillaug\Benchmark::end();
example results
Time: 74 Mili second(s)
Memory_get_usage: 26 Megabyte(s)
Memory_get_peak_usage: 25.961 Megabyte(s)
With unit options
\skillaug\Benchmark::begin([ 'time' => 's', // second(s) 'memory' => 'kb', // kilobyte(s) ]);
example results
Time: 0.0759 Second(s)
Memory_get_usage: 26624.06 Kilobyte(s)
Memory_get_peak_usage: 26584.53 Kilobyte(s)
License
The BSD 3-Clause "New" or "Revised" License.
统计信息
- 总下载量: 964
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-10-12