ThomasKaiser / sbc-bench

Simple benchmark for single board computers
BSD 3-Clause "New" or "Revised" License
675 stars 78 forks source link

RK3399 Based TV Box - 4GB / 64GB (OC + FAN) #20

Closed ataa closed 3 years ago

ataa commented 3 years ago
# systemd-analyze : 
Startup finished in 6.290s (kernel) + 1.798s (userspace) = 8.089s
graphical.target reached after 1.764s in userspace
# time openvpn --test-crypto --secret /tmp/secret --verb 0 --tun-mtu 20000 --cipher aes-256-cbc
Sat Dec 19 16:37:16 2020 disabling NCP mode (--ncp-disable) because not in P2MP client or server mode

real    0m1.571s
user    0m1.553s
sys     0m0.016s 
time openvpn --test-crypto --secret /tmp/secret --verb 0 --tun-mtu 20000 --cipher aes-128-cbc
Sat Dec 19 19:36:17 2020 disabling NCP mode (--ncp-disable) because not in P2MP client or server mode

real    0m1.524s
user    0m1.504s
sys     0m0.016s

3200 / 1.553 = 2060 Mbps for AES-256-CBC 3200 / 1.504 = 2127 Mbps for AES-128-CBC?!

Edit: Found this in RK3399 Datasheet:

Embedded dual-channel encryption and decryption engine  Support AES 128/192/256 bits key mode, ECB/CBC/CTR/XTS chain mode, Slave/FIFO mode  Support DES/3DES (ECB and CBC chain mode), 3DES (EDE/EEE key mode), Slave/FIFO mode  Support SHA1/SHA256/MD5(with hardware padding) HASH function, FIFO mode only  Support 160-bit Pseudo Random Number Generator (PRNG)  Support 256-bit True Random Number Generator (TRNG)  Support PKA 512/1024/2048 bit Exp Modulator

# openssl engine
(dynamic) Dynamic engine loading support
# systemd-analyze blame
371ms networking.service
357ms dev-mmcblk2p2.device
341ms ssh.service
230ms chrony.service
216ms systemd-logind.service
207ms user@0.service
189ms systemd-udev-trigger.service
120ms sysfsutils.service
118ms systemd-journald.service
 98ms e2scrub_reap.service
 82ms rsyslog.service
 74ms systemd-fsck@dev-disk-by\x2dlabel-BOOT_EMMC.service
 57ms systemd-udevd.service
 53ms armbian-hardware-optimize.service
 47ms dev-hugepages.mount
 46ms dev-mqueue.mount
 44ms sys-kernel-debug.mount
 40ms systemd-tmpfiles-setup.service
 37ms armbian-hardware-monitor.service
 37ms systemd-sysctl.service
 35ms fake-hwclock.service
 35ms sysstat.service
 33ms kmod-static-nodes.service
 32ms systemd-remount-fs.service
 30ms rc-local.service
 28ms systemd-tmpfiles-setup-dev.service
 28ms systemd-user-sessions.service
 28ms systemd-sysusers.service
 26ms systemd-update-utmp.service
 24ms systemd-update-utmp-runlevel.service
 22ms systemd-modules-load.service
 21ms boot.mount
 21ms user-runtime-dir@0.service
 20ms systemd-journal-flush.service
 19ms setvtrgb.service
 14ms ifupdown-pre.service
 12ms sys-kernel-config.mount
  9ms tmp.mount
# iperf3 -c 192.168.20.150 -d -P 4
[...]
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   9.00-10.00  sec  28.0 MBytes   235 Mbits/sec
[  6]   9.00-10.00  sec  28.2 MBytes   237 Mbits/sec
[  8]   9.00-10.00  sec  28.1 MBytes   236 Mbits/sec
[ 10]   9.00-10.00  sec  28.2 MBytes   237 Mbits/sec
[SUM]   9.00-10.00  sec   113 MBytes   945 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec   282 MBytes   236 Mbits/sec                  sender
[  4]   0.00-10.00  sec   282 MBytes   236 Mbits/sec                  receiver
[  6]   0.00-10.00  sec   282 MBytes   236 Mbits/sec                  sender
[  6]   0.00-10.00  sec   282 MBytes   236 Mbits/sec                  receiver
[  8]   0.00-10.00  sec   282 MBytes   236 Mbits/sec                  sender
[  8]   0.00-10.00  sec   282 MBytes   236 Mbits/sec                  receiver
[ 10]   0.00-10.00  sec   282 MBytes   236 Mbits/sec                  sender
[ 10]   0.00-10.00  sec   282 MBytes   236 Mbits/sec                  receiver
[SUM]   0.00-10.00  sec  1.10 GBytes   945 Mbits/sec                  sender
[SUM]   0.00-10.00  sec  1.10 GBytes   945 Mbits/sec                  receiver

iperf Done.

http://ix.io/2ICt