I don't know how to interpret the output from Python's timeit.timeit() function. My code is as follows:
import timeit
setup = """
import pydash
list_of_objs = [
{},
{'a': 1, 'b': 2, 0: 0},
{'a': 1, 'c': 1, 'p': lambda x: x}
]
"""
print(timeit.timeit("pydash.filter_(list_of_objs, {'a': 1})", setup=setup))
The output from this is 11.85382745500101
. How do I interpret this number?
repeat
1e6 times with anumber
of 1 and take the minimum (implied by the docs)? – Stanfordstang