Iterator vs index loop performance test