diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-04 11:54:27 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-04 11:54:27 -0700 |
commit | d7abb60c3f6a69f182a62be4db52e18547914bd9 (patch) | |
tree | 143cdf7f2b3d51d25c5137d0f8385f57b5f48cdc /tests/runner.py | |
parent | 81607b331bc1dadd443a7b8799006f68c485b51c (diff) |
optimize ta1 memcpy, and use ta1 in raytrace benchmark
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/runner.py b/tests/runner.py index 35bbe3ac..e31b1455 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -1774,7 +1774,7 @@ if 'benchmark' not in str(sys.argv): if (i == j) continue; if (i < j && i+k > j) continue; if (j < i && j+k > i) continue; - printf("[%d,%d,%d]\\n", i, j, k); + printf("[%d,%d,%d] ", i, j, k); reset(buffer); memcpy(buffer+i, buffer+j, k); dump(buffer); @@ -4449,17 +4449,9 @@ else: def test_raytrace(self): global POST_OPTIMIZATIONS; POST_OPTIMIZATIONS = ['closure'] - old_quantum = Settings.QUANTUM_SIZE - old_use_typed_arrays = Settings.USE_TYPED_ARRAYS - Settings.QUANTUM_SIZE = 1 - Settings.USE_TYPED_ARRAYS = 0 # Rounding errors with TA2 are too big in this very rounding-sensitive code. However, TA2 is much faster (2X) - src = open(path_from_root('tests', 'raytrace.cpp'), 'r').read().replace('double', 'float') # benchmark with floats self.do_benchmark(src, ['7', '256'], '256 256', llvm_opts=True, handpicked=False) - Settings.QUANTUM_SIZE = old_quantum - Settings.USE_TYPED_ARRAYS = old_use_typed_arrays - def test_dlmalloc(self): global POST_OPTIMIZATIONS; POST_OPTIMIZATIONS = ['eliminator'] |