Skip to content

Instantly share code, notes, and snippets.

@mathias
Created July 26, 2011 18:27
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 mathias/1107452 to your computer and use it in GitHub Desktop.
Save mathias/1107452 to your computer and use it in GitHub Desktop.
$ ruby yml_vs_json.rb
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
--------------------------------------------------------------------
YAML.load: 1.3839
YAML.load (Psych): 5.7482
Marshal.load: 0.3741
to_yaml: 4.8386
to_load (Psych): 12.0944
to_json: 0.3005
Marshal.dump: 0.4385
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment