Sunday, August 22

Geek

Well, That's Promising

Just having a little data structure bakeoff here at PixyLabs, comparing Treedicts with Structures with named tuples.  And the winnerer is...
Native
fromdict * 10000: 0.27s 36861.3/s
fromnest * 10000: 1.94s 5147.4/s
tostruct * 10000: 6.02s 1661.8/s
fromstruct * 10000: 4.44s 2254.6/s
tontuple * 10000: 0.02s 446387.8/s
fromntuple * 10000: 0.03s 385176.6/s

Psyco
fromdict * 10000: 0.26s 38590.5/s
fromnest * 10000: 1.76s 5678.3/s
tostruct * 10000: 4.75s 2106.4/s
fromstruct * 10000: 3.90s 2567.0/s
tontuple * 10000: 0.02s 575279.3/s
fromntuple * 10000: 0.01s 778944.4/s
The named tuple code isn't complete yet, and they don't do type checking (which Structures do), but 250x the performance?  I think we have a winner.

Posted by: Pixy Misa at 03:14 PM | No Comments | Add Comment | Trackbacks (Suck)
Post contains 110 words, total size 1 kb.

Comments are disabled. Post is locked.
44kb generated in CPU 0.0186, elapsed 0.2615 seconds.
54 queries taking 0.2538 seconds, 336 records returned.
Powered by Minx 1.1.6c-pink.