changeset 1013:ff55a7388ce6

Better output when benchmarking fake field elements.
author Martin Geisler <mg@daimi.au.dk>
date Thu, 06 Nov 2008 14:25:28 +0100
parents 464008ada9c2
children 17ee61639bc9
files apps/benchmark.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/apps/benchmark.py	Thu Nov 06 14:25:27 2008 +0100
+++ b/apps/benchmark.py	Thu Nov 06 14:25:28 2008 +0100
@@ -55,6 +55,7 @@
 
 import sys
 import time
+from math import log
 from optparse import OptionParser
 import operator
 from pprint import pformat
@@ -139,8 +140,10 @@
 
 if options.fake:
     Zp = FakeFieldElement
+    print "Using fake field elements"
 else:
     Zp = GF(find_prime(options.modulus))
+    print "Using real field elements (%d bit modulus)" % log(Zp.modulus, 2)
 count = options.count
 print "I am player %d, will %s %d numbers" % (id, options.operation, count)