PHP code example of dydro / benchmark

1. Go to this page and download the library: Download dydro/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/ */

    

dydro / benchmark example snippets


$benchmark = new Benchmark('MyProduct');
$manager = new Manager();
$manager->addBenchmark($benchmark);

$benchmark->start();
...do stuff...
$benchmark->stop();

echo $manager->getResults('MyProduct test');