Skip to content

Instantly share code, notes, and snippets.

@cas--
Created February 15, 2014 22:24
Show Gist options
  • Save cas--/9026031 to your computer and use it in GitHub Desktop.
Save cas--/9026031 to your computer and use it in GitHub Desktop.
Timeit example
def func(val):
val**10
import timeit
timeit.repeat("for n in range(100): func(n)",
"from __main__ import func",
number=10000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment