lib/volt/benchmark/benchmark.rb in volt-0.8.15 vs lib/volt/benchmark/benchmark.rb in volt-0.8.16
- old
+ new
@@ -1,9 +1,9 @@
if RUBY_PLATFORM == 'opal'
class Benchmark
- def self.bm(iterations=1)
- puts "BM"
+ def self.bm(iterations = 1)
+ puts 'BM'
times = []
total_time = nil
result = nil
@@ -19,9 +19,9 @@
puts "TOTAL TIME: #{total_time}ms"
else
puts "Times: #{times.inspect}"
end
- return result
+ result
end
end
end