Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $start = microtime(true);
- for($i=0; $i<1000000; $i++) {
- echo $i.PHP_EOL;
- }
- $end = microtime(true);
- echo $end - $start;
- ____
- import time
- start_time = time.time()
- for x in range(0, 1000000):
- print(x)
- print(time.time() - start_time)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement