Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 297 Bytes
<?php
$t1 = microtime(true);
$dice = new \Dice\Dice;
for ($i = 0; $i < 10000; $i++) {
$a = $dice->create('A');
}
$t2 = microtime(true);
$results = [
'time' => $t2 - $t1,
'files' => count(get_included_files()),
'memory' => memory_get_peak_usage()/1024/1024
];
echo json_encode($results);
You can’t perform that action at this time.