Sha256: e26056dcdf73c3e85ec7fc66564dc71f00cd087ffa8e02c5ed6d4f6b597fc579

Contents?: true

Size: 377 Bytes

Versions: 10

Compression:

Stored size: 377 Bytes

Contents

require 'benchmark'
require 'turkish_stemmer'
require 'lingua/stemmer'

Benchmark.bmbm(7) do |x|

  lingua_stemmer = Lingua::Stemmer.new(:language => "tr")

  x.report('Stem using turkish_stemmer gem') do
    1_000.times { TurkishStemmer.stem("telephonlar") }
  end

  x.report('Stem using ruby-stemmer gem') do
    1_000.times { lingua_stemmer.stem("telephonlar") }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
turkish_stemmer-0.1.12 benchmarks/stemmers_comparison.rb
turkish_stemmer-0.1.11 benchmarks/stemmers_comparison.rb
turkish_stemmer-0.1.10 benchmarks/stemmers_comparison.rb
turkish_stemmer-0.1.8 benchmarks/stemmers_comparison.rb
turkish_stemmer-0.1.7 benchmarks/stemmers_comparison.rb
turkish_stemmer-0.1.6 benchmarks/stemmers_comparison.rb
turkish_stemmer-0.1.5 benchmarks/stemmers_comparison.rb
turkish_stemmer-0.1.2 benchmarks/stemmers_comparison.rb
turkish_stemmer-0.1.1 benchmarks/stemmers_comparison.rb
turkish_stemmer-0.1.0 benchmarks/stemmers_comparison.rb