完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我使用的是 iMX8MP EVK 和 imx-yocto-L5.10.52。
首先,测试openssl: root@imx8mpevk:~# openssl speed sha256 Doing sha256 for 3s on 16 size blocks: 11536688 sha256's in 3.00s Doing sha256 for 3s on 64 size blocks: 8664550 sha256's in 3.00s Doing sha256 for 3s on 256 size blocks: 5114298 sha256's in 2.99s Doing sha256 for 3s on 1024 size blocks: 1932152 sha256's in 3.00s Doing sha256 for 3s on 8192 size blocks: 284675 sha256's in 3.00s Doing sha256 for 3s on 16384 size blocks: 144224 sha256's in 3.00s OpenSSL 1.1.1k 25 Mar 2021 built on: Thu Mar 25 13:28:38 2021 UTC options:bn(64,64) rc4(char) des(int) aes(partial) blowfish(ptr) compiler: aarch64-poky-linux-gcc -mcpu=cortex-a53 -march=armv8-a+crc+crypto -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map= -fdebug-prefix-map= -fdebug-prefix-map= -fdebug-prefix-map= -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DNDEBUG The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes sha256 61529.00k 184843.73k 437879.69k 659507.88k 777352.53k 787655.34k 然后,使用 cryptodev 引擎测试 openssl: root@imx8mpevk:~# modprobe cryptodev [ 151.419636] cryptodev: loading out-of-tree module taints kernel. [ 151.420713] cryptodev: driver 1.12 loaded. root@imx8mpevk:~# openssl engine (devcrypto) /dev/crypto engine (dynamic) Dynamic engine loading support root@imx8mpevk:~# openssl speed -engine devcrypto sha256 engine "devcrypto" set. Doing sha256 for 3s on 16 size blocks: 11536289 sha256's in 3.00s Doing sha256 for 3s on 64 size blocks: 8664651 sha256's in 3.00s Doing sha256 for 3s on 256 size blocks: 5114791 sha256's in 3.00s Doing sha256 for 3s on 1024 size blocks: 1917203 sha256's in 2.99s Doing sha256 for 3s on 8192 size blocks: 284712 sha256's in 3.00s Doing sha256 for 3s on 16384 size blocks: 144242 sha256's in 3.00s OpenSSL 1.1.1k 25 Mar 2021 built on: Thu Mar 25 13:28:38 2021 UTC options:bn(64,64) rc4(char) des(int) aes(partial) blowfish(ptr) compiler: aarch64-poky-linux-gcc -mcpu=cortex-a53 -march=armv8-a+crc+crypto -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map= -fdebug-prefix-map= -fdebug-prefix-map= -fdebug-prefix-map= -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DNDEBUG The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes sha256 61526.87k 184845.89k 436462.17k 656593.94k 777453.57k 787753.64k 测试结果一样! 为什么 cryptodev 没有提高 openssl 的性能? 如何测试 caam 对 openssl 的性能提升? |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
2135个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
37376 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
6775 浏览 1 评论
7793 浏览 1 评论
7642 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
5071 浏览 0 评论
1556浏览 2评论
关于NINA-W132 Wi-Fi模块SPI通信遇到的疑问求解
1207浏览 2评论
如何在MPC PowerPC MCU上首次刷写后禁用BDM?
749浏览 1评论
将HFREFR和LFREFR寄存器值设置为错误的值来将故障注入CMU,但CMU_ISR值始终为零,为什么?
735浏览 1评论
将SPSDK for FRDM-MCX-W71 SDK与VS一起安装时出现hidapi构建错误怎么解决?
677浏览 1评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 19:27 , Processed in 0.615813 second(s), Total 70, Slave 53 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
612