diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-23 14:49:40 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-23 14:49:40 -0700 |
commit | f6ab05e76cbb946bd35b35eaccfb7ae4567f6501 (patch) | |
tree | d549e1f491cb8b01c36606e32e4c13aa1fdfd296 /tests/runner.py | |
parent | 780fee9f3e1f3d6e461be33bd452ed8ecb1d497c (diff) |
add linpack benchmark
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 7eacd059..6692feee 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -13063,6 +13063,11 @@ elif 'benchmark' in str(sys.argv): src = open(path_from_root('tests', 'life.c'), 'r').read() self.do_benchmark('life', src, '''--------------------------------''', shared_args=['-std=c99'], force_c=True) + def test_linpack(self): + def output_parser(output): + return 100.0/float(re.search('Unrolled Double Precision +([\d\.]+) Mflops', output).group(1)) + self.do_benchmark('linpack', open(path_from_root('tests', 'linpack.c')).read(), '''Unrolled Double Precision''', force_c=True, output_parser=output_parser) + def test_zzz_java_nbody(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')] @@ -13086,7 +13091,7 @@ elif 'benchmark' in str(sys.argv): def test_zzz_lua_scimark(self): def output_parser(output): - return 1.0/float(re.search('\nSciMark +([\d\.]+) ', output).group(1)) + return 100.0/float(re.search('\nSciMark +([\d\.]+) ', output).group(1)) self.lua('scimark', '[small problem sizes]', output_parser=output_parser) |