Skip to content

Instantly share code, notes, and snippets.

@lloyd
Created November 25, 2009 23:23
Show Gist options
  • Save lloyd/243089 to your computer and use it in GitHub Desktop.
Save lloyd/243089 to your computer and use it in GitHub Desktop.
tyler's benchmark:
[lth@clover py-yajl]$ python compare.py
yajl serialize: 0.237 deserialize: 0.251 total: 0.488
cjson serialize: 0.375 deserialize: 0.145 total: 0.521
simplejson serialize: 0.927 deserialize: 0.830 total: 1.757
stdlib json serialize: 3.733 deserialize: 12.698 total: 16.431
mik's benchmark:
[lth@clover py-yajl]$ python jsonperf.py
............................................................
ParseTime: cjson 99.5765ms
ParseTime: yajl 140.0542ms
ParseTime: simplejson 223.6219ms
DumpTime: cjson 289.0192ms
DumpTime: yajl 173.9342ms
DumpTime: simplejson 196.6117ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment