Testing speed of for vs while

