Sha256: 967a68091d6c67a74deb9a77339c7083a757600b850fa1e5ab05ff961a21308f

Contents?: true

Size: 313 Bytes

Versions: 2

Compression:

Stored size: 313 Bytes

Contents

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

require 'benchmark'
require 'itaiji'

converter = Itaiji::Converter.new

Benchmark.bm do |benchmark|
  benchmark.report do
    10000.times do
      converter.seijitai("齊藤正澔")
      converter.itaiji("斉藤正浩")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
itaiji-1.0.0 bin/benchmark
itaiji-0.3.1 bin/benchmark