Skip to content

Commit 28cb818

Browse files
authored
Merge pull request #1 from Watson1978/add-parser-benchmark
Add new Oj parser into benchmark
2 parents d44ef9c + 7710331 commit 28cb818

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

benchmark/parser.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def benchmark_parsing(name, json_output)
2323
x.report("json") { JSON.parse(json_output) } if RUN[:json]
2424
x.report("oj") { Oj.load(json_output) } if RUN[:oj]
2525
x.report("oj strict") { Oj.strict_load(json_output) } if RUN[:oj]
26+
x.report("Oj::Parser") { Oj::Parser.usual.parse(json_output) } if RUN[:oj]
2627
x.report("fast_jsonparser") { FastJsonparser.parse(json_output) } if RUN[:fast_jsonparser]
2728
x.report("rapidjson") { RapidJSON.parse(json_output) } if RUN[:rapidjson]
2829
end

0 commit comments

Comments
 (0)