The readme tells:
~3.5x faster than JSON.generate
~1.9x faster than JSON.parse
but when I run the tests from the benchmark directory I'm seeing JSON.parse is actually faster than Yajl and JSON.generate only ~ 20% slower, not ~ 350%. I guess the benchmarks were run when the JSON gem still only had a pure ruby implementation?
The readme tells:
but when I run the tests from the benchmark directory I'm seeing JSON.parse is actually faster than Yajl and JSON.generate only ~ 20% slower, not ~ 350%. I guess the benchmarks were run when the JSON gem still only had a pure ruby implementation?