Skip to content

Instantly share code, notes, and snippets.

@daGrevis
Created February 14, 2012 15:46
Show Gist options
  • Select an option

  • Save daGrevis/1827662 to your computer and use it in GitHub Desktop.

Select an option

Save daGrevis/1827662 to your computer and use it in GitHub Desktop.
Time benchmark in Python
import time
t1 = time.time()
r = []
for i in range(1000000):
r.append(i)
t2 = time.time() - t1
print t2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment