diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-16 11:31:05 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-16 11:31:05 -0800 |
commit | d4ab93c4469931ea944e7480df3bf7652bea1ee0 (patch) | |
tree | 063d994ff788b59fb0f4aa36fe588bed05a39747 /tests/test_benchmark.py | |
parent | f8b509fc031eb9fd06856c42275dd5103924a713 (diff) |
option to run only core benchmarks
Diffstat (limited to 'tests/test_benchmark.py')
-rw-r--r-- | tests/test_benchmark.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_benchmark.py b/tests/test_benchmark.py index 303141c4..dc9a6ce3 100644 --- a/tests/test_benchmark.py +++ b/tests/test_benchmark.py @@ -14,6 +14,8 @@ DEFAULT_ARG = '4' TEST_REPS = 2 +CORE_BENCHMARKS = True # core benchmarks vs full regression suite + class Benchmarker: def __init__(self, name): self.name = name @@ -399,9 +401,11 @@ class benchmark(RunnerCore): self.fasta('fasta_float', 'float') def test_fasta_double(self): + if CORE_BENCHMARKS: return self.fasta('fasta_double', 'double') def test_fasta_double_full(self): + if CORE_BENCHMARKS: return self.fasta('fasta_double_full', 'double', emcc_args=['-s', 'DOUBLE_MODE=1']) def test_skinning(self): @@ -409,10 +413,12 @@ class benchmark(RunnerCore): self.do_benchmark('skinning', src, 'blah=0.000000') def test_life(self): + if CORE_BENCHMARKS: return 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_double(self): + if CORE_BENCHMARKS: return def output_parser(output): return 100.0/float(re.search('Unrolled Double Precision +([\d\.]+) Mflops', output).group(1)) self.do_benchmark('linpack_double', open(path_from_root('tests', 'linpack.c')).read(), '''Unrolled Double Precision''', force_c=True, output_parser=output_parser) |