[ruby/json] Use JSON.generate instead of JSON.dump for benchmarking
https://github.com/ruby/json/commit/97b61edce1
This commit is contained in:
parent
4a5e44953a
commit
b042d9d9c1
@ -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…
x
Reference in New Issue
Block a user