Skip to content

Instantly share code, notes, and snippets.

@ksss
Created October 27, 2013 05:03
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 ksss/7178157 to your computer and use it in GitHub Desktop.
Save ksss/7178157 to your computer and use it in GitHub Desktop.
object AsciiPack.pack AsciiPack.unpack MessagePack.pack MessagePack.unpack JSON.generate JSON.parse Marshal.dump Marshal.load
positive fixint 10.5 9.0 10.2 34.5 34.2 41.0 27.1 17.3
uint 64 11.0 12.1 14.8 23.3 43.6 49.0 36.8 27.1
int 4 9.9 8.8 9.6 39.6 40.4 41.5 21.5 22.5
int 64 10.8 10.2 12.1 22.2 41.9 34.7 31.5 26.3
float 64 8.4 10.2 12.0 35.4 33.1 35.4 23.5 24.4
fixstr 10.5 14.8 11.4 24.0 39.5 27.8 35.8 27.9
str 32 1900.7 274.0 347.2 45.7 4386.7 1935.2 302.6 438.2
map 4 8.7 10.2 9.7 36.3 31.1 26.7 32.4 22.5
map 16 146.6 1308.1 160.0 1452.4 2178.1 3029.0 2630.5 2586.4
array 4 9.7 15.4 9.9 34.1 35.2 23.5 30.5 21.5
array 16 47.5 89.0 49.4 136.8 130.5 349.2 362.7 272.0
nil 8.6 9.7 10.5 33.5 36.2 26.0 48.1 37.2

count:10000 unit:/ms total:26.289065s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment