Not sure how you performed your benchmarks but ipairs() will always iterate over an entire array faster than pairs can iterate over an entire dictionary (providing both are similar in length).
Not sure how you performed your benchmarks but ipairs() will always iterate over an entire array faster than pairs can iterate over an entire dictionary (providing both are similar in length).