Commit 93f2a095 authored by Stefan Behnel's avatar Stefan Behnel

added common entry point to benchmarks

parent 3314662f
......@@ -178,6 +178,8 @@ def test_bpnn(iterations):
times.append(t)
return times
main = test_bpnn
if __name__ == "__main__":
import optparse
parser = optparse.OptionParser(
......
......@@ -67,6 +67,8 @@ def benchmark(N):
times.append(t)
return times
main = benchmark
if __name__ == "__main__":
import optparse
parser = optparse.OptionParser(
......
......@@ -138,6 +138,7 @@ def test_nbody(iterations):
times.append(t1 - t0)
return times
main = test_nbody
if __name__ == '__main__':
parser = optparse.OptionParser(
......
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment