ruby-gpgme icon indicating copy to clipboard operation
ruby-gpgme copied to clipboard

GPGME performance issue, running too slow

Open tong-tz opened this issue 3 years ago • 0 comments

Hey folks,

I'm currently developing some rails apis, and would like to use PGP to encrypt / sign all my api responses.

Currently this is what I get:

Encrypt + Sign: ~300 ms Encrypt only: ~30 ms

I started a blank ruby project and did this encryption test

Which is a big surprise, since if I use the same key to do the same process (encrypt + sign) with some java libraries, it only takes ~20 ms, which is a huge difference comparing to the ~300 ms latency I'm getting here.

Is this just ruby language's nature, or I misconfigured something here?

Thanks!

tong-tz avatar Jun 30 '22 09:06 tong-tz