jayanta525 / openwrt-nanopi-r2s

OpenWrt support for FriendlyElec NanoPi R2S RK3328 SoC board with 2x1000Mbps ports. This repository is not a fork of friendlywrt but a fork of upstream/openwrt.
https://openwrt.org
GNU General Public License v2.0
84 stars 37 forks source link

about openssl speed #2

Closed aptx17 closed 4 years ago

aptx17 commented 4 years ago

Hello sir! any way to improve 16 bytes?

openssl speed -elapsed -evp aes-128-gcm (with OpenWrt 1.5ghz) gcm


openssl speed -elapsed -evp aes-128-gcm (with FriendlyWrt 1.5ghz) FriendlyWrt-gcm

jayanta525 commented 4 years ago

I might have not included crypto in kernel for gcm. I will look into it.

Can you post the output for cat /proc/crypto

aptx17 commented 4 years ago

I might have not included crypto in kernel for gcm. I will look into it.

Can you post the output for cat /proc/crypto yes,it here crypto.zip

jayanta525 commented 4 years ago

seems like gcm crypto is included in kernel. I will test this when my board is delivered.

aptx17 commented 4 years ago

okay,thanks.

jayanta525 commented 4 years ago

@aptx17

These are the results on the rk3328:

The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
aes-128-gcm      73199.42k   220411.12k   435064.21k   581664.88k   641874.92k   646187.19k

These results are much similar to FriendlyWrt. The only noticeable difference is on the values for 16 bytes and 64 bytes.

These differences may look huge in benchmarks, but in reality, it doesn't affect the crypto performance of the application using it.