Sunday, August 22
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...
Comments are disabled.
Post is locked.
Just having a little data structure bakeoff here at PixyLabs, comparing Treedicts with Structures with named tuples. And the winnerer is...
NativeThe 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.
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
Posted by: Pixy Misa at
03:14 PM
| No Comments
| Add Comment
| Trackbacks (Suck)
Post contains 110 words, total size 1 kb.
45kb generated in CPU 0.0485, elapsed 0.135 seconds.
54 queries taking 0.1285 seconds, 345 records returned.
Powered by Minx 1.1.6c-pink.
54 queries taking 0.1285 seconds, 345 records returned.
Powered by Minx 1.1.6c-pink.