Sha256: 30be17f05e0726f17a917c7b20c4aa4784afbd6e07e14b9d9f8d0c9459ef5493

Contents?: true

Size: 496 Bytes

Versions: 6

Compression:

Stored size: 496 Bytes

Contents

require 'benchmark/base'

begin
  gem 'gettext', '>=2.0.0'
rescue LoadError
  puts 'To run this benchmark, please install the gettext gem'
  exit 1
end

$LOAD_PATH.unshift 'lib'
require 'gettext'
include GetText

self.locale = 'de'

puts "GetText #{GetText::VERSION}:"
bindtextdomain('test',:path=>locale_folder('test'))
results_test{_('car') == 'Auto'}

#i cannot add the large file, since its an internal applications mo file
bindtextdomain('large',:path=>locale_folder('large'))
results_large

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fast_gettext-0.8.1 benchmark/original.rb
fast_gettext-0.8.0 benchmark/original.rb
fast_gettext-0.7.1 benchmark/original.rb
fast_gettext-0.7.0 benchmark/original.rb
fast_gettext-0.6.12 benchmark/original.rb
fast_gettext-0.6.11 benchmark/original.rb