VC6、VC2010、C#2010、VB6和MMX、SSE指令集 运算性能大比拼(64位像素转32位像素)。请大家帮忙测试
请大家帮忙做一下测试,看看其他硬件环境下的性能。
测试程序下载——
http://files.cnblogs.com/zyl910/noif_Test.rar
http://dl.dbank.com/c069c6thd7
[解决办法]
破电脑测试一下VC2010(32) on 32bit
Intel(R) G530
== noif:VC2010(32) on 32bit ==<Press any key to continue>
f0_if[1]: 1526
f0_if[2]: 1506
f0_if[3]: 1503
f1_min[1]: 1854
f1_min[2]: 1857
f1_min[3]: 1847
f2_neg[1]: 447
f2_neg[2]: 460
f2_neg[3]: 447
f3_sar[1]: 382
f3_sar[2]: 392
f3_sar[3]: 381
[解决办法]
== noif:VC6 ==<Press any key to continue>
f0_if[1]: 2578
f0_if[2]: 2844
f0_if[3]: 3094
f1_min[1]: 3359
f1_min[2]: 3422
f1_min[3]: 3485
f2_neg[1]: 1921
f2_neg[2]: 1891
f2_neg[3]: 1922
f3_sar[1]: 1719
f3_sar[2]: 1797
f3_sar[3]: 1796
<Press any key to exit>
== noif:VB6 ==
f0_if[1]:6828
f0_if[2]:7609
f0_if[3]:7734
f2_neg[1]:3329
f2_neg[2]:3343
f2_neg[3]:3469
f2_negB[1]:7078
f2_negB[2]:7313
f2_negB[3]:7546
== noif:VC6 SIMD ==<Press any key to continue>
f4_mmx[1]: 1083.0
f4_mmx[2]: 1191.4
f4_mmx[3]: 1240.2
f5_sse[1]: 1248.1
f5_sse[2]: 1303.8
f5_sse[3]: 1342.8
<Press any key to exit>
== noif:VC2010(32) on 32bit ==<Press any key to continue>
f0_if[1]: 5094
f0_if[2]: 5984
f0_if[3]: 6031
f1_min[1]: 7500
f1_min[2]: 7735
f1_min[3]: 7828
f2_neg[1]: 2578
f2_neg[2]: 2672
f2_neg[3]: 2609
f3_sar[1]: 2531
f3_sar[2]: 2657
f3_sar[3]: 2547
<Press any key to exit>
一台04年的赛扬2.4的CPU。
[解决办法]
一台intel core(TM) I3 cPU m380 2.53GHZ 2GB内存,WIN7系统
== noif:VC2010(32) on 32bit ==<Press any key to continue>
f0_if[1]: 3132
f0_if[2]: 2415
f0_if[3]: 1796
f1_min[1]: 3014
f1_min[2]: 2929
f1_min[3]: 2674
f2_neg[1]: 497
f2_neg[2]: 497
f2_neg[3]: 513
f3_sar[1]: 392
f3_sar[2]: 384
f3_sar[3]: 388
<Press any key to exit>
== noif:VC6 SIMD ==<Press any key to continue>
f4_mmx[1]: 107.3
f4_mmx[2]: 75.0
f4_mmx[3]: 67.1
f5_sse[1]: 43.1
f5_sse[2]: 41.3
f5_sse[3]: 41.6
<Press any key to exit>
== noif:VC6 ==<Press any key to continue>
f0_if[1]: 3884
f0_if[2]: 3602
f0_if[3]: 3620
f1_min[1]: 2959
f1_min[2]: 2936
f1_min[3]: 2937
f2_neg[1]: 1569
f2_neg[2]: 1563
f2_neg[3]: 1555
f3_sar[1]: 1530
f3_sar[2]: 1532
f3_sar[3]: 1497
<Press any key to exit>
== noif:VB6 ==
f0_if[1]:8115
f0_if[2]:8126
f0_if[3]:7040
f2_neg[1]:2315
f2_neg[2]:2240
f2_neg[3]:2057
f2_negB[1]:3514
f2_negB[2]:3478
f2_negB[3]:3227
== noif:C#2010(any) on 32bit ==<Press any key to continue>
f0_if[1]: 4798
f0_if[2]: 2967
f0_if[3]: 2783
f1_min[1]: 2052
f1_min[2]: 1846
f1_min[3]: 1829
f2_neg[1]: 2372
f2_neg[2]: 2372
f2_neg[3]: 2361
f2_negB[1]: 2467
f2_negB[2]: 2478
f2_negB[3]: 2484
f3_sar[1]: 477
f3_sar[2]: 476
f3_sar[3]: 476
f3_sarB[1]: 725
f3_sarB[2]: 728
f3_sarB[3]: 733
<Press any key to exit>
== noif:C#2010(x86) on 32bit ==<Press any key to continue>
f0_if[1]: 2856
f0_if[2]: 2391
f0_if[3]: 2371
f1_min[1]: 1839
f1_min[2]: 1830
f1_min[3]: 1834
f2_neg[1]: 2393
f2_neg[2]: 2366
f2_neg[3]: 2371
f2_negB[1]: 2473
f2_negB[2]: 2476
f2_negB[3]: 2468
f3_sar[1]: 475
f3_sar[2]: 472
f3_sar[3]: 467
f3_sarB[1]: 723
f3_sarB[2]: 718
f3_sarB[3]: 736
<Press any key to exit>
[解决办法]
AMD 四核CPU 单核2GHz
== noif:VB6 ==
f0_if[1]:2108
f0_if[2]:2107
f0_if[3]:2109
f2_neg[1]:1261
f2_neg[2]:1260
f2_neg[3]:1259
f2_negB[1]:1968
f2_negB[2]:1970
f2_negB[3]:1966
[解决办法]
== noif:VC6 ==<Press any key to continue>
f0_if[1]: 1439
f0_if[2]: 1466
f0_if[3]: 1452
f1_min[1]: 1514
f1_min[2]: 1529
f1_min[3]: 1549
f2_neg[1]: 498
f2_neg[2]: 498
f2_neg[3]: 498
f3_sar[1]: 495
f3_sar[2]: 501
f3_sar[3]: 493
<Press any key to exit>
[解决办法]
f2_neg[2]: 479
f2_neg[3]: 472
f3_sar[1]: 450
f3_sar[2]: 460
f3_sar[3]: 455
<Press any key to exit>
[解决办法]
win 7 64 sp1,
在 powershell 调用测试程序,并把结果重定向 到 xxx.txt (测试程序优先级,默认的normal 优先级。)
硬件,
i7 920 @ 2.6 ghz ,内存, 4*6GB = 24GB
看起来,i7 920 的结果,好像比较慢。
== noif:C#2010(x86) on 64bit ==<Press any key to continue>
f0_if[1]:2067
f0_if[2]:2057
f0_if[3]:2061
f1_min[1]:1611
f1_min[2]:1586
f1_min[3]:1590
f2_neg[1]:2052
f2_neg[2]:2048
f2_neg[3]:2055
f2_negB[1]:2125
f2_negB[2]:2141
f2_negB[3]:2148
f3_sar[1]:411
f3_sar[2]:412
f3_sar[3]:409
f3_sarB[1]:624
f3_sarB[2]:637
f3_sarB[3]:635
<Press any key to exit>
== noif:C#2010(x64) on 64bit ==<Press any key to continue>
f0_if[1]:1539
f0_if[2]:1541
f0_if[3]:1535
f1_min[1]:1561
f1_min[2]:1551
f1_min[3]:1554
f2_neg[1]:2073
f2_neg[2]:2062
f2_neg[3]:2069
f2_negB[1]:2524
f2_negB[2]:2538
f2_negB[3]:2540
f3_sar[1]:411
f3_sar[2]:404
f3_sar[3]:398
f3_sarB[1]:488
f3_sarB[2]:495
f3_sarB[3]:488
<Press any key to exit>
== noif:C#2010(any) on 64bit ==<Press any key to continue>
f0_if[1]:1542
f0_if[2]:1540
f0_if[3]:1532
f1_min[1]:1549
f1_min[2]:1546
f1_min[3]:1547
f2_neg[1]:2065
f2_neg[2]:2061
f2_neg[3]:2064
f2_negB[1]:2508
f2_negB[2]:2515
f2_negB[3]:2529
f3_sar[1]:401
f3_sar[2]:404
f3_sar[3]:403
f3_sarB[1]:496
f3_sarB[2]:497
f3_sarB[3]:497
<Press any key to exit>
== noif:VC6 ==<Press any key to continue>
f0_if[1]:2064
f0_if[2]:2033
f0_if[3]:2048
f1_min[1]:1569
f1_min[2]:1574
f1_min[3]:1572
f2_neg[1]:964
f2_neg[2]:964
f2_neg[3]:959
f3_sar[1]:811
f3_sar[2]:823
f3_sar[3]:816
<Press any key to exit>
== noif:VC6 SIMD ==<Press any key to continue>
f4_mmx[1]:39.6
f4_mmx[2]:38.9
f4_mmx[3]:38.8
f5_sse[1]:26.1
f5_sse[2]:25.7
f5_sse[3]:25.5
<Press any key to exit>
== noif:VC2010(32) on 64bit ==<Press any key to continue>
f0_if[1]:1525
f0_if[2]:1507
f0_if[3]:1511
f1_min[1]:2181
f1_min[2]:2184
f1_min[3]:2174
f2_neg[1]:418
f2_neg[2]:420
f2_neg[3]:421
f3_sar[1]:325
f3_sar[2]:322
f3_sar[3]:321
<Press any key to exit>
== noif:VC2010(64) on 64bit ==<Press any key to continue>
f0_if[1]:1452
f0_if[2]:1451
f0_if[3]:1443
f1_min[1]:1555
f1_min[2]:1557
f1_min[3]:1569
f2_neg[1]:383
f2_neg[2]:386
f2_neg[3]:379
f3_sar[1]:248
f3_sar[2]:244
f3_sar[3]:249
<Press any key to exit>
楼主的 VB 程序, norton internet security 直接 认为,这个 vb 程序有可疑行为,直接当病毒杀掉了。
没能成功运行VB的测试。
诺顿的报告
Full Path: Not Available
____________________________
____________________________
On computers as of Tue-Apr-17-12 at 4:14:05 AM
Last Used Tue-Apr-17-12 at 4:14:05 AM
Startup Item No
Launched Yes
____________________________
____________________________
Very Few Users
Fewer than 5 users in the Norton Community have used this file.
____________________________
Very New
This file was released less than 1 week ago.
____________________________
High
This file risk is high.
____________________________
Threat Details
SONAR Protection monitors for suspicious program activity on your computer.
____________________________
Source File:
msiexec.exe
File Created:
7zg.exe
File Created:
noifvb6.exe
____________________________
File Actions
File: h:\tpdown\noif_test\noifvb6.exe
Removed
Event: Running process: h:\tpdown\noif_test\noifvb6.exe
Terminated
____________________________
System Settings Actions
Event: Process start (Performed by h:\tpdown\noif_test\noifvb6.exe, PID:7944)
No action taken
____________________________
File Thumbprint - SHA:
Not Available
____________________________
File Thumbprint - MD5:
Not Available
____________________________
== noif:C#2010(x86) on 64bit ==<Press any key to continue>
f0_if[1]: 2220
f0_if[2]: 2229
f0_if[3]: 2213
f1_min[1]: 1709
f1_min[2]: 1708
f1_min[3]: 1713
f2_neg[1]: 2222
f2_neg[2]: 2228
f2_neg[3]: 2219
f2_negB[1]: 2297
f2_negB[2]: 2301
f2_negB[3]: 2329
f3_sar[1]: 471
f3_sar[2]: 449
f3_sar[3]: 450
f3_sarB[1]: 683
f3_sarB[2]: 684
f3_sarB[3]: 691
<Press any key to exit>
== noif:C#2010(x64) on 64bit ==<Press any key to continue>
f0_if[1]: 1656
f0_if[2]: 1643
f0_if[3]: 1642
f1_min[1]: 1682
f1_min[2]: 1668
f1_min[3]: 1674
f2_neg[1]: 2240
f2_neg[2]: 2246
f2_neg[3]: 2240
f2_negB[1]: 2745
f2_negB[2]: 2747
f2_negB[3]: 2741
f3_sar[1]: 452
f3_sar[2]: 447
f3_sar[3]: 447
f3_sarB[1]: 536
f3_sarB[2]: 540
f3_sarB[3]: 543
<Press any key to exit>
== noif:C#2010(any) on 64bit ==<Press any key to continue>
f0_if[1]: 1656
f0_if[2]: 1658
f0_if[3]: 1658
f1_min[1]: 1686
f1_min[2]: 1682
f1_min[3]: 1684
f2_neg[1]: 2227
f2_neg[2]: 2229
f2_neg[3]: 2240
f2_negB[1]: 2734
f2_negB[2]: 2724
f2_negB[3]: 2728
f3_sar[1]: 447
f3_sar[2]: 453
f3_sar[3]: 454
f3_sarB[1]: 547
f3_sarB[2]: 543
f3_sarB[3]: 545
<Press any key to exit>
== noif:VC6 ==<Press any key to continue>
f0_if[1]: 2103
f0_if[2]: 2117
f0_if[3]: 2168
f1_min[1]: 1715
f1_min[2]: 1723
f1_min[3]: 1709
f2_neg[1]: 912
f2_neg[2]: 910
f2_neg[3]: 931
f3_sar[1]: 916
f3_sar[2]: 933
f3_sar[3]: 926
<Press any key to exit>
== noif:VC6 SIMD ==<Press any key to continue>
f4_mmx[1]: 42.8
f4_mmx[2]: 42.8
f4_mmx[3]: 44.3
f5_sse[1]: 28.8
f5_sse[2]: 28.4
f5_sse[3]: 28.3
<Press any key to exit>
== noif:VC2010(32) on 64bit ==<Press any key to continue>
f0_if[1]: 1617
f0_if[2]: 1617
f0_if[3]: 1614
f1_min[1]: 2345
f1_min[2]: 2347
f1_min[3]: 2337
f2_neg[1]: 464
f2_neg[2]: 456
f2_neg[3]: 463
f3_sar[1]: 349
f3_sar[2]: 353
f3_sar[3]: 353
<Press any key to exit>
== noif:VC2010(64) on 64bit ==<Press any key to continue>
f0_if[1]: 1559
f0_if[2]: 1551
f0_if[3]: 1558
f1_min[1]: 1683
f1_min[2]: 1687
f1_min[3]: 1724
f2_neg[1]: 433
f2_neg[2]: 459
f2_neg[3]: 433
f3_sar[1]: 280
f3_sar[2]: 309
f3_sar[3]: 301
<Press any key to exit>
//这个测试, xp 缺少 vc2010的东西。 没法启动 vc 2010 的测试。, c#的64位,也测试不了。
//vb的测试,直接被杀毒软件认为有可疑程序,当病毒处理,魂归回收站了
== noif:C#2010(x86) on 32bit ==<Press any key to continue>
f0_if[1]:2108
f0_if[2]:2107
f0_if[3]:2108
f1_min[1]:1678
f1_min[2]:1676
f1_min[3]:1679
f2_neg[1]:2152
f2_neg[2]:2151
f2_neg[3]:2151
f2_negB[1]:2268
f2_negB[2]:2269
f2_negB[3]:2271
f3_sar[1]:468
f3_sar[2]:468
f3_sar[3]:468
f3_sarB[1]:704
f3_sarB[2]:704
f3_sarB[3]:704
<Press any key to exit>
== noif:C#2010(any) on 32bit ==<Press any key to continue>
f0_if[1]:2104
f0_if[2]:2105
f0_if[3]:2105
f1_min[1]:1676
f1_min[2]:1675
f1_min[3]:1674
f2_neg[1]:2146
f2_neg[2]:2150
f2_neg[3]:2149
f2_negB[1]:2267
f2_negB[2]:2264
f2_negB[3]:2263
f3_sar[1]:469
f3_sar[2]:468
f3_sar[3]:468
f3_sarB[1]:694
f3_sarB[2]:694
f3_sarB[3]:696
<Press any key to exit>
== noif:VC6 ==<Press any key to continue>
f0_if[1]:2250
f0_if[2]:2234
f0_if[3]:2250
f1_min[1]:1672
f1_min[2]:1672
f1_min[3]:1672
f2_neg[1]:922
f2_neg[2]:906
f2_neg[3]:906
f3_sar[1]:891
f3_sar[2]:891
f3_sar[3]:875
<Press any key to exit>
== noif:VC6 SIMD ==<Press any key to continue>
f4_mmx[1]:52.8
f4_mmx[2]:52.7
f4_mmx[3]:52.8
f5_sse[1]:36.1
f5_sse[2]:37.1
f5_sse[3]:37.1
<Press any key to exit>
//复制,保存 到 xx.cmd,双击,目录下追加结果到 rst.txt。
// 其中,还需要 手工 press any key。 用 重定向<<输入,或者用 echo
[解决办法]
管道“any key”,好像都不行。
// lz可以写个测试的脚本,方便测试, 自动提升程序到 real time 优先级。自动应答,自动.....
noifCS2010_32 >>rst.txt
noifCS2010_64 >>rst.txt
noifCS2010_any >>rst.txt
noifVC6 >>rst.txt
noifVC6s >>rst.txt
noifVC2010_32 >>rst.txt
noifVC2010_64 >>rst.txt