changeset 1267:8d213ad683c2

Added the orlandi runtime as an option.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Fri, 09 Oct 2009 13:04:18 +0200
parents a1193532c181
children 61ac5debba24
files apps/benchmark.py
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/apps/benchmark.py	Fri Oct 09 12:21:14 2009 +0200
+++ b/apps/benchmark.py	Fri Oct 09 13:04:18 2009 +0200
@@ -74,9 +74,16 @@
 from viff.comparison import ComparisonToft05Mixin, ComparisonToft07Mixin
 from viff.equality import ProbabilisticEqualityMixin
 from viff.paillier import PaillierRuntime
+from viff.orlandi import OrlandiRuntime
 from viff.config import load_config
 from viff.util import find_prime, rand
 
+
+# Hack in order to avoid Maximum recursion depth exceeded
+# exception;
+sys.setrecursionlimit(5000)
+
+
 last_timestamp = time.time()
 start = 0
 
@@ -103,7 +110,8 @@
 
 runtimes = {"PassiveRuntime": PassiveRuntime,
             "PaillierRuntime": PaillierRuntime, 
-            "BasicActiveRuntime": BasicActiveRuntime}
+            "BasicActiveRuntime": BasicActiveRuntime,
+            "OrlandiRuntime": OrlandiRuntime}
 
 mixins = {"TriplesHyperinvertibleMatricesMixin" : TriplesHyperinvertibleMatricesMixin, 
           "TriplesPRSSMixin": TriplesPRSSMixin, 
@@ -143,6 +151,8 @@
                     runtime=runtimes.keys()[0], mixins="", num_players=2, prss=True,
                     operation=operations.keys()[0], parallel=True, fake=False, args="")
 
+print "*" * 60
+
 # Add standard VIFF options.
 Runtime.add_options(parser)