From 4e25c1cc9c9cecd1720eb25a5a3557da658fcc90 Mon Sep 17 00:00:00 2001 From: "whesse@chromium.org" Date: Wed, 19 Aug 2009 11:34:06 +0000 Subject: [PATCH] Speed up mjsunit/div-mod.js test, to avoid timeouts. Review URL: http://codereview.chromium.org/171108 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2718 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/mjsunit/div-mod.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/mjsunit/div-mod.js b/test/mjsunit/div-mod.js index 39fab27..a8a19b3 100644 --- a/test/mjsunit/div-mod.js +++ b/test/mjsunit/div-mod.js @@ -48,7 +48,7 @@ function run_tests_for(divisor) { divmod(div_func, mod_func, 0, divisor); divmod(div_func, mod_func, 1 / 0, divisor); // Floating point number test. - for (exp = -1024; exp <= 1024; exp += 4) { + for (exp = -1024; exp <= 1024; exp += 8) { divmod(div_func, mod_func, Math.pow(2, exp), divisor); divmod(div_func, mod_func, 0.9999999 * Math.pow(2, exp), divisor); divmod(div_func, mod_func, 1.0000001 * Math.pow(2, exp), divisor); @@ -76,13 +76,7 @@ var divisors = [ 8, 9, 10, - // These ones in the middle don't add much apart from slowness to the test. 0x1000000, - 0x2000000, - 0x4000000, - 0x8000000, - 0x10000000, - 0x20000000, 0x40000000, 12, 60, @@ -92,4 +86,3 @@ var divisors = [ for (var i = 0; i < divisors.length; i++) { run_tests_for(divisors[i]); } - -- 2.7.4