Skip to content

Instantly share code, notes, and snippets.

@odedlaz
Created December 5, 2016 08:12
Show Gist options
  • Save odedlaz/6a57c9377d570c1c95777edbd8cc343e to your computer and use it in GitHub Desktop.
Save odedlaz/6a57c9377d570c1c95777edbd8cc343e to your computer and use it in GitHub Desktop.
std_print.py
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