I was going through js-perf test cases and found this http://jsperf.com/pre-allocated-arrays-2/2.
In the result Array(100000) is faster than Array(99999). Why like this?
Edit:
My doubt was is there any specific algorithm followed when creating of arrays while execution. Even when I am executing 99 vs 100. 100 was faster in my browser. To get an idea about the algorithm if any is there, I posted this question
Browser : Chrome 30.0.15 OS : Mac OSX