Created
November 19, 2010 23:07
-
-
Save cmer/707375 to your computer and use it in GitHub Desktop.
YAML, ZAML, JSON & Marshal benchmarks (http://blog.carlmercier.com/2010/11/19/yaml-zaml-marshal-json-benchmark-in-ruby/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] | |
-------------------------------------------------------------------- | |
YAML.load: 0.7924 | |
Marshal.load: 0.0742 | |
to_yaml: 5.1661 | |
ZAML.dump: 1.4574 | |
to_json: 0.1152 | |
Marshal.dump: 0.0845 | |
ruby 1.8.7 (2010-04-19 patchlevel 253) [i686-darwin10.4.0], MBARI 0x6770, Ruby Enterprise Edition 2010.02 | |
-------------------------------------------------------------------- | |
YAML.load: 0.7976 | |
Marshal.load: 0.0864 | |
to_yaml: 4.9012 | |
ZAML.dump: 1.3508 | |
to_json: 0.0940 | |
Marshal.dump: 0.0812 | |
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0] | |
-------------------------------------------------------------------- | |
YAML.load: 0.7079 | |
YAML.load (Psych): 2.6055 | |
Marshal.load: 0.0928 | |
to_yaml: 2.1682 | |
to_load (Psych): 2.2924 | |
ZAML.dump: 5.0259 | |
to_json: 0.1133 | |
Marshal.dump: 0.0908 | |
rubinius 1.1.1 (1.8.7 4018ebda 2010-11-16 JI) [x86_64-apple-darwin10.5.0] | |
-------------------------------------------------------------------- | |
YAML.load: 2.7777 | |
Marshal.load: 0.8560 | |
to_yaml: 23.5828 | |
ZAML.dump: 4.0745 | |
to_json: 3.6620 | |
Marshal.dump: 3.3797 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment