Skip to content

Comment on Speed tests for *json and cPickle in Python

Comments

And because caching systems are typically a means for speeding up reads, where the article only focuses on writes.

Python 2.5 -- including pickle's (faster) bin mode

    Starting simplejson dumps...
    done: 31.7636611462
    Starting cjson encode...
    done: 3.80062890053
    Starting pickle dumps...
    done: 10.4873199463
    Starting pickle dumps (protocol=-1 -- force HIGHEST_PROTOCOL)...
    done: 5.98110699654
    Starting simplejson loads...
    done: 138.709590197
    Starting cjson decode...
    done: 1.85300803185
    Starting pickle loads...
    done: 5.24735999107
    Starting pickle loads (protocol=-1 -- force HIGHEST_PROTOCOL)...
    done: 3.66428518295

Great point, thanks.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.