benchmarks/benchmark_parser.rb in json_pure-1.0.2 vs benchmarks/benchmark_parser.rb in json_pure-1.0.3
- old
+ new
@@ -8,10 +8,10 @@
warmup true
duration 10
def setup
- a = [ nil, false, true, "fÖßÄr", [ "n€st€d", true ], { "fooß" => "bär", "quux" => true } ]
+ a = [ nil, false, true, "fÖß\nÄr", [ "n€st€d", true ], { "fooß" => "bär", "qu\r\nux" => true } ]
@big = a * 100
@json = JSON.generate(@big)
end
def benchmark_parser