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

Comparison of CKKS scheme between Pyfhel and TenSeal #249

Open
Rahn80643 opened this issue Sep 2, 2024 · 0 comments
Open

Comparison of CKKS scheme between Pyfhel and TenSeal #249

Rahn80643 opened this issue Sep 2, 2024 · 0 comments

Comments

@Rahn80643
Copy link

Hi,

I’m trying to compare CKKS scheme between Pyfhel and TenSeal in Python. The experiment settings are:

128 security level
Polynomial degree (N) = 8192
First Mod Size (Q0) = 60
Scaling Mod Size = 49
Multiplicative depth = 2
Two float arrays, each has 1000 elements. One constant
The following execution time are measured:

Enc: encode + encrypt
AddCC: add two ciphertext
MultCC: multiply two ciphertext
MultCConst: multiply one ciphertext and a constant
DecAddCC: decrypt AddCC
DecMultCC: decrypt MultCC
DecMultCConst: decrypt MultCConst
Each operation is executed 500 times and taken average with 12th Gen Intel® Core™ i7-12700KF CPU.

Based on the result, time taken for Pyfhel is longer than TenSeal, especially for decryption.

tenseal_pyfhel

May I ask what may be the potential cause that makes Pyfhel takes more time compared to TenSeal?

Thank you

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

1 participant