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 9ca0050..7fbbb9e 100644 --- a/lib/ffi_yajl/benchmark/parse_stream.rb +++ b/lib/ffi_yajl/benchmark/parse_stream.rb @@ -33,7 +33,7 @@ Benchmark.bmbm do |x| puts "JSON.parse" times.times do json.rewind - while chunk = json.gets + while ( chunk = json.gets ) JSON.parse(chunk, max_nesting: false) end end @@ -44,7 +44,7 @@ Benchmark.bmbm do |x| puts "ActiveSupport::JSON.decode" times.times do json.rewind - while chunk = json.gets + while ( chunk = json.gets ) ActiveSupport::JSON.decode(chunk) end end |