fast_jsonparser icon indicating copy to clipboard operation
fast_jsonparser copied to clipboard

Ruby 3.4 & JSON 2.9 is now faster

Open Calyhre opened this issue 11 months ago • 0 comments

For those wondering in 2025, A combo Ruby 3.4.1 + JSON 2.9.1 is nowadays faster than both this lib or OJ (tested with latest as of today, 3.16.9). I did not tried any other Ruby combinations

./benchmark/file_ips_benchmark.rb

ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24]
Warming up --------------------------------------
      FastJsonparser   229.000 i/100ms
                  OJ   159.000 i/100ms
       standard JSON   257.000 i/100ms
Calculating -------------------------------------
      FastJsonparser      2.256k (± 0.9%) i/s  (443.28 μs/i) -     11.450k in   5.075995s
                  OJ      1.592k (± 1.1%) i/s  (628.23 μs/i) -      8.109k in   5.094883s
       standard JSON      2.568k (± 1.4%) i/s  (389.48 μs/i) -     12.850k in   5.005885s

Calyhre avatar Jan 15 '25 16:01 Calyhre