Benchmarched string length algorithm.