依照之前N1性能测试,顺手跑一下r2s的性能测试,给同样对ARM低功耗设备有需求的朋友做个参考。
OpenSSL单核测试
运行命令分别是:
openssl speed -evp aes-128-gcm
openssl speed -evp aes-256-gcm
openssl speed -evp chacha20-poly1305
测试结果:
字节数/算法 | 16 bytes | 64 bytes | 256 bytes | 1024 bytes | 8192 bytes | 16384 bytes |
aes-128-gcm | 35875.57k | 47015.41k | 51967.57k | 53470.27k | 53924.73k | 53995.97k |
aes-256-gcm | 34968.85k | 45462.99k | 50054.19k | 51738.91k | 51902.17k | 51853.44k |
chacha20-poly1305 | 35139.40k | 82137.88k | 167873.24k | 192701.05k | 208987.02k | 208608.32k |
全核心测试
测试命令:
openssl speed -multi 4 -evp aes-128-gcm
openssl speed -multi 4 -evp aes-256-gcm
openssl speed -multi 4 -evp chacha20-poly1305
测试结果:
字节数/算法 | 16 bytes | 64 bytes | 256 bytes | 1024 bytes | 8192 bytes | 16384 bytes |
aes-128-gcm | 140285.89k | 186024.83k | 203929.43k | 211593.22k | 212574.21k | 211178.84k |
aes-256-gcm | 138025.42k | 179407.87k | 191248.64k | 200332.45k | 204953.82k | 204461.40k |
chacha20-poly1305 | 140115.36k | 326989.82k | 668424.96k | 767990.78k | 822949.21k | 823214.08k |
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