PHP code example of quillstack / benchmark

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

    

quillstack / benchmark example snippets




t = microtime(true);

$container = new Container();
$service = $container->get(ExampleService::class);

$time = microtime(true) - $start;
$roundedTime = round($time, 6);

echo $roundedTime . PHP_EOL;

./vendor/bin/benchmark benchmark:console "php ../test.php" 10 2

./command_line.sh "php ../test.php" 10 2

./command_line.sh "php ../test.php" 1000 100

./command_line.sh "php ../test.php" 1000 2