Skip to content

Comparison of CKKS scheme between Pyfhel and TenSeal #249

@Rahn80643

Description

@Rahn80643

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Rahn80643

        Issue actions

          Comparison of CKKS scheme between Pyfhel and TenSeal · Issue #249 · ibarrond/Pyfhel