changeset 654:f9fe663c0de1

Use (n-1)/3 as threshold when benchmarking. This threshold works for both passive and active security.
author Martin Geisler <mg@daimi.au.dk>
date Sat, 12 Apr 2008 13:40:16 +0200
parents 0743b624fb60
children 46be7fc26c47 c1ad22124f89
files apps/benchmark.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/apps/benchmark.py	Fri Apr 11 16:21:52 2008 +0200
+++ b/apps/benchmark.py	Sat Apr 12 13:40:16 2008 +0200
@@ -212,7 +212,8 @@
 else:
     benchmark = SequentialBenchmark
 
-pre_runtime = create_runtime(id, players, (len(players) -1)//2, options, runtime_class)
+pre_runtime = create_runtime(id, players, (len(players) -1)//3,
+                             options, runtime_class)
 pre_runtime.addCallback(benchmark, operation)
 
 print "#### Starting reactor ###"