Last active
August 29, 2015 13:57
-
-
Save ravenscroftj/9388067 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in range(100000000): | |
print(i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time python3 generator.py > result.txt | |
python3 generator.py > result.txt 68.76s user 0.83s system 93% cpu 1:14.35 total | |
time python3 while.py > result.txt | |
python3 while.py > result.txt 76.18s user 0.83s system 93% cpu 1:21.97 total |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i = 0 | |
while i < 100000000: | |
i += 1 | |
print(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment