YAML vs JSON Performance Benchmark

Benchmarking serialization speed of YAML, JSON, Marshal, and MessagePack in Ruby, JRuby, and Rubinius

Benchmarking serialization speed of YAML, JSON, Marshal, and MessagePack in Ruby, JRuby, and Rubinius

Due to  YAML’s richness and human readability, you would expect it to be slower than native serialization of JSON. This would be correct. JSON serialization/Deserialization is so much faster than YAML serialization/Deserialization in Almost all languages.


Reference: https://gist.github.com/havenwood/4513627