public void testBenchmark() throws Exception {
  runTest("en/dictionary.txt","en/text.txt");
  runTest("cn/dictionary.txt","cn/text.txt");
}

public void testBenchmark ( ) throws Exception { runTest ( "en/dictionary.txt" , "en/text.txt" ) ; runTest ( "cn/dictionary.txt" , "cn/text.txt" ) ; }
compare my ahocorasickdoublearraytrie with robert - bor ' s aho - corasick , notice that robert - bor ' s aho - corasick is compiled under jdk1 . 8 , so you will need jdk1 . 8 to run this test < br > to avoid jvm wasting time on allocating memory , please use - xms512m - xmx512m - xmn256m .
