php-bench:对 PHP 进行基准测试,最简单的方法

时间:2021-06-27 11:35:14
【文件属性】:
文件名称:php-bench:对 PHP 进行基准测试,最简单的方法
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-27 11:35:14
PHP PHP 基准测试 - 简单的方法 这旨在使 PHP 基准测试变得容易。 安装 git clone git@github.com:jacobbednarz/php-bench.git 用法 要运行基准测试,您需要将该类包含在一个文件中并实例化该类。 <?php include_once 'path/to/benchmark.php' ; $ b = new Benchmark ; 之后,您需要添加“报告”和您希望进行基准测试的方法。 <?php include_once 'path/to/benchmark.php' ; // Here are the methods we want to benchmark against each other. function my_method () { return "a" . "b" ; } function my_method2
【文件预览】:
php-bench-master
----benchmark.php(3KB)
----README.md(1KB)

网友评论