Created
December 5, 2016 08:12
-
-
Save odedlaz/6a57c9377d570c1c95777edbd8cc343e to your computer and use it in GitHub Desktop.
std_print.py
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
| from time import time | |
| import os | |
| devnull = open(os.devnull, 'w') | |
| name = "oded" | |
| t = time() | |
| for _ in range(50000): | |
| print("my name is {} & 2*3={}".format(name, 2*3), | |
| file=devnull) | |
| print("block took {0:.3f} seconds".format(time() - t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment