Skip to content

Instantly share code, notes, and snippets.

@brianmario
Created August 5, 2009 15:28
Show Gist options
  • Save brianmario/162760 to your computer and use it in GitHub Desktop.
Save brianmario/162760 to your computer and use it in GitHub Desktop.
# Starting benchmark parsing 2405005 bytes of JSON data 1 times
Yajl::FFI.parse (FFI)
13.530000 8.170000 21.700000 ( 21.802142)
Yajl::Parser.parse (C, from an IO)
0.180000 0.010000 0.190000 ( 0.200328)
Yajl::Parser.parse (C, from a String)
0.200000 0.020000 0.220000 ( 0.214135)
JSON.parse (C)
0.270000 0.020000 0.290000 ( 0.291869)
ActiveSupport::JSON.decode (Ruby/C - since the YAML extension is written in C)
3.430000 0.050000 3.480000 ( 3.491059)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment