aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-21 20:02:33 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-29 13:01:59 -0700
commit91db790951e4fffea68c632da176b4a8c139698c (patch)
tree9b4c83f47057852b31791348a01dba1b4fa34077 /tests
parentdf08074e4c2f8a1d9c581cf03486664d274e393d (diff)
add benchmark.test_fasta_double_full, with DOUBLE_MODE=1
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index b00f10ec..1309548f 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -12684,7 +12684,7 @@ elif 'benchmark' in str(sys.argv):
'''
self.do_benchmark('corrections', src, [], 'final: 40006013:10225.', emcc_args=['-s', 'CORRECT_SIGNS=1', '-s', 'CORRECT_OVERFLOWS=1', '-s', 'CORRECT_ROUNDINGS=1'])
- def fasta(self, double_rep):
+ def fasta(self, double_rep, emcc_args=[]):
src = open(path_from_root('tests', 'fasta.cpp'), 'r').read().replace('double', double_rep)
src = src.replace(' const size_t n = ( argc > 1 ) ? atoi( argv[1] ) : 512;', '''
int n;
@@ -12708,6 +12708,9 @@ elif 'benchmark' in str(sys.argv):
def test_fasta_double(self):
self.fasta('double')
+ def test_fasta_double_full(self):
+ self.fasta('double', emcc_args=['-s', 'DOUBLE_MODE=1'])
+
def test_skinning(self):
src = open(path_from_root('tests', 'skinning_test_no_simd.cpp'), 'r').read()
self.do_benchmark('skinning', src, [], 'blah=0.000000')