找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 17929|回复: 47

[k3c] K3C openwrt19.07性能测试

[复制链接]
本帖最后由 paldier 于 2020-12-25 17:04 编辑

单核测试:

  1. openssl speed -elapsed -evp md5 sha1 sha256 sha512 des des-ede3 aes-128-cbc aes-192-cbc aes-256-cbc rsa2048 dsa2048 | tee /tmp/sslspeed | awk -v ORS="" '$1 ~ /OpenSSL/ {print "| " $2 " |"} $1 ~ /(md5|sha)/ {print " " $5 " |"} $1 ~ /(des|aes)/ {b = b " " $6 " |"} $1 ~ /(rsa|dsa)/ {print b " " $6 " | " $7 " |";b=""} END { print "\n" }' | sed 's/\.\(..\)k/\10/g'
复制代码
  1. OpenSSL 1.1.1i  8 Dec 2020
  2. built on: Tue Dec 22 12:29:33 2020 UTC
  3. options:bn(64,32) rc4(char) des(long) aes(partial) blowfish(ptr)
  4. compiler: mips-openwrt-linux-musl-gcc -fPIC -pthread -mabi=32 -Wa,--noexecstack -Wall -O3 -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fpic -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DAES_ASM -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM -DOPENSSL_SMALL_FOOTPRINT
  5. The 'numbers' are in 1000s of bytes per second processed.
  6. type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
  7. sha1              7130.20k    18165.70k    34237.18k    44243.29k    47999.66k    48179.88k
  8. des cbc           5782.31k     5991.59k     6057.47k     6068.22k     6053.89k     6089.39k
  9. des ede3          2112.07k     2130.37k     2143.74k     2160.64k     2165.42k     2129.92k
  10. aes-128 cbc       9377.63k    10476.50k    10639.10k    10893.99k    10723.33k    10758.83k
  11. aes-192 cbc       8271.45k     8958.63k     9350.57k     9388.71k     9382.57k     9360.73k
  12. aes-256 cbc       7292.38k     8057.60k     8090.97k     8154.45k     8249.34k     8148.31k
  13. md5               2976.92k    10079.57k    28647.42k    52359.17k    68009.98k    70866.26k
  14. sha256            3816.72k     8835.78k    15524.44k    19019.78k    20444.50k    20507.31k
  15. sha512             796.26k     3198.49k     4402.94k     5912.23k     6600.02k     6679.21k
  16.                   sign    verify    sign/s verify/s
  17. rsa 2048 bits 0.115172s 0.003012s      8.7    332.0
  18.                   sign    verify    sign/s verify/s
  19. dsa 2048 bits 0.040321s 0.037566s     24.8     26.6
复制代码

三核测试:

  1. openssl speed -elapsed -multi 3 -evp md5 sha1 sha256 sha512 des des-ede3 aes-128-cbc aes-192-cbc aes-256-cbc rsa2048 dsa2048 | tee /tmp/sslspeed | awk -v ORS="" '$1 ~ /OpenSSL/ {print "| " $2 " |"} $1 ~ /(md5|sha)/ {print " " $5 " |"} $1 ~ /(des|aes)/ {b = b "  " $6 " |"} $1 ~ /(rsa|dsa)/ {print b "  " $6 " |  " $7 " |";b=""} END { print "\n" }' | sed 's/\.\(..\)k/\10/g'
复制代码

  1. OpenSSL 1.1.1i  8 Dec 2020
  2. built on: Tue Dec 22 12:29:33 2020 UTC
  3. options:bn(64,32) rc4(char) des(long) aes(partial) blowfish(ptr)
  4. compiler: mips-openwrt-linux-musl-gcc -fPIC -pthread -mabi=32 -Wa,--noexecstack -Wall -O3 -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fpic -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DAES_ASM -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM -DOPENSSL_SMALL_FOOTPRINT
  5. sha1             14474.31k    36697.75k    69794.90k    88318.63k    97656.83k    96048.47k
  6. des cbc          11651.45k    12512.55k    12405.93k    12520.79k    12615.78k    12419.07k
  7. des ede3          4418.25k     4417.75k     4424.62k     4502.76k     4360.87k     4492.94k
  8. aes-128 cbc      19010.97k    20961.69k    21873.49k    21627.56k    22050.13k    21643.26k
  9. aes-192 cbc      16704.12k    18390.49k    18254.42k    18971.99k    18669.57k    18804.53k
  10. aes-256 cbc      15021.89k    16097.83k    16628.14k    16518.49k    16556.03k    16722.60k
  11. evp               6024.11k    21226.26k    58455.55k   105473.71k   139294.04k   140285.27k
  12. sha256            7794.14k    17940.74k    29188.01k    35608.92k    40585.90k    40714.24k
  13. sha512            1610.07k     6336.15k     8888.49k    11775.94k    13118.12k    13450.97k
  14.                   sign    verify    sign/s verify/s
  15. rsa 2048 bits 0.056381s 0.001483s     17.7    674.2
  16.                   sign    verify    sign/s verify/s
  17. dsa 2048 bits 0.019725s 0.019040s     50.7     52.5
复制代码


硬件加密测试:

因为用的eip97,不太懂这东西怎么用,所以测试不了了
按我的理解,其实上面的测试已经调用了部分硬加解密,这就解释了即使mtk7621超频到1g也没有grx350的800m分高,而在未来超频版固件也是会做的,同样超频到1g,预计性能会有10-15%的提升
至于为什么是3核而不是4核,因为openwrt固件依然沿用了sdk的cpu分配方式


点评

你说的很对,我赞同你的说法。: 5.0
你说的很对,我赞同你的说法。: 5
那这个怎么刷,只是风声?  发表于 2021-1-4 03:08

评分

参与人数 1恩山币 +1 收起 理由
ydle*** + 1 <font style="vertical-align: inh

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
支持楼主!!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

楼主强大,新时D开启
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

支持楼主需要operwrt固件
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

支持新的固件
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢楼主的分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 badcrazy 于 2020-12-29 23:08 编辑

k3单核跑了下,优势还是比较明显
OpenSSL 1.1.1i  8 Dec 2020
built on: Sat Dec 26 03:07:10 2020 UTC
options:bn(64,32) rc4(char) des(long) aes(partial) blowfish(ptr)
compiler: arm-openwrt-linux-muslgnueabi-gcc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O3 -fpic -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM
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 cbc      44232.14k    50045.64k    51860.58k    52595.84k    52379.81k    52401.49k
aes-128-gcm      21130.71k    24410.58k    25320.36k    25925.57k    24909.14k    26078.32k

另外从跑分也能看到,cbc是gcm的两倍,虽然我有k2p但是没刷op,引用之前一个跑分帖子里https://www.right.com.cn/forum/thread-4034493-1-1.html
小米R3G (MT7621A mipsle_24kc 2核4线程@880Mhz)(楼主自有)
openssl speed -evp aes-128-gcm
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
aes-128-gcm       5955.69k     6783.25k     7009.38k     7033.51k     7148.14k     7110.66k
那么基本上大致上
7621单核 aes-128-cbc    16384 bytes  是14221k左右,而k3c是10758.83k,怎么干翻7621?

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我的天 惊险K3C的新帖子  
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我的地 惊险K3C的新帖子
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

厉害了👍。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

竟然有新固件,牛逼了支持一个
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

6666666666
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢分享..
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
,诈尸啦。。。。。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 01:35

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表