"Sigurd Torkel Meldgaard" <[email protected]> writes:

> Here is a transcript of my profiling run.

Thank you for testing this.

> I disabled ssl, because I had some trouble with the keys, hope that
> does not matter too much.

I guess not.

> sigurdmeldgaard$ python benchmark.py --profile --no-ssl -c 10000 player-1.ini
> Seeding random generator with random seed 9520
> Using field elements (65 bit modulus)
> I am player 1, will mul 10000 numbers
> Using the base runtime: viff.passive.PassiveRuntime.
> Not using SSL
> Listening on port 9000
> Will connect to <Player 2: camel13:9001>
> Will connect to <Player 3: camel14:9002>
> #### Starting reactor ###
> Starting reactor with profiling
> Need no preprocessing
> Runtime ready, generating shares
> Synchronizing test start.
> Starting test in 3
> Starting test in 2
> Starting test in 1
> Starting test now
> ****************************************************************
> Started parallel test
>
> Total time used: 21.186 sec
> Time per parallel test operation: 2 ms
> ******
> Synchronizing shutdown...  done.
> Closing connections...  done.
> Stopping reactor...  done.
> Loading profiling statistics... done.
>
>          2176272 function calls (1852904 primitive calls) in 33.202 CPU 
> seconds
>
>    Ordered by: internal time, call count
>    List reduced from 207 to 40 due to restriction <40>
>
>    ncalls  tottime  percall  cumtime  percall filename:lineno(function)
>       366   20.923    0.057   26.680    0.073 selectreactor.py:93(doSelect)
> 173360/86680    2.524    0.000    9.854    0.000 defer.py:314(_runCallbacks)

Hmm... apart from spending much more time in doSelect than in my
trace, then I don't see any big difference. Too bad, I thought I
remembered seing a bunch of low-level calls like select and not just
doSelect, which does a bit more than just calling select.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
_______________________________________________
viff-devel mailing list (http://viff.dk/)
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk

Reply via email to