viff

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 diff
     1.1 --- a/apps/benchmark.py	Fri Oct 09 12:21:14 2009 +0200
     1.2 +++ b/apps/benchmark.py	Fri Oct 09 13:04:18 2009 +0200
     1.3 @@ -74,9 +74,16 @@
     1.4  from viff.comparison import ComparisonToft05Mixin, ComparisonToft07Mixin
     1.5  from viff.equality import ProbabilisticEqualityMixin
     1.6  from viff.paillier import PaillierRuntime
     1.7 +from viff.orlandi import OrlandiRuntime
     1.8  from viff.config import load_config
     1.9  from viff.util import find_prime, rand
    1.10  
    1.11 +
    1.12 +# Hack in order to avoid Maximum recursion depth exceeded
    1.13 +# exception;
    1.14 +sys.setrecursionlimit(5000)
    1.15 +
    1.16 +
    1.17  last_timestamp = time.time()
    1.18  start = 0
    1.19  
    1.20 @@ -103,7 +110,8 @@
    1.21  
    1.22  runtimes = {"PassiveRuntime": PassiveRuntime,
    1.23              "PaillierRuntime": PaillierRuntime, 
    1.24 -            "BasicActiveRuntime": BasicActiveRuntime}
    1.25 +            "BasicActiveRuntime": BasicActiveRuntime,
    1.26 +            "OrlandiRuntime": OrlandiRuntime}
    1.27  
    1.28  mixins = {"TriplesHyperinvertibleMatricesMixin" : TriplesHyperinvertibleMatricesMixin, 
    1.29            "TriplesPRSSMixin": TriplesPRSSMixin, 
    1.30 @@ -143,6 +151,8 @@
    1.31                      runtime=runtimes.keys()[0], mixins="", num_players=2, prss=True,
    1.32                      operation=operations.keys()[0], parallel=True, fake=False, args="")
    1.33  
    1.34 +print "*" * 60
    1.35 +
    1.36  # Add standard VIFF options.
    1.37  Runtime.add_options(parser)
    1.38