News for hackers. Stuff that matters.
Re:Why Python Runs Slow, Part 1: Data Structures by the_mitsuhiko on Thursday February 13, 2014 @08:11AM (#7231094)
Yep. Because the dictionary literal gets created via opcodes in the interpreter loop whereas the named tuple pays the price of calling a function and setting up an interpreter frame.
Re:Why Python Runs Slow, Part 1: Data Structures by mjschultz on Thursday February 13, 2014 @10:39AM (#7231864)
The --setup code (creating the namedtuple and dict) is only executed once.

The timed portion is simply the field accesses.