Simple benchmark tests with UBench

Code
<?php

$bench 
= new Ubench();

$bench->start();

// some code
$array1 range(110000);
$array2 range(110000);
$array array_merge($array1$array2);

$bench->end();

echo 
$bench->getTime() . PHP_EOL;

echo 
$bench->getMemoryPeak() . PHP_EOL;

echo 
$bench->getMemoryUsage() . PHP_EOL;
Result
2ms
16.00Mb
16.00Mb