зеркало из https://github.com/github/ruby.git
[ruby/json] Use JSON.generate instead of JSON.dump for benchmarking
https://github.com/ruby/json/commit/97b61edce1
This commit is contained in:
Родитель
4a5e44953a
Коммит
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче