diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-17 16:48:26 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-17 16:48:26 -0800 |
commit | d5b8f39c9a7ec9cb5f6d363807fac85ae5e82302 (patch) | |
tree | 470073103bfa37d0cc2e3eec1ee79177fc3e5033 /tests | |
parent | 08191fe5f719092c3b5fe283bb76514485edc10d (diff) |
allow picking the js engine for benchmarking
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runner.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index e7793685..c102646f 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -5153,8 +5153,14 @@ else: Building.COMPILER = CLANG - # Pick the JS engine to benchmark - JS_ENGINE = JS_ENGINES[1] + # Pick the JS engine to benchmark. If you specify one, it will be picked. For example, python tests/runner.py benchmark SPIDERMONKEY_ENGINE + JS_ENGINE = JS_ENGINES[0] + for i in range(1, len(sys.argv)): + arg = sys.argv[i] + if not arg.startswith('test_'): + JS_ENGINE = eval(arg) + sys.argv[i] = None + sys.argv = filter(lambda arg: arg is not None, sys.argv) print 'Benchmarking JS engine:', JS_ENGINE Building.COMPILER_TEST_OPTS = [] |