summaryrefslogtreecommitdiff
path: root/lib/ffi_yajl/benchmark
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-06-26 15:27:20 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-06-26 15:27:20 -0700
commit7eddc0953612bba57d93b85f3957f66ca774b180 (patch)
tree370cb4da1062dbd7710deda685cb5e47f5de1595 /lib/ffi_yajl/benchmark
parentee572136a5979bdb12d6e603a777db75458d0834 (diff)
downloadffi-yajl-7eddc0953612bba57d93b85f3957f66ca774b180.tar.gz
fix some chefstyle
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/ffi_yajl/benchmark')
-rw-r--r--lib/ffi_yajl/benchmark/parse_stream.rb4
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