maLakai

for_vs_fill_03_ran3times

Mar 18th, 2011
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. ...\xampp\php>php.exe -f "...\xampp\htdocs\randArray_for.php"
  2. for loop ran 100000 times: 0.40251898765564 seconds, mem: 496.
  3.  
  4. ...\xampp\php>php.exe -f "...\xampp\htdocs\randArray_for.php"
  5. for loop ran 100000 times: 0.39153790473938 seconds, mem: 496.
  6.  
  7. ...\xampp\php>php.exe -f "...\xampp\htdocs\randArray_for.php"
  8. for loop ran 100000 times: 0.432049036026 seconds, mem: 496.
  9.  
  10. ...\xampp\php>php.exe -f "...\xampp\htdocs\randArray_fill.php"
  11. array_fill ran 100000 times: 0.20472693443298 seconds, mem: 336.
  12.  
  13. ...\xampp\php>php.exe -f "...\xampp\htdocs\randArray_fill.php"
  14. array_fill ran 100000 times: 0.20631504058838 seconds, mem: 336.
  15.  
  16. ...\xampp\php>php.exe -f "...\xampp\htdocs\randArray_fill.php"
  17. array_fill ran 100000 times: 0.18576717376709 seconds, mem: 336.
Advertisement
Add Comment
Please, Sign In to add comment