依照之前N1性能测试,顺手跑一下r2s的性能测试,给同样对ARM低功耗设备有需求的朋友做个参考。

OpenSSL单核测试

运行命令分别是:

openssl speed -evp aes-128-gcm
openssl speed -evp aes-256-gcm
openssl speed -evp chacha20-poly1305

测试结果:

字节数/算法16 bytes64 bytes256 bytes1024 bytes8192 bytes16384 bytes
aes-128-gcm35875.57k47015.41k51967.57k53470.27k53924.73k53995.97k
aes-256-gcm34968.85k45462.99k50054.19k51738.91k51902.17k51853.44k
chacha20-poly130535139.40k82137.88k167873.24k192701.05k208987.02k208608.32k
r2s openssl单核测试

全核心测试

测试命令:

openssl speed -multi 4 -evp aes-128-gcm
openssl speed -multi 4 -evp aes-256-gcm
openssl speed -multi 4 -evp chacha20-poly1305

测试结果:

字节数/算法16 bytes64 bytes256 bytes1024 bytes8192 bytes16384 bytes
aes-128-gcm140285.89k186024.83k203929.43k211593.22k212574.21k211178.84k
aes-256-gcm138025.42k179407.87k191248.64k200332.45k204953.82k204461.40k
chacha20-poly1305140115.36k326989.82k668424.96k767990.78k822949.21k823214.08k
r2s openssl全核心测试

r2s coremark测试

因为我使用的openwrt官方固件不支持在登录页首页显示coremark的跑分,这里直接贴一个coremark的执行结果:

root@OpenWrt:~# coremark  -h
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 13521
Total time (secs): 13.521000
Iterations/Sec   : 4437.541602
Iterations       : 60000
Compiler version : GCC8.4.0
Compiler flags   : -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-aarch64_generic_musl/coremark-5e0f662ce709f1af8d272bd8d3960034603d3850=coremark-5e0f662ce709f1af8d272bd8d3960034603d3850 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -O3   -lrt
Memory location  : Please put data memory location here
			(e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0xbd59
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 4437.541602 / GCC8.4.0 -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-aarch64_generic_musl/coremark-5e0f662ce709f1af8d272bd8d3960034603d3850=coremark-5e0f662ce709f1af8d272bd8d3960034603d3850 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -O3   -lrt / Heap

存储设备读写测试

r2s本身不带机身存储设备,存储设备的速度取决于我们选择的TF/SD卡,我这里使用的东芝的U1的内存卡。

分区信息:

root@OpenWrt:~# lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0 14.6G  0 disk
├─mmcblk0p1 179:1    0   16M  0 part
├─mmcblk0p2 179:2    0  104M  0 part /rom
└─mmcblk0p3 179:3    0 14.5G  0 part /

读写测试如下:

root@OpenWrt:~# hdparm -tT /dev/mmcblk0p3

/dev/mmcblk0p3:
 Timing cached reads:   830 MB in  2.00 seconds = 414.88 MB/sec
 Timing buffered disk reads: 200 MB in  3.01 seconds =  66.51 MB/sec

相比N1自带的EMMC,速度相差还是有点大的。

r2s CPU信息

直接贴结果:

root@OpenWrt:~# cat /proc/cpuinfo
processor	: 0
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 1
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 2
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 3
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4