viff

changeset 1290:622bf474f8c8

benchmark: fix coding style
author Martin Geisler <mg@cs.au.dk>
date Fri, 16 Oct 2009 19:00:14 +0200
parents da51b765a791
children 73ca89381cfa
files apps/benchmark_classes.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/apps/benchmark_classes.py	Fri Oct 16 18:46:28 2009 +0200
     1.2 +++ b/apps/benchmark_classes.py	Fri Oct 16 19:00:14 2009 +0200
     1.3 @@ -70,7 +70,7 @@
     1.4              print "Need no preprocessing"
     1.5              return None
     1.6  
     1.7 -    def doTest(self, d, termination_function):
     1.8 +    def test(self, d, termination_function):
     1.9          self.rt.schedule_callback(d, self.generate_operation_arguments)
    1.10          self.rt.schedule_callback(d, self.sync_test)
    1.11          self.rt.schedule_callback(d, self.run_test)
    1.12 @@ -227,9 +227,9 @@
    1.13      def benchmark(self, *args):
    1.14          sys.stdout.flush()
    1.15          sync = self.rt.synchronize()
    1.16 -        self.doTest(sync, lambda x: x)
    1.17 +        self.test(sync, lambda x: x)
    1.18          self.rt.schedule_callback(sync, self.preprocess)
    1.19 -        self.doTest(sync, lambda x: self.rt.shutdown())
    1.20 +        self.test(sync, lambda x: self.rt.shutdown())
    1.21  
    1.22  
    1.23  class NeededDataBenchmarkStrategy(BenchmarkStrategy):
    1.24 @@ -242,4 +242,4 @@
    1.25          sync = self.rt.synchronize()
    1.26          self.rt.schedule_callback(sync, lambda x: needed_data)
    1.27          self.rt.schedule_callback(sync, self.preprocess)
    1.28 -        self.doTest(sync, lambda x: self.rt.shutdown())
    1.29 +        self.test(sync, lambda x: self.rt.shutdown())