benchmarks/convolve_benchmark.rb in convolver-0.0.2 vs benchmarks/convolve_benchmark.rb in convolver-0.1.0

- old
+ new

@@ -4,11 +4,11 @@ class Convolver2DBenchmark attr_reader :image, :kernel def initialize - @image = NArray.float(640, 480).random - @kernel = NArray.float(8, 8).random + @image = NArray.sfloat(640, 480).random + @kernel = NArray.sfloat(8, 8).random end end Benchmark.bm do |x| source = Convolver2DBenchmark.new