added common entry point to richards benchmark
authorStefan Behnel <stefan_ml@behnel.de>
Thu, 5 Jul 2012 10:24:29 +0000 (12:24 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Thu, 5 Jul 2012 10:24:29 +0000 (12:24 +0200)
Demos/benchmarks/richards.py

index 6366952..2798e48 100644 (file)
@@ -402,7 +402,7 @@ def entry_point(iterations):
     endTime = time.time()
     return result, startTime, endTime
 
-def main(entry_point = entry_point, iterations = 10):
+def main(iterations = 10, entry_point = entry_point):
     print("Richards benchmark (Python) starting... [%r]" % entry_point)
     result, startTime, endTime = entry_point(iterations)
     if not result: