Skip to content

Instantly share code, notes, and snippets.

@ouranos
Created June 9, 2016 04:18
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 ouranos/eb05d0bb1329325bd627ec3bf8f6fc52 to your computer and use it in GitHub Desktop.
Save ouranos/eb05d0bb1329325bd627ec3bf8f6fc52 to your computer and use it in GitHub Desktop.
Array serialisation bench
∫ ruby serialize_bench.rb
Rehearsal -------------------------------------------
json 0.170000 0.010000 0.180000 ( 0.174912)
yaml 6.350000 0.000000 6.350000 ( 6.353721)
marshal 0.170000 0.000000 0.170000 ( 0.171184)
bson 0.210000 0.000000 0.210000 ( 0.213753)
yajl 0.130000 0.000000 0.130000 ( 0.130591)
oj 0.080000 0.000000 0.080000 ( 0.075798)
eval 0.370000 0.000000 0.370000 ( 0.370350)
---------------------------------- total: 7.490000sec
user system total real
json 0.160000 0.000000 0.160000 ( 0.159821)
yaml 6.090000 0.000000 6.090000 ( 6.096660)
marshal 0.150000 0.000000 0.150000 ( 0.155848)
bson 0.210000 0.000000 0.210000 ( 0.215582)
yajl 0.130000 0.000000 0.130000 ( 0.126765)
oj 0.080000 0.000000 0.080000 ( 0.074176)
eval 0.370000 0.000000 0.370000 ( 0.367046)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment