mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[ruby/json] Use JSON.generate instead of JSON.dump for benchmarking
97b61edce1
This commit is contained in:
parent
4a5e44953a
commit
b042d9d9c1
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def implementations(ruby_obj)
|
|||
state = JSON::State.new(JSON.dump_default_options)
|
||||
{
|
||||
json_state: ["json (reuse)", proc { state.generate(ruby_obj) }],
|
||||
json: ["json", proc { JSON.dump(ruby_obj) }],
|
||||
json: ["json", proc { JSON.generate(ruby_obj) }],
|
||||
oj: ["oj", proc { Oj.dump(ruby_obj) }],
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue