diff --git a/benchmarks/asmjs-apps/harness.py b/benchmarks/asmjs-apps/harness.py index c36111e..797d0de 100755 --- a/benchmarks/asmjs-apps/harness.py +++ b/benchmarks/asmjs-apps/harness.py @@ -151,9 +151,12 @@ def BenchmarkJavaScript(options, args): # Don't overwrite args! argv = [] + args argv.extend(['run.js', '--', benchmark.name + '.js', str(factor)]) - t = Exec(argv) - t = t.strip() - print(benchmark.name + '-workload' + str(factor) + ' - ' + t) + try: + t = Exec(argv) + t = t.strip() + print(benchmark.name + '-workload' + str(factor) + ' - ' + t) + except Exception as e: + print('Exception when running ' + benchmark.name + ': ' + str(e)) def main(argv): parser = OptionParser() diff --git a/benchmarks/asmjs-ubench/harness.py b/benchmarks/asmjs-ubench/harness.py index bbabed8..da26107 100755 --- a/benchmarks/asmjs-ubench/harness.py +++ b/benchmarks/asmjs-ubench/harness.py @@ -60,9 +60,12 @@ def BenchmarkJavaScript(options, args): # Don't overwrite args! argv = [] + args argv.extend(['ubench.js', '--', benchmark + '.js', RunFactor]) - t = Exec(argv) - t = t.strip() - print(benchmark + ' - ' + t) + try: + t = Exec(argv) + t = t.strip() + print(benchmark + ' - ' + t) + except Exception as e: + print('Exception when running ' + benchmark.name + ': ' + str(e)) def main(argv): parser = OptionParser()