ruby/ext/json
Jean Boussier e52b47680e [ruby/json] Reduce encoding benchmark size
Profiling revealed that we were spending lots of time growing the buffer.
Buffer operations is definitely something we want to optimize, but for
this specific benchmark what we're interested in is UTF-8 scanning performance.

Each iteration of the two scaning benchmark were producing 20MB of JSON,
now they only produce 5MB.

Now:

```
== Encoding mostly utf8 (5001001 bytes)
ruby 3.4.0dev (2024-10-18T19:01:45Z master 7be9a333ca) +YJIT +PRISM [arm64-darwin23]
Warming up --------------------------------------
                json    35.000 i/100ms
                  oj    36.000 i/100ms
           rapidjson    10.000 i/100ms
Calculating -------------------------------------
                json    359.161 (± 1.4%) i/s    (2.78 ms/i) -      1.820k in   5.068542s
                  oj    359.699 (± 0.6%) i/s    (2.78 ms/i) -      1.800k in   5.004291s
           rapidjson     99.687 (± 2.0%) i/s   (10.03 ms/i) -    500.000 in   5.017321s

Comparison:
                json:      359.2 i/s
                  oj:      359.7 i/s - same-ish: difference falls within error
           rapidjson:       99.7 i/s - 3.60x  slower
```

1a338532d2
2024-10-26 18:44:15 +09:00
..
fbuffer [ruby/json] Get rid of some more outdated compatibility code 2024-10-17 13:02:13 +00:00
generator [ruby/json] Reduce encoding benchmark size 2024-10-26 18:44:15 +09:00
lib Reduce allocations in parse and load argument handling 2024-10-26 18:44:15 +09:00
parser [ruby/json] Ext::Parser avoid costly check on decimal_class when it is nil 2024-10-26 18:44:15 +09:00
depend Added depend files 2019-07-14 01:31:29 +09:00
extconf.rb Implement a freeze: parser option 2020-10-20 21:40:25 +09:00
json.gemspec [ruby/json] Added license files on gemspec 2024-10-15 11:48:32 +00:00