diff options
Diffstat (limited to 'lib/ffi_yajl/benchmark/parse_stream.rb')
-rw-r--r-- | lib/ffi_yajl/benchmark/parse_stream.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ffi_yajl/benchmark/parse_stream.rb b/lib/ffi_yajl/benchmark/parse_stream.rb index 94c5ac3..955f22f 100644 --- a/lib/ffi_yajl/benchmark/parse_stream.rb +++ b/lib/ffi_yajl/benchmark/parse_stream.rb @@ -20,7 +20,7 @@ times = ARGV[0] ? ARGV[0].to_i : 100 puts "Starting benchmark parsing JSON stream (#{File.size(filename)} bytes of JSON data with 430 JSON separate strings) #{times} times\n\n" Benchmark.bmbm { |x| parser = Yajl::Parser.new - parser.on_parse_complete = lambda {|obj|} + parser.on_parse_complete = lambda { |obj| } x.report { puts "Yajl::Parser#parse" times.times { @@ -51,4 +51,4 @@ Benchmark.bmbm { |x| } end } -json.close
\ No newline at end of file +json.close |