Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 3.4 & JSON 2.9 is now faster #29

Open
Calyhre opened this issue Jan 15, 2025 · 0 comments
Open

Ruby 3.4 & JSON 2.9 is now faster #29

Calyhre opened this issue Jan 15, 2025 · 0 comments

Comments

@Calyhre
Copy link

Calyhre commented Jan 15, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant