fork(1) download
  1. <?php
  2. $iterations = 1000000;
  3. $start = microtime(true);
  4. for ($i = 0; $i < $iterations; $i++) {
  5. //TODO: add first query execution
  6. }
  7. echo (microtime(true) - $start)."\n";
  8.  
  9. $start = microtime(true);
  10. for ($i = 0; $i < $iterations; $i++) {
  11. //TODO: add second query execution
  12. }
  13. echo (microtime(true) - $start)."\n";
Success #stdin #stdout 0.21s 20568KB
stdin
Standard input is empty
stdout
0.10003805160522
0.10065507888794