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:
parent
e9e8628380
commit
e2ccac2279
@ -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 = '';
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user