Skip to content

Instantly share code, notes, and snippets.

@methane
Created February 14, 2012 09:16
Show Gist options
  • Select an option

  • Save methane/1825050 to your computer and use it in GitHub Desktop.

Select an option

Save methane/1825050 to your computer and use it in GitHub Desktop.
In [1]: def loop():
...: for i in xrange(10**5 * 30):
...: pass
...:
In [2]: %timeit loop()
10 loops, best of 3: 56.8 ms per loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment