Skip to content

Instantly share code, notes, and snippets.

@wallerdev
Created January 26, 2012 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wallerdev/1685905 to your computer and use it in GitHub Desktop.
Save wallerdev/1685905 to your computer and use it in GitHub Desktop.
The hash included field names for every field, the array was just the data values.
These are all averages over 10 times.
JSON hash: 1.93s
JSON array: 0.63s
JSON ext hash: 0.36s
JSON ext array: 0.27s
MSG PACK hash: 0.32s
MSG PACK array: 0.28s
YAJL hash: 0.32s
YAJL array: 0.26s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment