Advertisement
teol

Benchmark

Jun 6th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. <?php
  2. $nb_occur=3000000;
  3.  
  4. $time_start = microtime(true);
  5.  
  6. for ($i=0 ; $i<$nb_occur; $i++)
  7. {
  8.     //le test
  9. }
  10.  
  11. $time_end = microtime(true);
  12. $time = $time_end - $time_start;
  13.  
  14. echo 'Durée : '.$time.' secondes<br/>';
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement