Kouhei Sutou
kous****@users*****
2006年 11月 29日 (水) 10:02:56 JST
Index: tomoe/benchmark/load-dict.rb diff -u tomoe/benchmark/load-dict.rb:1.1 tomoe/benchmark/load-dict.rb:1.2 --- tomoe/benchmark/load-dict.rb:1.1 Tue Nov 28 11:01:29 2006 +++ tomoe/benchmark/load-dict.rb Wed Nov 29 10:02:56 2006 @@ -13,7 +13,7 @@ Benchmark.bmbm do |x| TomoeSpecUtils::Config.dictionaries.sort.each do |dictionary| x.report(File.basename(dictionary)) do - n.times {Tomoe::Dict.new(dictionary, false)} + n.times {Tomoe::DictLoader.instantiate("xml", dictionary, false)} end GC.start end Index: tomoe/benchmark/search-by-recognizer.rb diff -u tomoe/benchmark/search-by-recognizer.rb:1.1 tomoe/benchmark/search-by-recognizer.rb:1.2 --- tomoe/benchmark/search-by-recognizer.rb:1.1 Tue Nov 28 11:01:29 2006 +++ tomoe/benchmark/search-by-recognizer.rb Wed Nov 29 10:02:56 2006 @@ -13,7 +13,6 @@ context = Tomoe::Context.new config_file = TomoeSpecUtils::Config.make_config_file context.load_config(config_file.path) -context.load_recognizer(TomoeSpecUtils::Config.recognizer_dir, "simple") n = 10 Benchmark.bmbm do |x|