That code should only create the dict/namedtuple instance once, then access it many, many times.
The creation occurs in the --setup portion. The field accesses occur in the actual looping portion of the timeit code.
The creation occurs in the --setup portion. The field accesses occur in the actual looping portion of the timeit code.