PHP code example of bogkov / execution-speed

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

    

bogkov / execution-speed example snippets



$executionSpeed = new Bogkov\ExecutionSpeed\ExecutionSpeed($max = 50);
$executionSpeed->push($count = 100, $duration = 10);
$executionSpeed->push($count = 120, $duration = 11);
$executionSpeed->push($count = 90, $duration = 8);

echo 'Speed: ' . $executionSpeed->getSpeed($coefficient = 0.3, $precision = 2); // Speed: 10.85