Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4312cd24ef
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.334 kb
<?php
ini_set('memory_limit', '256M');
$COUNT = 1e6;
$a = array();
$start = microtime(true);
for ($i = 0; $i < $COUNT; $i++) {
array_push($a, $i);
}
$ms = (microtime(true) - $start) * 1000;
$mhz = ((($COUNT / ($ms / 1000)) / 1e6));
$million = $COUNT / 1e6;
echo sprintf("%.2f Mhz (%d million in %d ms)\n", $mhz, $million, $ms);
Jump to Line
Something went wrong with that request. Please try again.