viff

changeset 1336:13f6a14cafe0

benchmark: wrap long lines
author Martin Geisler <mg@cs.au.dk>
date Tue, 27 Oct 2009 11:35:09 +0100
parents ed3f546283ec
children 568f9c696979
files apps/benchmark.py
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line diff
     1.1 --- a/apps/benchmark.py	Tue Oct 27 11:33:22 2009 +0100
     1.2 +++ b/apps/benchmark.py	Tue Oct 27 11:35:09 2009 +0100
     1.3 @@ -65,8 +65,8 @@
     1.4  from viff.field import GF, FakeGF
     1.5  from viff.runtime import Runtime, create_runtime, make_runtime_class
     1.6  from viff.passive import PassiveRuntime
     1.7 -from viff.active import BasicActiveRuntime, \
     1.8 -    TriplesHyperinvertibleMatricesMixin, TriplesPRSSMixin
     1.9 +from viff.active import (BasicActiveRuntime,
    1.10 +                         TriplesHyperinvertibleMatricesMixin, TriplesPRSSMixin)
    1.11  from viff.comparison import ComparisonToft05Mixin, ComparisonToft07Mixin
    1.12  from viff.equality import ProbabilisticEqualityMixin
    1.13  from viff.paillier import PaillierRuntime
    1.14 @@ -74,8 +74,10 @@
    1.15  from viff.config import load_config
    1.16  from viff.util import find_prime
    1.17  
    1.18 -from benchutil import SelfcontainedBenchmarkStrategy, \
    1.19 -    NeededDataBenchmarkStrategy, ParallelBenchmark, SequentialBenchmark, BinaryOperation, NullaryOperation
    1.20 +from benchutil import (SelfcontainedBenchmarkStrategy,
    1.21 +                       NeededDataBenchmarkStrategy,
    1.22 +                       ParallelBenchmark, SequentialBenchmark,
    1.23 +                       BinaryOperation, NullaryOperation)
    1.24  
    1.25  # Hack in order to avoid Maximum recursion depth exceeded
    1.26  # exception;
    1.27 @@ -235,7 +237,8 @@
    1.28  def do_benchmark(runtime, operation, benchmark, field, count, *args):
    1.29      benchmark(runtime, operation, field, count).benchmark(*args)
    1.30  
    1.31 -pre_runtime.addCallback(do_benchmark, operation, benchmark, Zp, count, needed_data, options.pc)
    1.32 +pre_runtime.addCallback(do_benchmark, operation, benchmark,
    1.33 +                        Zp, count, needed_data, options.pc)
    1.34  
    1.35  print "#### Starting reactor ###"
    1.36  reactor.run()