[源码]来测测路由器cpu性能跑分

[源码]应网友要求,将代码分享出来

GitHub地址:https://github.com/siasjack/dhrystone4OP

dhrystone4OP-master

最新版本应网友要求增加了拷机模式,加上–firetest参数即可。【路由器拷机测试,CPU拷机测试】


 

本人编译了dhrystone的openwrt的IPK,用来测试路由器的cpu性能,不了解dhrystone的可以百度下!

另外对此工具做了多核优化,程序自动获取当前cpu有几个内核,并fork多个进程,根据每个进程跑出来的dmips值相加得到最后的Total DMIPS

虽然测试性能意义不大,只是图个乐子,也能根据这个结果来评判cpu的性能(一定程度上)

在网上找到了一个arm架构的dmips与hz的对应关系图,仅供参考!

测试结果

x86

Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz(阿里云单核)    8067

i5-5200u     22292(对比意义不大,性能完全不在 一个量级上!)

i3-2330M     16335

atom d2500    1950.17

mtk MT7620A      412-428

mtk MT7620N      394

mtk MT7621st(单核双线程)  正常654.96,超频1G:808.27,超频1.2G:968.61   (多谢yuestar)

mtk MT7621at(双核四线程) 迅雷下载宝  1483.37   (多谢杨阳)

atheros AR9331      289

