Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High variance in runtime #39

Open
RasoulAM opened this issue Jun 8, 2023 · 1 comment
Open

High variance in runtime #39

RasoulAM opened this issue Jun 8, 2023 · 1 comment

Comments

@RasoulAM
Copy link

RasoulAM commented Jun 8, 2023

Hi. I observe a very high variance in the runtime when I compute the intersection. Is there any reason for this? The high variance does not get fixed even with tens of runs. We also ran it over multiple different servers and observed the same behavior.

@karnseth
Copy link
Collaborator

karnseth commented Jun 8, 2023

Hi @RasoulAM

Probably the main reason you're getting a high variance is because the client generates a new Paillier keypair for each run, which involves sampling a new RSA modulus. This involves sampling primes, which is a process with inherent variance.

You can mitigate this by saving the client's Paillier Key to a file and loading it from there, rather than having it be generated in each run. Another option is to measure the time excluding the Paillier key generation (e.g. by inserting timing code in the right places).

Besides the Paillier key generation, the rest of the protocol should be very predictable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants