Speed up a few tests that were taking too long.

Review URL: http://codereview.chromium.org/40164

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1431 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
erik.corry@gmail.com 2009-03-06 08:28:56 +00:00
parent e9e8628380
commit e2ccac2279
2 changed files with 10 additions and 2 deletions

View File

@ -74,7 +74,15 @@ for (var iterations = 0; iterations < 20; iterations++) {
var to_delete = [];
var a = new Array(size);
var a;
// Make sure we test both array-backed and hash-table backed
// arrays.
if (size < 1000) {
a = new Array(size);
} else {
a = new Array();
a.length = size;
}
var expected = '';
var expected_reversed = '';

View File

@ -65,7 +65,7 @@ assertEquals(2, guard(function() { try { throw 2; } finally { var x = 12; } }));
assertEquals(4, guard(function() { try { throw 3; } finally { throw 4; } }));
(function () {
var iter = 10000000;
var iter = 1000000;
for (var i = 1; i <= iter; i++) {
try {
if (i == iter) gc();