Milk-V Duo与RK3308的单核性能测试对比

我最近对比了下Milk-V Duo与RK3308(单核最高1.3GHZ)的单核性能,发现两者差距有点大,我使用了一个比较简单的命令来测试:
echo “scale=5000; 4*a(1)” | bc -l -q,此命令是计算PI后面的5000位,Milk-V Duo用时~530秒,RK3308用时~170秒,这正常吗?

你需要关掉 RK3308 的其他核测试。

A35 维基百科指标:1.78 DMIPS/MHz

C906官方指标:2.4 DMIPS/MHz

MilkV
1000:16S
3000:142S

DELL:7430 intel gen12 2P8E
wsl ubuntu20.04.6
3000:4S
5000:12S

MF790pro with 7940Hs
vmware 17.5 archlinux 4core/8G ram
5000:10S
docker
5000:10S
Qemu 8.1 with same image for Milkv as above
5000:205S
3000:53S

关掉其他核测试也是170s左右,这个指令本来就是在单核上跑的。

我用coremark测试,milkv的性能还强一点,linpack测试浮点性能,milkv的性能稍微差点,就是这个PI测试差别特别大,觉得不正常。

刚到手顺便测了两个coremark,开了O3和O2:

2K performance run parameters for coremark.
CoreMark Size : 666
Total ticks : 37768882
Total time (secs): 37.768882
Iterations/Sec : 2647.682290
Iterations : 100000
Compiler version : GCC10.2.0
Compiler flags : -o3
Memory location : STACK
seedcrc : 0xe9f5
[0]crclist : 0xe714
[0]crcmatrix : 0x1fd7
[0]crcstate : 0x8e3a
[0]crcfinal : 0xd340
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 2647.682290 / GCC10.2.0 -o3 / STACK

CoreMark Size : 666
Total ticks : 39191837
Total time (secs): 39.191837
Iterations/Sec : 2551.551743
Iterations : 100000
Compiler version : GCC10.2.0
Compiler flags : -O2
Memory location : STACK
seedcrc : 0xe9f5
[0]crclist : 0xe714
[0]crcmatrix : 0x1fd7
[0]crcstate : 0x8e3a
[0]crcfinal : 0xd340
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 2551.551743 / GCC10.2.0 -O2 / STACK

如果按1GHz算的话大概2.6 Coremark/MHz, 按其他人所说的850MHz算的话大概3.0 Coremark/MHz
Coremark — Wenting's Web Page 这里找了一个RK3308的是2.5 Coremark/MHz
看样子还是Milkv高出一些

ubuntu@meshtastic:~$ ./nbench 

BYTEmark* Native Mode Benchmark ver. 2 (10/95)
Index-split by Andrew D. Balsa (11/97)
Linux/Unix* port by Uwe F. Mayer (12/96,11/97)

TEST                : Iterations/sec.  : Old Index   : New Index
                    :                  : Pentium 90* : AMD K6/233*
--------------------:------------------:-------------:------------
NUMERIC SORT        :          319.03  :       8.18  :       2.69
STRING SORT         :           35.87  :      16.03  :       2.48
BITFIELD            :      9.0306e+07  :      15.49  :       3.24
FP EMULATION        :          59.779  :      28.68  :       6.62
FOURIER             :           10743  :      12.22  :       6.86
ASSIGNMENT          :           3.579  :      13.62  :       3.53
IDEA                :          1220.8  :      18.67  :       5.54
HUFFMAN             :          675.12  :      18.72  :       5.98
NEURAL NET          :          8.9335  :      14.35  :       6.04
LU DECOMPOSITION    :          258.92  :      13.41  :       9.69
==========================ORIGINAL BYTEMARK RESULTS==========================
INTEGER INDEX       : 16.075
FLOATING-POINT INDEX: 13.299
Baseline (MSDOS*)   : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0
==============================LINUX DATA BELOW===============================
CPU                 : 
L2 Cache            : 
OS                  : Linux 5.10.4-tag-
C compiler          : riscv64-linux-gnu-gcc
libc                : /lib/riscv64-linux-gnu/libc.so.6
MEMORY INDEX        : 3.049
INTEGER INDEX       : 4.927
FLOATING-POINT INDEX: 7.376
Baseline (LINUX)    : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3, libc-5.4.38
* Trademarks are property of their respective holder.