performance test on while loops