timing of different ways to create an array