added common entry point to benchmarks
authorStefan Behnel <stefan_ml@behnel.de>
Thu, 5 Jul 2012 09:47:06 +0000 (11:47 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Thu, 5 Jul 2012 09:47:06 +0000 (11:47 +0200)
Demos/benchmarks/bpnn3.py
Demos/benchmarks/generators.py
Demos/benchmarks/nbody.py
Demos/benchmarks/nqueens.py

index 0877846..c4f0049 100644 (file)
@@ -178,6 +178,8 @@ def test_bpnn(iterations):
         times.append(t)
     return times
 
+main = test_bpnn
+
 if __name__ == "__main__":
     import optparse
     parser = optparse.OptionParser(
index 09179ba..67c62f9 100644 (file)
@@ -67,6 +67,8 @@ def benchmark(N):
         times.append(t)
     return times
 
+main = benchmark
+
 if __name__ == "__main__":
     import optparse
     parser = optparse.OptionParser(
index 7b0b73f..18f97b8 100644 (file)
@@ -138,6 +138,7 @@ def test_nbody(iterations):
         times.append(t1 - t0)
     return times
 
+main = test_nbody
 
 if __name__ == '__main__':
     parser = optparse.OptionParser(
index 719bb7c..87e63df 100644 (file)
@@ -77,6 +77,7 @@ def test_n_queens(iterations):
         times.append(t1 - t0)
     return times
 
+main = test_n_queens
 
 if __name__ == "__main__":
     parser = optparse.OptionParser(