import pyperf runner = pyperf.Runner() runner.timeit(name="bench map", stmt="b = map(int, a)", setup="a = [1.2, 2.5, 3.7, 4.6]")