1. 使用的工具
mbw
1. 安装方法: git clone http://github.com/raas/mbw cd mbw make 2.执行命令 ./mbw 16 -b 4096
2.1 龙芯机器
[root@NeoKylin mbw]# ./mbw -b 4096 16 Long uses 8 bytes. Allocating 2*2097152 elements = 33554432 bytes of memory. Using 4096 bytes as blocks for memcpy block copy test. Getting down to business... Doing 10 runs per test. 0 Method: MEMCPY Elapsed: 0.00831 MiB: 16.00000 Copy: 1925.855 MiB/s 1 Method: MEMCPY Elapsed: 0.00743 MiB: 16.00000 Copy: 2151.984 MiB/s 2 Method: MEMCPY Elapsed: 0.00725 MiB: 16.00000 Copy: 2207.810 MiB/s 3 Method: MEMCPY Elapsed: 0.00756 MiB: 16.00000 Copy: 2117.803 MiB/s 4 Method: MEMCPY Elapsed: 0.00696 MiB: 16.00000 Copy: 2299.511 MiB/s 5 Method: MEMCPY Elapsed: 0.00720 MiB: 16.00000 Copy: 2223.149 MiB/s 6 Method: MEMCPY Elapsed: 0.00668 MiB: 16.00000 Copy: 2394.851 MiB/s 7 Method: MEMCPY Elapsed: 0.00672 MiB: 16.00000 Copy: 2380.952 MiB/s 8 Method: MEMCPY Elapsed: 0.00683 MiB: 16.00000 Copy: 2341.235 MiB/s 9 Method: MEMCPY Elapsed: 0.00664 MiB: 16.00000 Copy: 2409.276 MiB/s AVG Method: MEMCPY Elapsed: 0.00716 MiB: 16.00000 Copy: 2235.386 MiB/s 0 Method: DUMB Elapsed: 0.05303 MiB: 16.00000 Copy: 301.722 MiB/s 1 Method: DUMB Elapsed: 0.05248 MiB: 16.00000 Copy: 304.901 MiB/s 2 Method: DUMB Elapsed: 0.05171 MiB: 16.00000 Copy: 309.442 MiB/s 3 Method: DUMB Elapsed: 0.05217 MiB: 16.00000 Copy: 306.719 MiB/s 4 Method: DUMB Elapsed: 0.05256 MiB: 16.00000 Copy: 304.420 MiB/s 5 Method: DUMB Elapsed: 0.05208 MiB: 16.00000 Copy: 307.237 MiB/s 6 Method: DUMB Elapsed: 0.05289 MiB: 16.00000 Copy: 302.509 MiB/s 7 Method: DUMB Elapsed: 0.05493 MiB: 16.00000 Copy: 291.269 MiB/s 8 Method: DUMB Elapsed: 0.05201 MiB: 16.00000 Copy: 307.604 MiB/s 9 Method: DUMB Elapsed: 0.05262 MiB: 16.00000 Copy: 304.044 MiB/s AVG Method: DUMB Elapsed: 0.05265 MiB: 16.00000 Copy: 303.909 MiB/s 0 Method: MCBLOCK Elapsed: 0.00740 MiB: 16.00000 Copy: 2161.578 MiB/s 1 Method: MCBLOCK Elapsed: 0.00699 MiB: 16.00000 Copy: 2289.639 MiB/s 2 Method: MCBLOCK Elapsed: 0.00716 MiB: 16.00000 Copy: 2234.325 MiB/s 3 Method: MCBLOCK Elapsed: 0.00697 MiB: 16.00000 Copy: 2294.894 MiB/s 4 Method: MCBLOCK Elapsed: 0.00663 MiB: 16.00000 Copy: 2412.909 MiB/s 5 Method: MCBLOCK Elapsed: 0.00689 MiB: 16.00000 Copy: 2321.195 MiB/s 6 Method: MCBLOCK Elapsed: 0.00651 MiB: 16.00000 Copy: 2456.248 MiB/s 7 Method: MCBLOCK Elapsed: 0.00710 MiB: 16.00000 Copy: 2252.252 MiB/s 8 Method: MCBLOCK Elapsed: 0.00658 MiB: 16.00000 Copy: 2432.350 MiB/s 9 Method: MCBLOCK Elapsed: 0.00673 MiB: 16.00000 Copy: 2376.355 MiB/s AVG Method: MCBLOCK Elapsed: 0.00690 MiB: 16.00000 Copy: 2319.647 MiB/s
2. 飞腾机器
root@lccy-2321321:~/lmbench3# mbw 16 -b 4096 Long uses 8 bytes. Allocating 2*2097152 elements = 33554432 bytes of memory. Using 4096 bytes as blocks for memcpy block copy test. Getting down to business... Doing 10 runs per test. 0 Method: MEMCPY Elapsed: 0.00887 MiB: 16.00000 Copy: 1804.647 MiB/s 1 Method: MEMCPY Elapsed: 0.00837 MiB: 16.00000 Copy: 1911.817 MiB/s 2 Method: MEMCPY Elapsed: 0.00834 MiB: 16.00000 Copy: 1917.316 MiB/s 3 Method: MEMCPY Elapsed: 0.00836 MiB: 16.00000 Copy: 1914.563 MiB/s 4 Method: MEMCPY Elapsed: 0.00838 MiB: 16.00000 Copy: 1909.536 MiB/s 5 Method: MEMCPY Elapsed: 0.00837 MiB: 16.00000 Copy: 1911.817 MiB/s 6 Method: MEMCPY Elapsed: 0.00836 MiB: 16.00000 Copy: 1913.189 MiB/s 7 Method: MEMCPY Elapsed: 0.00835 MiB: 16.00000 Copy: 1915.479 MiB/s 8 Method: MEMCPY Elapsed: 0.00836 MiB: 16.00000 Copy: 1912.960 MiB/s 9 Method: MEMCPY Elapsed: 0.00831 MiB: 16.00000 Copy: 1924.233 MiB/s AVG Method: MEMCPY Elapsed: 0.00841 MiB: 16.00000 Copy: 1902.950 MiB/s 0 Method: DUMB Elapsed: 0.00824 MiB: 16.00000 Copy: 1941.983 MiB/s 1 Method: DUMB Elapsed: 0.00827 MiB: 16.00000 Copy: 1935.406 MiB/s 2 Method: DUMB Elapsed: 0.00831 MiB: 16.00000 Copy: 1926.086 MiB/s 3 Method: DUMB Elapsed: 0.00829 MiB: 16.00000 Copy: 1929.571 MiB/s 4 Method: DUMB Elapsed: 0.00826 MiB: 16.00000 Copy: 1936.577 MiB/s 5 Method: DUMB Elapsed: 0.00825 MiB: 16.00000 Copy: 1938.689 MiB/s 6 Method: DUMB Elapsed: 0.00825 MiB: 16.00000 Copy: 1940.335 MiB/s 7 Method: DUMB Elapsed: 0.00826 MiB: 16.00000 Copy: 1936.812 MiB/s 8 Method: DUMB Elapsed: 0.00829 MiB: 16.00000 Copy: 1929.803 MiB/s 9 Method: DUMB Elapsed: 0.00826 MiB: 16.00000 Copy: 1936.108 MiB/s AVG Method: DUMB Elapsed: 0.00827 MiB: 16.00000 Copy: 1935.125 MiB/s 0 Method: MCBLOCK Elapsed: 0.00198 MiB: 16.00000 Copy: 8060.453 MiB/s 1 Method: MCBLOCK Elapsed: 0.00198 MiB: 16.00000 Copy: 8084.891 MiB/s 2 Method: MCBLOCK Elapsed: 0.00196 MiB: 16.00000 Copy: 8167.432 MiB/s 3 Method: MCBLOCK Elapsed: 0.00196 MiB: 16.00000 Copy: 8146.640 MiB/s 4 Method: MCBLOCK Elapsed: 0.00202 MiB: 16.00000 Copy: 7916.873 MiB/s 5 Method: MCBLOCK Elapsed: 0.00204 MiB: 16.00000 Copy: 7839.294 MiB/s 6 Method: MCBLOCK Elapsed: 0.00198 MiB: 16.00000 Copy: 8068.583 MiB/s 7 Method: MCBLOCK Elapsed: 0.00198 MiB: 16.00000 Copy: 8068.583 MiB/s 8 Method: MCBLOCK Elapsed: 0.00196 MiB: 16.00000 Copy: 8163.265 MiB/s 9 Method: MCBLOCK Elapsed: 0.00197 MiB: 16.00000 Copy: 8134.215 MiB/s AVG Method: MCBLOCK Elapsed: 0.00198 MiB: 16.00000 Copy: 8063.703 MiB/s
2.3 x86 虚拟机的性能
[root@centos74 mbw]# ./mbw 16 -b 4096 Long uses 8 bytes. Allocating 2*2097152 elements = 33554432 bytes of memory. Using 4096 bytes as blocks for memcpy block copy test. Getting down to business... Doing 10 runs per test. 0 Method: MEMCPY Elapsed: 0.00226 MiB: 16.00000 Copy: 7076.515 MiB/s 1 Method: MEMCPY Elapsed: 0.00168 MiB: 16.00000 Copy: 9535.161 MiB/s 2 Method: MEMCPY Elapsed: 0.00166 MiB: 16.00000 Copy: 9656.005 MiB/s 3 Method: MEMCPY Elapsed: 0.00166 MiB: 16.00000 Copy: 9667.674 MiB/s 4 Method: MEMCPY Elapsed: 0.00167 MiB: 16.00000 Copy: 9563.658 MiB/s 5 Method: MEMCPY Elapsed: 0.00168 MiB: 16.00000 Copy: 9540.847 MiB/s 6 Method: MEMCPY Elapsed: 0.00166 MiB: 16.00000 Copy: 9656.005 MiB/s 7 Method: MEMCPY Elapsed: 0.00169 MiB: 16.00000 Copy: 9478.673 MiB/s 8 Method: MEMCPY Elapsed: 0.00166 MiB: 16.00000 Copy: 9656.005 MiB/s 9 Method: MEMCPY Elapsed: 0.00168 MiB: 16.00000 Copy: 9552.239 MiB/s AVG Method: MEMCPY Elapsed: 0.00173 MiB: 16.00000 Copy: 9260.331 MiB/s 0 Method: DUMB Elapsed: 0.00676 MiB: 16.00000 Copy: 2366.164 MiB/s 1 Method: DUMB Elapsed: 0.01191 MiB: 16.00000 Copy: 1343.522 MiB/s 2 Method: DUMB Elapsed: 0.00880 MiB: 16.00000 Copy: 1817.562 MiB/s 3 Method: DUMB Elapsed: 0.00678 MiB: 16.00000 Copy: 2360.927 MiB/s 4 Method: DUMB Elapsed: 0.00671 MiB: 16.00000 Copy: 2384.856 MiB/s 5 Method: DUMB Elapsed: 0.00673 MiB: 16.00000 Copy: 2377.061 MiB/s 6 Method: DUMB Elapsed: 0.01164 MiB: 16.00000 Copy: 1374.925 MiB/s 7 Method: DUMB Elapsed: 0.00833 MiB: 16.00000 Copy: 1920.307 MiB/s 8 Method: DUMB Elapsed: 0.01166 MiB: 16.00000 Copy: 1372.684 MiB/s 9 Method: DUMB Elapsed: 0.00832 MiB: 16.00000 Copy: 1923.771 MiB/s AVG Method: DUMB Elapsed: 0.00876 MiB: 16.00000 Copy: 1825.796 MiB/s 0 Method: MCBLOCK Elapsed: 0.00417 MiB: 16.00000 Copy: 3833.253 MiB/s 1 Method: MCBLOCK Elapsed: 0.00403 MiB: 16.00000 Copy: 3971.209 MiB/s 2 Method: MCBLOCK Elapsed: 0.00421 MiB: 16.00000 Copy: 3803.185 MiB/s 3 Method: MCBLOCK Elapsed: 0.00384 MiB: 16.00000 Copy: 4161.248 MiB/s 4 Method: MCBLOCK Elapsed: 0.00379 MiB: 16.00000 Copy: 4221.636 MiB/s 5 Method: MCBLOCK Elapsed: 0.00399 MiB: 16.00000 Copy: 4012.036 MiB/s 6 Method: MCBLOCK Elapsed: 0.00330 MiB: 16.00000 Copy: 4854.369 MiB/s 7 Method: MCBLOCK Elapsed: 0.00301 MiB: 16.00000 Copy: 5313.849 MiB/s 8 Method: MCBLOCK Elapsed: 0.00338 MiB: 16.00000 Copy: 4732.328 MiB/s 9 Method: MCBLOCK Elapsed: 0.00337 MiB: 16.00000 Copy: 4747.774 MiB/s AVG Method: MCBLOCK Elapsed: 0.00371 MiB: 16.00000 Copy: 4313.715 MiB/s