diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-08 16:09:35 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-08 16:09:35 -0700 |
commit | 65363029ef00f7082e244b6989b951b550fc6830 (patch) | |
tree | 8f59f44445bfa24d67b8d2b6371e3f754d4088b0 /tests/runner.py | |
parent | 693682fc225e60c9c335ee910fb3c8bb5cf85470 (diff) |
add nbody-java benchmark
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index c414c619..27fb84dc 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -12871,6 +12871,12 @@ elif 'benchmark' in str(sys.argv): [] [][] [][][] --------------------------------''', shared_args=['-std=c99'], force_c=True) + def test_nbody_java(self): # tests xmlvm compiled java, including bitcasts of doubles, i64 math, etc. + args = [path_from_root('tests', 'nbody-java', x) for x in os.listdir(path_from_root('tests', 'nbody-java')) if x.endswith('.c')] + \ + ['-I' + path_from_root('tests', 'nbody-java')] + self.do_benchmark('nbody_java', '', ['11500000'], '''Time(s)''', + force_c=True, emcc_args=args + ['-s', 'PRECISE_I64_MATH=1', '--llvm-lto', '0'], native_args=args + ['-lgc', '-std=c99', '-target', 'x86_64-pc-linux-gnu', '-lm']) + def test_zlib(self): src = open(path_from_root('tests', 'zlib', 'benchmark.c'), 'r').read() emcc_args = self.get_library('zlib', os.path.join('libz.a'), make_args=['libz.a']) + \ |