Sha256: 8be1b2511d8a075ab2922302a50859a537af3b59b657518c7023f83f6d7c1e3e

Contents?: true

Size: 395 Bytes

Versions: 10

Compression:

Stored size: 395 Bytes

Contents

require 'rubygems'
require File.expand_path(File.join(File.dirname(__FILE__), %w[.. .. lib Active]))
include Active::Services

Benchmark.bm(700) do |x|
  x.report("string:")   { Search.new({:keywords => "running,swimming,yoga"}) }
  x.report("array:") { Search.new({:keywords => %w(running swimming yoga)}) }
  x.report("Array:")  { Search.new({:keywords => ["running","swimming","yoga"]}) }
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
Active-0.0.22 spec/benchmark/search_bench.rb
Active-0.0.21 spec/benchmark/search_bench.rb
Active-0.0.18 spec/benchmark/search_bench.rb
Active-0.0.17 spec/benchmark/search_bench.rb
Active-0.0.14 spec/benchmark/search_bench.rb
Active-0.0.12 spec/benchmark/search_bench.rb
Active-0.0.11 spec/benchmark/search_bench.rb
Active-0.0.9 spec/benchmark/search_bench.rb
Active-0.0.8 spec/benchmark/search_bench.rb
Active-0.0.7 spec/benchmark/search_bench.rb