from timeit import Timer
def cal():
i = 0
for x in range(10000):
i += 1
t = Timer(cal)
print t.timeit(100)
from timeit import Timer
def cal():
i = 0
for x in range(10000):
i += 1
t = Timer(cal)
print t.timeit(100)