Qt-Secret icon indicating copy to clipboard operation
Qt-Secret copied to clipboard

Adding RSA benchmarking

Open Benjamin-Loison opened this issue 4 years ago • 5 comments

I run both following RSA algorithms on a Intel(R) Core(TM) i9-7920X CPU @ 2.90GHz

  • https://github.com/QuasarApp/Qt-Secret#encryption-and-decryption-of-messages
  • https://github.com/QuasarApp/Qt-Secret#signature-and-verification-of-the-message-signature

Here are my benchmarking (I would have appreciated to find some on the GitHub so I participate):

RSA in seconds

key size 2048 3072 4096 6144 8192
genPairKey (random process) 2.119 6.974 44.000 31.384 243.044
encode 0.062 0.170 0.437 1.489 3.470
decode 0.096 0.286 0.745 2.449 5.651
sign 1.668 5.503 13.226 44.422 104.119
checkSign 2.906 10.014 23.420 75.711 262.077

Benjamin-Loison avatar Aug 13 '21 20:08 Benjamin-Loison

Thanks you. may be you can create a pull request with your bench tool ?

EndrII avatar Aug 14 '21 06:08 EndrII

I haven't any bench tool I just used: qDebug() << QTime::currentTime().toString("hh:mm:ss,zzz") << " ID 0"; In the README algorithms sorry about that ^^'

Benjamin-Loison avatar Aug 14 '21 11:08 Benjamin-Loison

So just create a subproject of the main project that will be use this code. Else cannot to add your benchmark test results without benchmark tool.

EndrII avatar Aug 14 '21 16:08 EndrII

How big was the data you encoded?

pH-Valiu avatar Sep 09 '22 12:09 pH-Valiu

How big was the data you encoded?

@pH-Valiu

The data was test message. You can find the whole code here.

Benjamin-Loison avatar Sep 09 '22 16:09 Benjamin-Loison

Unfortunately. But I drop support of this library. See my new library for works with RSA and ECDSA. easyssl

EndrII avatar Nov 03 '23 18:11 EndrII