for (var i = 0; i < 100; ++i) {
var array = [];
for (var j = 0; j < 1000; ++j)
array.push(j);
while (array.length)
array.splice(array.length / 2, 1);
}
for (var i = 0; i < 100; ++i) {
var array = [];
for (var j = 0; j < 1000; ++j)
array.push(j);
while (array.length)
array.splice(array.length / 2, 1);
}