Created
October 22, 2015 17:54
-
-
Save NamPNQ/b0ce0507802f65528ac6 to your computer and use it in GitHub Desktop.
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
#! /usr/bin/env python | |
import timeit | |
def f(): | |
pass | |
if __name__ == "__main__": | |
timer = timeit.Timer("__main__.f()", "import __main__") | |
result = timer.repeat(repeat=100, number=100000) | |
print("{:8.6f}".format(min(result))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment