= new Vector.(); var repeatCount:int = parseInt(repeatCountInput.text); bench("push time", function():void { for (var i:int = 0; i < repeatCount; ++i) { v.push(i); } }); result.text += "v.length = " + v.length + "\n"; var sum:Number = 0; bench("calc sum", function():void { for (var i:int = 0; i < repeatCount; ++i) { sum += v[i]; } }); result.text += "sum of v = " + sum + "\n"; bench("pop", function():void { for (var i:int = 0; i < repeatCount; ++i) { v.pop(); } }); result.text += "v.length = " + v.length + "\n"; tearDown(); } ]]>