最近一直在对比各种ARM矿渣或者开发板,想找个性能以及价格都平衡的低功耗设备作为7*24小时开机的家用服务器,网上对比了很久,发现在对比的时候有些性能测试要么不完整,要么可能是固件不同导致最终跑分也相差很大,正好手上N1装好了系统,我跑个分记录下,如果有朋友正好也在寻找合适的开发板,可以做个参考。

前情提要

此为N1的性能测试,N1的救砖过程可以移步这里:https://zocoxx.com/n1-rescue.html

测试时N1使用的固件是flippy大佬的openwrt_s905d_n1_R22.2.2_k5.4.179-flippy-69+o.7z,完全默认设置,没有任何地更改,测试时N1为裸板测试,不带外壳也不带散热片散热硅胶,室温大概24°。

OpenSSL单核测试

直接上测试结果:

字节数/算法16 bytes64 bytes256 bytes1024 bytes8192 bytes16384 bytes
aes-128-gcm69295.19k205149.75k402420.48k537552.21k593278.89k594209.45k
aes-256-gcm66288.49k190080.17k357531.99k463741.27k503797.08k502338.90k
chacha20-poly130542981.83k91565.99k184428.97k213939.54k226893.82k227841.37k
单核测试结果

四核心测试

测试结果:

字节数/算法16 bytes64 bytes256 bytes1024 bytes8192 bytes16384 bytes
aes-128-gcm278899.43k816538.37k1607396.10k2144562.18k2364533.42k2367133.01k
aes-256-gcm264961.65k755312.75k1425626.62k1847844.18k2008995.16k2011217.92k
chacha20-poly1305169336.35k363823.72k734228.99k852445.87k904658.94k900508.33k
四核测试结果

CoreMark测试

再是openwrt自带的coremark测试,同样的,先上测试结果由openwrt后台首页获得:

CPU CoreMark	19437.526575
aes-128-gcm(1K)	2149336.75k
aes-256-gcm(1K)	1845385.22k
chacha20-poly1305(1K)	853657.26k

自带EMMC读写速度测试

分区信息:

root@ZocoXX-N1-OpenWrt:~# lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mmcblk2      179:0    0  7.3G  0 disk
├─mmcblk2p1  179:1    0  512M  0 part /boot
├─mmcblk2p2  179:2    0  960M  0 part /
├─mmcblk2p3  179:3    0  960M  0 part /mnt/mmcblk2p3
└─mmcblk2p4  179:4    0  4.7G  0 part /mnt/mmcblk2p4/docker
                                      /mnt/mmcblk2p4
mmcblk2boot0 179:32   0    4M  1 disk
mmcblk2boot1 179:64   0    4M  1 disk

使用hdparm单次测试结果:

root@ZocoXX-N1-OpenWrt:~# hdparm -tT /dev/mmcblk2

/dev/mmcblk2:
 Timing cached reads:   2100 MB in  2.00 seconds = 1050.55 MB/sec
 Timing buffered disk reads: 410 MB in  3.01 seconds = 136.39 MB/sec

连续3次测试结果:

root@ZocoXX-N1-OpenWrt:~# for i in 1 2 3; do hdparm -tT /dev/mmcblk2; done

/dev/mmcblk2:
 Timing cached reads:   2074 MB in  2.00 seconds = 1036.96 MB/sec
 Timing buffered disk reads: 410 MB in  3.01 seconds = 136.20 MB/sec

/dev/mmcblk2:
 Timing cached reads:   2068 MB in  2.00 seconds = 1034.12 MB/sec
 Timing buffered disk reads: 410 MB in  3.01 seconds = 136.26 MB/sec

/dev/mmcblk2:
 Timing cached reads:   2070 MB in  2.00 seconds = 1035.31 MB/sec
 Timing buffered disk reads: 410 MB in  3.01 seconds = 136.07 MB/sec

N1盒子CPU信息

直接命令行查看CPU信息:

root@ZocoXX-N1-OpenWrt:~# cat /proc/cpuinfo
processor	: 0
model name	: ARMv8 Processor rev 4 (v8l)
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
model name	: ARMv8 Processor rev 4 (v8l)
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
model name	: ARMv8 Processor rev 4 (v8l)
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
model name	: ARMv8 Processor rev 4 (v8l)
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

带有AES指令集,还行。

iperf3宽带测试

使用千兆网线连接N1的网口,然后在另外的设备上使用iperf3作为服务端。

首先是TCP速度测试:

root@ZocoXX-N1-OpenWrt:~# iperf3 -c 192.168.1.1 -b 1000M
Connecting to host 192.168.1.1, port 5201
[  5] local 192.168.1.168 port 38830 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   111 MBytes   929 Mbits/sec    0    489 KBytes
[  5]   1.00-2.00   sec   112 MBytes   943 Mbits/sec    0    513 KBytes
[  5]   2.00-3.00   sec   112 MBytes   940 Mbits/sec    0    634 KBytes
[  5]   3.00-4.00   sec   112 MBytes   942 Mbits/sec    0    634 KBytes
[  5]   4.00-5.00   sec   112 MBytes   941 Mbits/sec    0    634 KBytes
[  5]   5.00-6.00   sec   112 MBytes   943 Mbits/sec    0    672 KBytes
[  5]   6.00-7.00   sec   112 MBytes   940 Mbits/sec    0    708 KBytes
[  5]   7.00-8.00   sec   112 MBytes   941 Mbits/sec    0    708 KBytes
[  5]   8.00-9.00   sec   112 MBytes   939 Mbits/sec    0    708 KBytes
[  5]   9.00-10.00  sec   112 MBytes   941 Mbits/sec    0    708 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.09 GBytes   940 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.09 GBytes   937 Mbits/sec                  receiver

iperf Done.

然后是UDP速度测试:

root@ZocoXX-N1-OpenWrt:~# iperf3 -c 192.168.1.1 -b 1000M -u
Connecting to host 192.168.1.1, port 5201
[  5] local 192.168.1.168 port 33306 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec  54.6 MBytes   458 Mbits/sec  39516
[  5]   1.00-2.00   sec  55.2 MBytes   463 Mbits/sec  39975
[  5]   2.00-3.00   sec  55.1 MBytes   462 Mbits/sec  39904
[  5]   3.00-4.00   sec  54.9 MBytes   460 Mbits/sec  39747
[  5]   4.00-5.00   sec  55.2 MBytes   463 Mbits/sec  39981
[  5]   5.00-6.00   sec  55.2 MBytes   463 Mbits/sec  39955
[  5]   6.00-7.00   sec  55.2 MBytes   463 Mbits/sec  39941
[  5]   7.00-8.00   sec  55.1 MBytes   463 Mbits/sec  39931
[  5]   8.00-9.00   sec  55.2 MBytes   463 Mbits/sec  39961
[  5]   9.00-10.00  sec  55.2 MBytes   463 Mbits/sec  39940
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec   551 MBytes   462 Mbits/sec  0.000 ms  0/398851 (0%)  sender
[  5]   0.00-10.00  sec   549 MBytes   461 Mbits/sec  0.021 ms  1139/398851 (0.29%)  receiver

iperf Done.