Testing string searching performance