Class: Parser2BenchmarkYajl
- Defined in:
- lib/vendor/json_pure/benchmarks/parser2_benchmark.rb
Instance Method Summary collapse
Instance Method Details
#benchmark_parser ⇒ Object
208 209 210 |
# File 'lib/vendor/json_pure/benchmarks/parser2_benchmark.rb', line 208 def benchmark_parser @result = Yajl::Parser.new.parse(@json) end |
#generic_reset_method ⇒ Object
212 213 214 |
# File 'lib/vendor/json_pure/benchmarks/parser2_benchmark.rb', line 212 def generic_reset_method @result == @big or raise "not equal" end |