PHP code example of lavoiesl / php-benchmark
1. Go to this page and download the library: Download lavoiesl/php-benchmark library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lavoiesl / php-benchmark example snippets
$benchmark = new \Lavoiesl\PhpBenchmark\Benchmark();
$benchmark->add('md5', function() { return md5('test'); });
$benchmark->add('sha1', function() { return sha1('test'); });
$benchmark->run();
bash
composer