Sha256: 22d1c40a1ba336f6b8e6367f9a77713edb4f82d1eeff2e91828d4c1fd37fd2a5

Contents?: true

Size: 444 Bytes

Versions: 1

Compression:

Stored size: 444 Bytes

Contents

#!/usr/bin/env ruby
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__),'..','lib')))

require 'wordlist/builder'
require 'benchmark'
require 'fileutils'

path = File.expand_path(File.join(File.dirname(__FILE__),'shakespeare_wordlist.txt'))

FileUtils.rm_f(path)

Benchmark.bm do |bm|
  bm.report('build:') do
    Wordlist::Builder.build(path) do |wordlist|
      wordlist.parse_file('/home/hal/shaks12.txt')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wordlist-0.1.0 scripts/benchmark