QuasarApp / Qt-Secret

Simple encryption library supporting RSA and AES algorithms.
https://quasarapp.ddns.net:3031/docs/QuasarApp/Qt-Secret/latest/index.html
GNU Lesser General Public License v3.0
246 stars 69 forks source link

Adding RSA benchmarking #93

Closed Benjamin-Loison closed 1 year ago

Benjamin-Loison commented 3 years ago

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

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

To give a comparison with the same CPU on Debian 12 GNOME and also a Linux Mint 22 Cinnamon Framework 13 with i5-1240P using time ssh-keygen -t rsa -b KEY_SIZE -f id_rsa -N '' (real):

key size 2048 3072 4096 6144 8192
i9-7920X 0.154 0.289 0.694 3.942 30.559
i5-1240P 0.146 0.906 0.990 8.995 20.744
EndrII commented 3 years ago

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

Benjamin-Loison commented 3 years ago

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 ^^'

EndrII commented 3 years ago

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.

pH-Valiu commented 2 years ago

How big was the data you encoded?

Benjamin-Loison commented 2 years ago

How big was the data you encoded?

@pH-Valiu

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

EndrII commented 1 year ago

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