Boyer-Mooer
Boyer-Mooer Algorithm
Time Unit ns
for 10 times: average time spend of indexof method : 3677 average time spend of BM Algo : 56218
for 100 times: average time spend of indexof method : 3195 average time spend of BM Algo : 17273
for 1000 times: average time spend of indexof method : 1122 average time spend of BM Algo : 2904
for 1000 times: average time spend of indexof method : 924 average time spend of BM Algo : 1019