atheros AR9341      431    (多谢junyee

atheros AR9344      446     (多谢cndxpy

QCA9533          354   (多谢zhaocz

QCA9558          683.31(多谢junyee

QCA9563          799(多谢Adoal Xu

全志A20           1963    (多谢junyee

Broadcom BCM4709C0 1.4GHz  双核心     3170.17分  (多谢sadoneli

树莓派3  BCM2837 A53 1.2GHZ 四核    2845     (自测)

思科EA4500,1.2 GHz Marvell(MRVL F6W01A1E C120)       743.51  (多谢KIDand怪盗基德

网件 x10 r9000,Alpine AL314(ARM A15 4核心)     6985.63(多谢yuestar)

网件R7800 IPQ8065双核1.7Ghz   5990.50(多谢hingbong

ASUS-ACRH17   IPQ4019    四核ARMV7-A   4560.00 (多谢lintel)

小米路由HD 高通IPQ8064  四核ARMV7-A  1.4GHz  3390.05(多谢y)

骁龙835    36094(多谢酱葱鱼

 

请大家根据自己的设备的平台下载相对应的二进制或者ipk,在设备上运行即可,运行如下信息

注:安装ipk后的可执行命令为dhrystone,不是gcc_dry2,实际上两者是同一个文件,只是改了名字。

请大家运行后得到Total DMIPS在评论中回复,并告知cpu型号,多谢大家!!

dhrystone.ipk_gcc_dry2.zip【所有平台的ipk及二进制的总集】

gcc_dry2-brcm63xx.bin

dhrystone_2-1-1_brcm63xx.ipk

gcc_dry2_mips74kc_brcm47xx.bin

dhrystone_2-1-1_brcm47xx_mips74kc.ipk

gcc_dry2_brcm47xx_generic.bin

dhrystone_2-1-1_brcm47xx_generci.ipk

dhrystone_2-1-1_ar71xx.ipk

gcc_dry2-ar71xx.bin

gcc_dry2-bcm53xx dhrystone_2-1-1_bcm53xx.ipk

dhrystone_2-1-1_mt7620_ramips_24kec.ipk

dhrystone_2-1-1_mt7628_ramips_24kec.ipk

gcc_dry2-mt7628.bin

gcc_dry2-mt7688.bin

dhrystone_2-1-1_mt7688_ramips_24kec.ipk

gcc_dry2-x86.bin

gcc_dry2-mt7620.bin

gcc_dry2-x64.bin[更新log打印]

gcc_dry2_mt7621 dhrystone_mt7621_ramips_1004kc.ipk[更新log打印]

52 thoughts on “[源码]来测测路由器cpu性能跑分

  1. YouKu L2,无法得到结果:
    /tmp # wget http://www.openwrtdl.com/wordpress/wp-content/uploads/2016/10/gcc_dry2-mt7621.bin
    Connecting to http://www.openwrtdl.com (121.40.216.86:80)
    gcc_dry2-mt7621.bin 100% |*******************************************************************************************************************| 15277 0:00:00 ETA
    /tmp # chmod +x gcc_dry2-mt7621.bin
    /tmp # ./gcc_dry2-mt7621.bin
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 4 processor(s)
    DMIPSApp Running
    =====================================================
    Parent process forked process 1601(forkNum=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0)
    Parent process forked process 1602(forkNum=1)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1)
    Parent process forked process 1603(forkNum=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3)
    Execute ends(cpuNum = 0)
    ==========================================

    Execute ends(cpuNum = 1)
    ==========================================

    Execute ends(cpuNum = 2)
    ==========================================

    Execute ends(cpuNum = 3)
    ==========================================

    Total DMIPS: nan
    DMIPSAPP Exiting

  2. Dhrystone BenchMark, Version 2.1(Language:C)
    system has 1 processor(s)
    AR9344的
    DMIPSApp Running
    =====================================================
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0)
    Execute ends(cpuNum = 0)
    ==========================================

    Total DMIPS:446.06
    DMIPSAPP Exiting

  3. arm的性能还是可以的
    admin@RT-AC5300-8E70:/jffs/test# ./gcc_dry2
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 2 processor(s),I will fork 2 process,then adding together dmips,get total dmips!

    DMIPSApp Running

    Parent process forked process 7534(cpuid=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=7533)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=7534)

    Execute ends(cpuNum = 1,pid=7533)

    save dmips 1611.07,pid:7533

    Execute ends(cpuNum = 0,pid=7534)

    save dmips 1559.10,pid:7534
    read dmips:1559.10,pid:7534

    Total DMIPS:3170.17

  4. X86为啥没有IPK,还有报错
    root@PR:/tmp# ./gcc_dry2-x86
    ./gcc_dry2-x86: line 1: syntax error: unexpected word (expecting “)”)

  5. 迅雷下载宝PRO MT7621,RAM 256M
    [root@xiazaibao:/root/usr/bin]#./dhrystone
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 4 processor(s),I will fork 4 process,then adding together dmips,get t otal dmips!

    DMIPSApp Running

    Parent process forked process 10119(cpuid=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=10119)
    Parent process forked process 10120(cpuid=1)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=10120)
    Parent process forked process 10121(cpuid=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3,pid=10118)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2,pid=10121)

    Execute ends(cpuNum = 2,pid=10121)

    save dmips 391.49,pid:10121

    Execute ends(cpuNum = 1,pid=10120)

    save dmips 373.41,pid:10120

    Execute ends(cpuNum = 0,pid=10119)

    save dmips 372.51,pid:10119

    Execute ends(cpuNum = 3,pid=10118)

    save dmips 345.96,pid:10118
    read dmips:372.51,pid:10119
    read dmips:373.41,pid:10120
    read dmips:391.49,pid:10121

    Total DMIPS:1483.37

  6. 思科EA4500,1.2 GHz Marvell Processor(MRVL F6W01A1E C120)
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 1 processor(s),I will fork 1 process,then adding together dmips,get total dmips!

    DMIPSApp Running

    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=14607)

    Execute ends(cpuNum = 0,pid=14607)

    save dmips 743.51,pid:14607

    Total DMIPS:743.51

  7. AR9341超频650m
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 1 processor(s)

    DMIPSApp Running

    Excution starts, 20000000 runs through Dhrystone(cpuNum=0)

    Execute ends(cpuNum = 0)

    Total DMIPS:505.51
    DMIPSAPP Exiting

  8. 智博通MT7621 WG3526
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 4 processor(s)
    DMIPSApp Running
    =====================================================
    Parent process forked process 11777(forkNum=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0)
    Parent process forked process 11778(forkNum=1)
    Parent process forked process 11779(forkNum=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2)
    Execute ends(cpuNum = 3)
    ==========================================

    Execute ends(cpuNum = 1)
    ==========================================

    Execute ends(cpuNum = 0)
    ==========================================

    Execute ends(cpuNum = 2)
    ==========================================

    Total DMIPS:1264.57
    DMIPSAPP Exiting

  9. /home/zabbix/src/build-src/dhrystone/src # ./gcc_dry2 root@ubuntu-zabbix
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 4 processor(s),I will fork 4 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 41147(cpuid=0)
    Parent process forked process 41148(cpuid=1)
    Parent process forked process 41149(cpuid=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3,pid=41146)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=41147)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=41148)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2,pid=41149)
    Execute ends(cpuNum = 1,pid=41148)
    ==========================================

    save dmips 9844.87,pid:41148
    Execute ends(cpuNum = 0,pid=41147)
    ==========================================

    Execute ends(cpuNum = 3,pid=41146)
    ==========================================

    save dmips 9657.84,pid:41146
    save dmips 9725.79,pid:41147
    read dmips:9844.87,pid:41148
    read dmips:9725.79,pid:41147
    Execute ends(cpuNum = 2,pid=41149)
    ==========================================

    save dmips 9702.63,pid:41149
    read dmips:9702.63,pid:41149

    Total DMIPS:38931.13

    **************************以上是一台hyperv虚机的测试结果。

    root@ubnt:/tmp# ./gcc_dry2
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 2 processor(s),I will fork 2 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 2708(cpuid=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=2707)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=2708)
    Execute ends(cpuNum = 1,pid=2707)
    ==========================================

    save dmips 313.72,pid:2707
    Execute ends(cpuNum = 0,pid=2708)
    ==========================================

    save dmips 285.35,pid:2708
    read dmips:285.35,pid:2708

    Total DMIPS:599.07
    *************************以上是ubnt erlite-3的测试结果。

  10. root@XiaoQiang:~# gcc_dry2
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 2 processor(s),I will fork 2 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 5126(cpuid=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=5125)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=5126)
    Execute ends(cpuNum = 1,pid=5125)
    ==========================================

    save dmips 1703.38,pid:5125
    Execute ends(cpuNum = 0,pid=5126)
    ==========================================

    save dmips 1686.67,pid:5126
    read dmips:1686.67,pid:5126

    Total DMIPS:3390.05
    *******************************************************
    小米路由hd

  11. IPQ4019,ASUS-ACRH17
    ARMv7 VFPv4+NEON,Linaro GCC开了针对ARMv7的优化参数

    [root@PandoraBox_B45D:/root]#cat /proc/cpuinfo
    processor : 0
    model name : ARMv7 Processor rev 5 (v7l)
    BogoMIPS : 96.00
    Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xc07
    CPU revision : 5

    processor : 1
    model name : ARMv7 Processor rev 5 (v7l)
    BogoMIPS : 96.00
    Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xc07
    CPU revision : 5

    processor : 2
    model name : ARMv7 Processor rev 5 (v7l)
    BogoMIPS : 96.00
    Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xc07
    CPU revision : 5

    processor : 3
    model name : ARMv7 Processor rev 5 (v7l)
    BogoMIPS : 96.00
    Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xc07
    CPU revision : 5

    Hardware : Qualcomm (Flattened Device Tree)
    Revision : 0000
    Serial : 0000000000000000

    [root@PandoraBox_B45D:/root]#dhrystone
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 4 processor(s),I will fork 4 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 2415(cpuid=0)
    Parent process forked process 2416(cpuid=1)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=2416)
    Parent process forked process 2417(cpuid=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3,pid=2414)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2,pid=2417)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=2415)
    Execute ends(cpuNum = 2,pid=2417)
    ==========================================

    save dmips 1144.98,pid:2417
    Execute ends(cpuNum = 1,pid=2416)
    ==========================================

    save dmips 1139.70,pid:2416
    Execute ends(cpuNum = 0,pid=2415)
    ==========================================

    save dmips 1138.56,pid:2415
    Execute ends(cpuNum = 3,pid=2414)
    ==========================================

    save dmips 1136.77,pid:2414
    read dmips:1138.56,pid:2415
    read dmips:1139.70,pid:2416
    read dmips:1144.98,pid:2417

    Total DMIPS:4560.00

  12. 测了一下QCA9563,用的机子是UBNT UAP-AC-Lite

    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 1 processor(s),I will fork 1 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=1140)
    Execute ends(cpuNum = 0,pid=1140)
    ==========================================

    save dmips 799.18,pid:1140

      1. 是啊,以前常看到说ramips吊打ar71xx全家……跑过这个分以后才知道如果不是核心数量因素的话ramips的王者7621也就那么回事了:p

  13. 现在都转投LEDE,站长的那些IPK不能用了.
    好在路由器上装了gcc.
    QCA9558 + 128M DDR2
    *配置有点老了,但家庭还是够用的*



    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 1 processor(s),I will fork 1 process,then adding together dmips,get t otal dmips!
    DMIPSApp Running
    =====================================================
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=5288)
    Execute ends(cpuNum = 0,pid=5288)
    ==========================================

    save dmips 683.31,pid:5288

    Total DMIPS:683.31

  14. Dhrystone BenchMark, Version 2.1(Language:C)
    system has 2 processor(s),I will fork 2 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 11782(cpuid=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=11781)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=11782)
    Execute ends(cpuNum = 0,pid=11782)
    ==========================================

    save dmips 3045.38,pid:11782
    Execute ends(cpuNum = 1,pid=11781)
    ==========================================

    save dmips 2945.12,pid:11781
    read dmips:3045.38,pid:11782

    Total DMIPS:5990.50
    网件R7800 IPQ8065双核1.7Ghz

  15. 刚买的路由器还在路上,手头暂时没有能用的路由器,等到手了就拿路由器跑跑。目前索性就拿手机跑了一下,虽说系统也不是openwrt。
    骁龙835 4*cortex-a73@2.36ghz+4*cortex-a53@1.9ghz
    不过,好像目前还没人发arm64设备的成绩。
    jcy@localhost:~/dry$ neofetch
    _,met$$$$$gg. jcy@localhost
    ,g$$$$$$$$$$$$$$$P. ————-
    ,g$$P” “””Y$$.”. OS: Debian GNU/Linux 9 (stretch) aarch64
    ,$$P’ $$$. Model: Qualcomm Technologies, Inc. MSM 8998 v2.1
    ',$$P ,ggs.
    $$b: Kernel: 4.4.78-perf+
    d$$' ,$P"' . $$$ Uptime: 18 hours, 7 minutes
    $$P d$' , $$P Packages: 418
    $$: $$. - ,d$$' Shell: bash 4.4.12
    $$; Y$b._ _,d$P' CPU: AArch64 rev 4 (aarch64) (8) @ 1.9GHz
    Y$$.
    ."Y$$$$P"' Memory: 2471MB / 5714MB
    $$b “-.__
    Y$$ ████████████████████████
    Y$$.
    $$b.
    Y$$b.
    "Y$b._
    “””

    jcy@localhost:~/dry$ ./gcc_dry2
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 8 processor(s),I will fork 8 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 28199(cpuid=0)
    Parent process forked process 28200(cpuid=1)
    Parent process forked process 28201(cpuid=2)
    Parent process forked process 28202(cpuid=3)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=28200)
    Parent process forked process 28203(cpuid=4)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2,pid=28201)
    Parent process forked process 28204(cpuid=5)
    Parent process forked process 28205(cpuid=6)
    WARNING: Could not set CPU Affinity(cpuid=6,pid=28205)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=28199)
    WARNING: Could not set CPU Affinity(cpuid=5,pid=28204)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=4,pid=28203)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=7,pid=28198)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3,pid=28202)
    Execute ends(cpuNum = 4,pid=28203)
    ==========================================

    save dmips 6827.04,pid:28203
    Execute ends(cpuNum = 7,pid=28198)
    ==========================================

    save dmips 6826.97,pid:28198
    read dmips:6827.04,pid:28203
    forked process 28204 returned err code 2
    forked process 28205 returned err code 2
    Execute ends(cpuNum = 0,pid=28199)
    ==========================================

    save dmips 3217.91,pid:28199
    read dmips:3217.91,pid:28199
    Execute ends(cpuNum = 3,pid=28202)
    ==========================================

    save dmips 3217.21,pid:28202
    read dmips:3217.21,pid:28202
    Execute ends(cpuNum = 2,pid=28201)
    ==========================================

    save dmips 3200.75,pid:28201
    Execute ends(cpuNum = 1,pid=28200)
    read dmips:3200.75,pid:28201
    ==========================================

    save dmips 3199.39,pid:28200
    read dmips:3199.39,pid:28200

    Total DMIPS:26489.27

    1. 不过,博主,按每个线程分别跑,再累加这样算得话,mt7621,atom d525等支持超线程的cpu成绩会不会虚高。

        1. 这玩意儿好像挺吃编译器的,我在安卓下,用clang5.0内置的gcc编译的跑分,比我在debian下用gcc-7编译的跑分高多了。
          以下是在安卓下编译的。
          $ ./gcc_dry2
          Dhrystone BenchMark, Version 2.1(Language:C)
          system has 8 processor(s),I will fork 8 process,then adding together dmips,get total dmips!
          DMIPSApp Running
          =====================================================
          Parent process forked process 7392(cpuid=0)
          Parent process forked process 7393(cpuid=1)
          Parent process forked process 7394(cpuid=2)
          Excution starts, 20000000 runs through Dhrystone(cpuNum=2,pid=7394)
          Parent process forked process 7395(cpuid=3)
          Excution starts, 20000000 runs through Dhrystone(cpuNum=3,pid=7395)
          Parent process forked process 7396(cpuid=4)
          Parent process forked process 7397(cpuid=5)
          Parent process forked process 7398(cpuid=6)
          WARNING: Could not set CPU Affinity(cpuid=7)
          Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=7392)
          Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=7393)
          Excution starts, 20000000 runs through Dhrystone(cpuNum=5,pid=7397)
          WARNING: Could not set CPU Affinity(cpuid=6,pid=7398)
          Excution starts, 20000000 runs through Dhrystone(cpuNum=4,pid=7396)
          forked process 7398 returned err code 2
          Execute ends(cpuNum = 4,pid=7396)
          ==========================================

          save dmips 9439.07,pid:7396
          read dmips:9439.07,pid:7396
          Execute ends(cpuNum = 5,pid=7397)
          ==========================================

          save dmips 9341.65,pid:7397
          read dmips:9341.65,pid:7397
          Execute ends(cpuNum = 1,pid=7393)
          ==========================================

          save dmips 4354.17,pid:7393
          read dmips:4354.17,pid:7393
          Execute ends(cpuNum = 0,pid=7392)
          ==========================================

          save dmips 4337.56,pid:7392
          read dmips:4337.56,pid:7392
          Execute ends(cpuNum = 2,pid=7394)
          ==========================================

          save dmips 4312.27,pid:7394
          Execute ends(cpuNum = 3,pid=7395)
          ==========================================

          save dmips 4309.79,pid:7395
          read dmips:4309.79,pid:7395
          read dmips:4312.27,pid:7394

          Total DMIPS:36094.51

  16. 又来娱乐下. Intel(R) Pentium(R) CPU B940 @ 2.00GHz


    root@debian-junyee:/tmp/dhrystone/src# ./cc_dry2
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 2 processor(s),I will fork 2 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 7436(cpuid=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=7435)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=7436)
    Execute ends(cpuNum = 1,pid=7435)
    ==========================================

    save dmips 7455.45,pid:7435
    Execute ends(cpuNum = 0,pid=7436)
    ==========================================

    save dmips 7454.89,pid:7436
    read dmips:7454.89,pid:7436

    Total DMIPS:14910.34

    root@debian-junyee:/tmp/dhrystone/src# ./gcc_dry2
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 2 processor(s),I will fork 2 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 7442(cpuid=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=7441)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=7442)
    Execute ends(cpuNum = 0,pid=7442)
    ==========================================

    save dmips 5733.25,pid:7442
    Execute ends(cpuNum = 1,pid=7441)
    ==========================================

    save dmips 5730.45,pid:7441
    read dmips:5733.25,pid:7442

    Total DMIPS:11463.70

  17. 刷了MIUI,发现能8核心跑满了(看来是一加官方系统的锅)
    之前我发的那个36094.51DMIPS的编译器是clang,并不是gcc,因此拿来对比并不公平
    高通骁龙835:
    Dhrystone BenchMark, Version 2.1(Language:C)
    Processor : AArch64 Processor rev 4 (aarch64)
    processor : 0
    model name : ARMv8 Processor rev 4 (v8l)
    BogoMIPS : 38.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x51
    CPU architecture: 8
    CPU variant : 0xa
    CPU part : 0x801
    CPU revision : 4

    processor : 1
    model name : ARMv8 Processor rev 4 (v8l)
    BogoMIPS : 38.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x51
    CPU architecture: 8
    CPU variant : 0xa
    CPU part : 0x801
    CPU revision : 4

    processor : 2
    model name : ARMv8 Processor rev 4 (v8l)
    BogoMIPS : 38.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x51
    CPU architecture: 8
    CPU variant : 0xa
    CPU part : 0x801
    CPU revision : 4

    processor : 3
    model name : ARMv8 Processor rev 4 (v8l)
    BogoMIPS : 38.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x51
    CPU architecture: 8
    CPU variant : 0xa
    CPU part : 0x801
    CPU revision : 4

    processor : 4
    model name : ARMv8 Processor rev 1 (v8l)
    BogoMIPS : 38.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x51
    CPU architecture: 8
    CPU variant : 0xa
    CPU part : 0x800
    CPU revision : 1

    processor : 5
    model name : ARMv8 Processor rev 1 (v8l)
    BogoMIPS : 38.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x51
    CPU architecture: 8
    CPU variant : 0xa
    CPU part : 0x800
    CPU revision : 1

    processor : 6
    model name : ARMv8 Processor rev 1 (v8l)
    BogoMIPS : 38.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x51
    CPU architecture: 8
    CPU variant : 0xa
    CPU part : 0x800
    CPU revision : 1

    processor : 7
    model name : ARMv8 Processor rev 1 (v8l)
    BogoMIPS : 38.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x51
    CPU architecture: 8
    CPU variant : 0xa
    CPU part : 0x800
    CPU revision : 1

    Hardware : Qualcomm Technologies, Inc MSM8998
    system has 8 processor(s),I will fork 8 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 17634(cpuid=0)
    Parent process forked process 17635(cpuid=1)
    Parent process forked process 17636(cpuid=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=17634)
    Parent process forked process 17637(cpuid=3)
    Parent process forked process 17638(cpuid=4)
    Parent process forked process 17639(cpuid=5)
    Parent process forked process 17640(cpuid=6)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2,pid=17636)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3,pid=17637)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=5,pid=17639)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=7,pid=17633)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=4,pid=17638)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=6,pid=17640)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=17635)
    Execute ends(cpuNum = 5,pid=17639)
    ==========================================

    save dmips 7365.05,pid:17639
    Execute ends(cpuNum = 6,pid=17640)
    ==========================================

    save dmips 7331.71,pid:17640
    Execute ends(cpuNum = 7,pid=17633)
    ==========================================

    save dmips 7218.25,pid:17633
    read dmips:7365.05,pid:17639
    read dmips:7331.71,pid:17640
    Execute ends(cpuNum = 4,pid=17638)
    ==========================================

    save dmips 7175.64,pid:17638
    read dmips:7175.64,pid:17638
    Execute ends(cpuNum = 3,pid=17637)
    ==========================================

    save dmips 3356.43,pid:17637
    read dmips:3356.43,pid:17637
    Execute ends(cpuNum = 2,pid=17636)
    ==========================================

    save dmips 3329.68,pid:17636
    read dmips:3329.68,pid:17636
    Execute ends(cpuNum = 1,pid=17635)
    ==========================================

    save dmips 3313.11,pid:17635
    read dmips:3313.11,pid:17635
    Execute ends(cpuNum = 0,pid=17634)
    ==========================================

    save dmips 3285.52,pid:17634
    read dmips:3285.52,pid:17634

    Total DMIPS:42375.39

    ××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××

    然后就是已经被无数人跑了一遍又一遍的mt7621(淘宝买的山寨路由):
    Dhrystone BenchMark, Version 2.1(Language:C)
    system type : MediaTek MT7621 SoC
    processor : 0
    cpu model : MIPS 1004Kc V2.15
    BogoMIPS : 663.55
    wait instruction : yes
    microsecond timers : yes
    tlb_entries : 32
    extra interrupt vector : yes
    hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0000, 0x0000]
    ASEs implemented : mips16 dsp mt
    shadow register sets : 1
    kscratch registers : 0
    core : 0
    VPE : 0
    VCED exceptions : not available
    VCEI exceptions : not available

    processor : 1
    cpu model : MIPS 1004Kc V2.15
    BogoMIPS : 663.55
    wait instruction : yes
    microsecond timers : yes
    tlb_entries : 32
    extra interrupt vector : yes
    hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0000, 0x0000]
    ASEs implemented : mips16 dsp mt
    shadow register sets : 1
    kscratch registers : 0
    core : 0
    VPE : 1
    VCED exceptions : not available
    VCEI exceptions : not available

    processor : 2
    cpu model : MIPS 1004Kc V2.15
    BogoMIPS : 663.55
    wait instruction : yes
    microsecond timers : yes
    tlb_entries : 32
    extra interrupt vector : yes
    hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0000, 0x0000]
    ASEs implemented : mips16 dsp mt
    shadow register sets : 1
    kscratch registers : 0
    core : 1
    VPE : 0
    VCED exceptions : not available
    VCEI exceptions : not available

    processor : 3
    cpu model : MIPS 1004Kc V2.15
    BogoMIPS : 663.55
    wait instruction : yes
    microsecond timers : yes
    tlb_entries : 32
    extra interrupt vector : yes
    hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0000, 0x0000]
    ASEs implemented : mips16 dsp mt
    shadow register sets : 1
    kscratch registers : 0
    core : 1
    VPE : 1
    VCED exceptions : not available
    VCEI exceptions : not available

    system has 4 processor(s),I will fork 4 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 18834(cpuid=0)
    Parent process forked process 18835(cpuid=1)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=18834)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=18835)
    Parent process forked process 18836(cpuid=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3,pid=18833)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2,pid=18836)
    Execute ends(cpuNum = 3,pid=18833)
    ==========================================

    save dmips 383.48,pid:18833
    Execute ends(cpuNum = 2,pid=18836)
    ==========================================

    save dmips 382.77,pid:18836
    read dmips:382.77,pid:18836
    Execute ends(cpuNum = 1,pid=18835)
    ==========================================

    save dmips 382.35,pid:18835
    read dmips:382.35,pid:18835
    Execute ends(cpuNum = 0,pid=18834)
    ==========================================

    save dmips 381.59,pid:18834
    read dmips:381.59,pid:18834

    Total DMIPS:1530.19

  18. 一个比较特殊的设备,龙芯2f笔记本。玲珑8089d
    龙芯2f处理器,单核单线程,主频800Mhz。mips3 64位。
    编译器是gcc-4.9。系统是Debian8,为了防止图形界面影响性能,跑分是退出xorg跑的。
    这是它在-O3 -march=loongson2f(开龙芯优化,mips3 o32 32位abi)下的跑分:
    Dhrystone BenchMark, Version 2.1(Language:C)
    system type : lemote-yeeloong-2f-8.9inches
    machine : Unknown
    processor : 0
    cpu model : ICT Loongson-2 V0.3 FPU V0.1
    BogoMIPS : 530.94
    wait instruction : no
    microsecond timers : yes
    tlb_entries : 64
    extra interrupt vector : no
    hardware watchpoint : yes, count: 0, address/irw mask: []
    isa : mips1 mips2 mips3
    ASEs implemented :
    shadow register sets : 1
    kscratch registers : 0
    package : 0
    core : 0
    VCED exceptions : not available
    VCEI exceptions : not available

    system has 1 processor(s),I will fork 1 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=2608)
    Execute ends(cpuNum = 0,pid=2608)
    ==========================================

    save dmips 1006.11,pid:2608

    Total DMIPS:1006.11

    #########################################
    这是它在-O3 -march=loongson2f -mabi=n32(开龙芯优化,mips3 n32 32位abi)下的跑分。
    Dhrystone BenchMark, Version 2.1(Language:C)
    system type : lemote-yeeloong-2f-8.9inches
    machine : Unknown
    processor : 0
    cpu model : ICT Loongson-2 V0.3 FPU V0.1
    BogoMIPS : 530.94
    wait instruction : no
    microsecond timers : yes
    tlb_entries : 64
    extra interrupt vector : no
    hardware watchpoint : yes, count: 0, address/irw mask: []
    isa : mips1 mips2 mips3
    ASEs implemented :
    shadow register sets : 1
    kscratch registers : 0
    package : 0
    core : 0
    VCED exceptions : not available
    VCEI exceptions : not available

    system has 1 processor(s),I will fork 1 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=2603)
    Execute ends(cpuNum = 0,pid=2603)
    ==========================================

    save dmips 1084.91,pid:2603

    Total DMIPS:1084.91

    #########################################
    这是它在-O3 -march=loongson2f -mabi=64(开龙芯优化,mips3 64位abi)下的跑分:
    Dhrystone BenchMark, Version 2.1(Language:C)
    system type : lemote-yeeloong-2f-8.9inches
    machine : Unknown
    processor : 0
    cpu model : ICT Loongson-2 V0.3 FPU V0.1
    BogoMIPS : 530.94
    wait instruction : no
    microsecond timers : yes
    tlb_entries : 64
    extra interrupt vector : no
    hardware watchpoint : yes, count: 0, address/irw mask: []
    isa : mips1 mips2 mips3
    ASEs implemented :
    shadow register sets : 1
    kscratch registers : 0
    package : 0
    core : 0
    VCED exceptions : not available
    VCEI exceptions : not available

    system has 1 processor(s),I will fork 1 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=3059)
    Execute ends(cpuNum = 0,pid=3059)
    ==========================================

    save dmips 879.79,pid:3059

    Total DMIPS:879.79
    ##########################################
    综上,龙芯2f跑该程序时,在mips3 n32 abi下跑分最高

  19. Newifi3路由器,MT7621A 超频到1.2G。
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 4 processor(s)
    DMIPSApp Running
    =====================================================
    Parent process forked process 9377(forkNum=0)
    Parent process forked process 9378(forkNum=1)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1)
    Parent process forked process 9379(forkNum=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3)
    Execute ends(cpuNum = 2)
    ==========================================

    Execute ends(cpuNum = 3)
    ==========================================

    Execute ends(cpuNum = 1)
    ==========================================

    Execute ends(cpuNum = 0)
    ==========================================

    Total DMIPS:1940.87
    DMIPSAPP Exiting

  20. 以下是几种设备的测试结果:

    intel D525:
    root@OpenWrt:~# ./gcc_dry2-x64.bin
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 4 processor(s)
    DMIPSApp Running
    =====================================================
    Parent process forked process 14080(forkNum=0)
    Parent process forked process 14081(forkNum=1)
    Parent process forked process 14082(forkNum=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3)
    Execute ends(cpuNum = 2)
    ==========================================

    Execute ends(cpuNum = 1)
    ==========================================

    Execute ends(cpuNum = 0)
    ==========================================

    Execute ends(cpuNum = 3)
    ==========================================

    Total DMIPS:5370.93
    DMIPSAPP Exiting

    AMD G-T40N Processor (升腾690-2)
    root@OpenWrt:~# ./gcc_dry2-x64.bin
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 2 processor(s)
    DMIPSApp Running
    =====================================================
    Parent process forked process 13484(forkNum=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1)
    Execute ends(cpuNum = 0)
    ==========================================

    Execute ends(cpuNum = 1)
    ==========================================

    Total DMIPS:3639.41
    DMIPSAPP Exiting

    intel n270:
    root@OpenWrt:~# ./gcc_dry2-x86.bin -firetest
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 2 processor(s)
    DMIPSApp Running
    =====================================================
    Parent process forked process 20302(forkNum=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0)
    Execute ends(cpuNum = 1)
    ==========================================

    Execute ends(cpuNum = 0)
    ==========================================

    Total DMIPS:2472.00
    DMIPSAPP Exiting

    intel D2550
    root@OpenWrt:~# ./gcc_dry2-x64.bin
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 4 processor(s)
    DMIPSApp Running
    =====================================================
    Parent process forked process 22144(forkNum=0)
    Parent process forked process 22145(forkNum=1)
    Parent process forked process 22146(forkNum=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3)
    Execute ends(cpuNum = 1)
    ==========================================

    Execute ends(cpuNum = 0)
    ==========================================

    Execute ends(cpuNum = 3)
    ==========================================

    Execute ends(cpuNum = 2)
    ==========================================

    Total DMIPS:5628.25
    DMIPSAPP Exiting

    1. 多谢支持!

      我看你用了-firetest参数,这个参数在最新的github上的代码才支持
      我放上来的二进制是老版本的,不支持这个参数的

  21. 我公司的路由RT-AC86U
    Dhrystone BenchMark, Version 2.1(Language:C)
    ===================/proc/cpuinfo==============processor : 0
    BogoMIPS : 100.00
    Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x42
    CPU architecture: 8
    CPU variant : 0x0
    CPU part : 0x100
    CPU revision : 0

    processor : 1
    BogoMIPS : 100.00
    Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x42
    CPU architecture: 8
    CPU variant : 0x0
    CPU part : 0x100
    CPU revision : 0

    ===================/proc/cpuinfo end==============system has 2 processor(s),I will fork 2 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 31314(cpuid=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=31313)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=31314)
    Execute ends(cpuNum = 1,pid=31313)
    ==========================================

    save dmips 3198.79,pid:31313
    Execute ends(cpuNum = 0,pid=31314)
    ==========================================

    save dmips 3172.79,pid:31314
    read dmips:3172.79,pid:31314

    Total DMIPS:6371.58

  22. 我的路由 MSI CUBE N5000-4Gram+USB3.0网卡
    Dhrystone BenchMark, Version 2.1(Language:C)
    ===================/proc/cpuinfo==============processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 122
    model name : Intel(R) Pentium(R) Silver N5000 CPU @ 1.10GHz
    stepping : 1
    microcode : 0x16
    cpu MHz : 796.092
    cache size : 4096 KB
    physical id : 0
    siblings : 4
    core id : 0
    cpu cores : 4
    apicid : 0
    initial apicid : 0
    fpu : yes
    fpu_exception : yes
    cpuid level : 24
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm 3dnowprefetch cpuid_fault cat_l2 pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust smep erms mpx rdt_a rdseed smap clflushopt intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts umip rdpid
    bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass
    bogomips : 2188.80
    clflush size : 64
    cache_alignment : 64
    address sizes : 39 bits physical, 48 bits virtual
    power management:

    processor : 1
    vendor_id : GenuineIntel
    cpu family : 6
    model : 122
    model name : Intel(R) Pentium(R) Silver N5000 CPU @ 1.10GHz
    stepping : 1
    microcode : 0x16
    cpu MHz : 796.064
    cache size : 4096 KB
    physical id : 0
    siblings : 4
    core id : 1
    cpu cores : 4
    apicid : 2
    initial apicid : 2
    fpu : yes
    fpu_exception : yes
    cpuid level : 24
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm 3dnowprefetch cpuid_fault cat_l2 pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust smep erms mpx rdt_a rdseed smap clflushopt intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts umip rdpid
    bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass
    bogomips : 2188.80
    clflush size : 64
    cache_alignment : 64
    address sizes : 39 bits physical, 48 bits virtual
    power management:

    processor : 2
    vendor_id : GenuineIntel
    cpu family : 6
    model : 122
    model name : Intel(R) Pentium(R) Silver N5000 CPU @ 1.10GHz
    stepping : 1
    microcode : 0x16
    cpu MHz : 796.064
    cache size : 4096 KB
    physical id : 0
    siblings : 4
    core id : 2
    cpu cores : 4
    apicid : 4
    initial apicid : 4
    fpu : yes
    fpu_exception : yes
    cpuid level : 24
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm 3dnowprefetch cpuid_fault cat_l2 pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust smep erms mpx rdt_a rdseed smap clflushopt intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts umip rdpid
    bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass
    bogomips : 2188.80
    clflush size : 64
    cache_alignment : 64
    address sizes : 39 bits physical, 48 bits virtual
    power management:

    processor : 3
    vendor_id : GenuineIntel
    cpu family : 6
    model : 122
    model name : Intel(R) Pentium(R) Silver N5000 CPU @ 1.10GHz
    stepping : 1
    microcode : 0x16
    cpu MHz : 796.061
    cache size : 4096 KB
    physical id : 0
    siblings : 4
    core id : 3
    cpu cores : 4
    apicid : 6
    initial apicid : 6
    fpu : yes
    fpu_exception : yes
    cpuid level : 24
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm 3dnowprefetch cpuid_fault cat_l2 pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust smep erms mpx rdt_a rdseed smap clflushopt intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts umip rdpid
    bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass
    bogomips : 2188.80
    clflush size : 64
    cache_alignment : 64
    address sizes : 39 bits physical, 48 bits virtual
    power management:

    ===================/proc/cpuinfo end==============system has 4 processor(s),I will fork 4 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 5499(cpuid=0)
    Parent process forked process 5500(cpuid=1)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=5500)
    Parent process forked process 5501(cpuid=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=5499)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3,pid=5498)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2,pid=5501)
    Execute ends(cpuNum = 1,pid=5500)
    ==========================================

    save dmips 7064.32,pid:5500
    Execute ends(cpuNum = 2,pid=5501)
    ==========================================

    save dmips 7018.73,pid:5501
    Execute ends(cpuNum = 3,pid=5498)
    ==========================================

    save dmips 6945.07,pid:5498
    read dmips:7064.32,pid:5500
    read dmips:7018.73,pid:5501
    Execute ends(cpuNum = 0,pid=5499)
    ==========================================

    save dmips 6911.55,pid:5499
    read dmips:6911.55,pid:5499

    Total DMIPS:27939.67

  23. 软路由CPU用的J4205
    root@Openwrt:/koolshare/bin# dhrystone
    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 4 processor(s),I will fork 4 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 29462(cpuid=0)
    Parent process forked process 29463(cpuid=1)
    Parent process forked process 29464(cpuid=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2,pid=29464)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1,pid=29463)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0,pid=29462)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3,pid=29461)
    Execute ends(cpuNum = 1,pid=29463)
    ==========================================

    save dmips 5148.10,pid:29463
    Execute ends(cpuNum = 2,pid=29464)
    ==========================================

    save dmips 5142.62,pid:29464
    Execute ends(cpuNum = 0,pid=29462)
    ==========================================

    save dmips 5106.01,pid:29462
    Execute ends(cpuNum = 3,pid=29461)
    ==========================================

    save dmips 4984.08,pid:29461
    read dmips:5106.01,pid:29462
    read dmips:5148.10,pid:29463
    read dmips:5142.62,pid:29464

    Total DMIPS:20380.81

  24. CPU 型号:E5-2687W v2 @ 3.5GHz
    Total DMIPS:105288.64

    Dhrystone BenchMark, Version 2.1(Language:C)
    system has 12 processor(s)
    DMIPSApp Running
    =====================================================
    Parent process forked process 126(forkNum=0)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=0)
    Parent process forked process 127(forkNum=1)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=1)
    Parent process forked process 128(forkNum=2)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=2)
    Parent process forked process 129(forkNum=3)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=3)
    Parent process forked process 130(forkNum=4)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=4)
    Parent process forked process 131(forkNum=5)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=5)
    Parent process forked process 132(forkNum=6)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=6)
    Parent process forked process 133(forkNum=7)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=7)
    Parent process forked process 134(forkNum=8)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=8)
    Parent process forked process 135(forkNum=9)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=9)
    Parent process forked process 136(forkNum=10)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=10)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=11)
    Execute ends(cpuNum = 2)
    ==========================================

    Execute ends(cpuNum = 0)
    ==========================================

    Execute ends(cpuNum = 4)
    ==========================================

    Execute ends(cpuNum = 3)
    ==========================================

    Execute ends(cpuNum = 6)
    ==========================================

    Execute ends(cpuNum = 7)
    ==========================================

    Execute ends(cpuNum = 10)
    ==========================================
    Execute ends(cpuNum = 1)

    ==========================================

    Execute ends(cpuNum = 9)
    ==========================================

    Execute ends(cpuNum = 8)
    Execute ends(cpuNum = 5)
    ==========================================
    ==========================================

    Execute ends(cpuNum = 11)
    ==========================================

    Total DMIPS:105288.64
    DMIPSAPP Exiting

  25. processor : 31
    vendor_id : GenuineIntel
    cpu family : 6
    model : 79
    处理器 : Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
    stepping : 1
    microcode : 0xb00002a
    cpu MHz : 1216.031
    cache size : 20480 KB
    physical id : 1
    siblings : 16
    core id : 7
    cpu cores : 8
    apicid : 31
    initial apicid : 31
    fpu : yes
    fpu_exception : yes
    cpuid level : 20
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdseed adx smap xsaveopt cqm_llc cqm_occup_llc
    bogomips : 4205.05
    clflush size : 64
    cache_alignment : 64
    address sizes : 46 bits physical, 48 bits virtual
    power management:

    system has 32 processor(s),I will fork 32 process,then adding together dmips,get total dmips!
    DMIPSApp Running
    =====================================================
    Parent process forked process 41220(cpuid=0)
    Parent process forked process 41221(cpuid=1)
    Parent process forked process 41222(cpuid=2)
    Parent process forked process 41223(cpuid=3)
    Parent process forked process 41224(cpuid=4)
    Parent process forked process 41225(cpuid=5)
    Parent process forked process 41226(cpuid=6)
    Parent process forked process 41227(cpuid=7)
    Parent process forked process 41228(cpuid=8)
    Parent process forked process 41229(cpuid=9)
    Excution starts, 20000000 runs through Dhrystone(cpuNum=10,pid=41230)
    Execute ends(cpuNum = 10,pid=41230)
    ==========================================

    save dmips 6182.01,pid:41230
    read dmips:6281.57,pid:41241
    read dmips:6294.32,pid:41242
    read dmips:6274.07,pid:41239
    read dmips:6297.60,pid:41243
    read dmips:6337.67,pid:41245
    read dmips:6283.45,pid:41246
    read dmips:6274.44,pid:41248
    read dmips:6280.09,pid:41250
    read dmips:6269.62,pid:41240
    read dmips:6264.51,pid:41227
    read dmips:6264.61,pid:41232
    read dmips:6261.13,pid:41222
    read dmips:6260.93,pid:41223
    read dmips:6260.13,pid:41224
    read dmips:6261.31,pid:41228
    read dmips:6258.31,pid:41220
    read dmips:6265.19,pid:41244
    read dmips:6254.81,pid:41221
    read dmips:6253.25,pid:41225
    read dmips:6256.20,pid:41234
    read dmips:6254.78,pid:41231
    read dmips:6254.88,pid:41233
    read dmips:6245.99,pid:41235
    read dmips:6250.34,pid:41249
    read dmips:6246.16,pid:41247
    read dmips:6182.01,pid:41230

    Total DMIPS:200582.62

发表评论

邮箱地址不会被公开。 必填项已用*标注