diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runner.py | 7 | ||||
-rw-r--r-- | tests/settings.py | 10 |
2 files changed, 7 insertions, 10 deletions
diff --git a/tests/runner.py b/tests/runner.py index 659dd5dc..3cd99993 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -881,10 +881,13 @@ else: COMPILER = LLVM_GCC PARSER_ENGINE = V8_ENGINE JS_ENGINE = SPIDERMONKEY_ENGINE + if JS_ENGINE == SPIDERMONKEY_ENGINE: + JS_ENGINE_OPTS += ['-j', '-m'] # TODO: use this everywhere else + RELOOP = OPTIMIZE = 1 GUARD_MEMORY = 0 QUANTUM_SIZE = 1 - TEST_REPS = 10 + TEST_REPS = 20 TOTAL_TESTS = 2 tests_done = 0 @@ -896,7 +899,7 @@ else: squared_times = map(lambda x: x*x, times) mean_of_squared = sum(squared_times)/len(times) std = math.sqrt(mean_of_squared - mean*mean) - print ' mean: %.2f (+-%.2f) seconds (max: %.2f, min: %.2f, noise/signal: %.2f) (%d runs)' % (mean, std, max(times), min(times), std/mean, TEST_REPS) + print ' mean: %.3f (+-%.3f) seconds (max: %.3f, min: %.3f, noise/signal: %.3f) (%d runs)' % (mean, std, max(times), min(times), std/mean, TEST_REPS) def do_benchmark(self, src, args=[], main_file=None): print 'Running benchmark:', inspect.stack()[1][3].replace('test_', '') diff --git a/tests/settings.py b/tests/settings.py index 04a3c0f7..4702dc09 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -33,16 +33,10 @@ V8_ENGINE=os.path.expanduser('~/Dev/v8/d8') #PARSER_ENGINE=SPIDERMONKEY_ENGINE PARSER_ENGINE=V8_ENGINE -#TODO -#if PARSER_ENGINE == SPIDERMONKEY_ENGINE: -# PARSER_ENGINE_OPS += ['-j', '-m'] - -JS_ENGINE=SPIDERMONKEY_ENGINE -#JS_ENGINE=V8_ENGINE +#JS_ENGINE=SPIDERMONKEY_ENGINE +JS_ENGINE=V8_ENGINE JS_ENGINE_OPTS=[] -if JS_ENGINE == SPIDERMONKEY_ENGINE: - JS_ENGINE_OPTS += ['-j', '-m'] OUTPUT_TO_SCREEN = 0 # useful for debugging specific tests, or for subjectively seeing what parts are slow |