Advertisement
Guest User

Untitled

a guest
Nov 30th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. <?php
  2.  
  3. $start = microtime(true);
  4.  
  5. for($i=0; $i<1000000; $i++) {
  6. echo $i.PHP_EOL;
  7. }
  8.  
  9. $end = microtime(true);
  10. echo $end - $start;
  11.  
  12.  
  13. ____
  14.  
  15.  
  16. import time
  17. start_time = time.time()
  18.  
  19. for x in range(0, 1000000):
  20. print(x)
  21.  
  22. print(time.time() - start_time)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement