Skip to content

Instantly share code, notes, and snippets.

@smazhara
Created March 16, 2011 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smazhara/873263 to your computer and use it in GitHub Desktop.
Save smazhara/873263 to your computer and use it in GitHub Desktop.
<?php
require_once 'Benchmark/Timer.php';
$timer = new Benchmark_Timer;
$timer->setMarker('start');
for($i = 0; $i < 1000000; $i++)
{
$stack = array();
$stack[] = true;
}
$timer->display();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment