Created
June 16, 2020 16:15
-
-
Save Animesh-Ghosh/b05ae2cd0d4651554d99a46b8f21516f to your computer and use it in GitHub Desktop.
This is slow.
This file contains hidden or 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
| import timeit | |
| def main(): | |
| f = open('sum.py') | |
| program = f.readlines() | |
| f.close() | |
| if __name__ == '__main__': | |
| # takes ~17 seconds on i5 4440 @ 3.1 GHz with 8 GB DDR3 @ 1333 MHz | |
| print(timeit.timeit(main, number=100000)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment