找回密码
 立即注册
查看: 213|回复: 0

[分享] Linux跑分-unixbench性能测试

[复制链接]

1

主题

1

回帖

24

积分

新手上路

积分
24
星星的你 发表于 2024-2-14 21:54:05 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我们在选择和评论一款VPS的性能时候,从理论上我们会从配置信息、硬件对比,以及带宽速度,包括这里老蒋要分享的UnixBench跑分测试。尤其是跑分测试数据基本上可以反映出这款VPS的整体性能数据,但是也不能作为唯一参考。比如之前我在Linode VPS上面测试的跑分数据在500-700之间,但是有些OPENVZ VPS跑分在2000-3000,UnixBench跑分仅仅是作为参考,一般在400分以上都差不多。



  1. // 安装运行环境
  2. yum install -y make gcc g++
  3. // 下载
  4. wget https://github.com/aliyun/byte-unixbench/releases/download/v5.1.6/UnixBench-5.1.6.tar.gz
  5. // 解压
  6. tar -zxvf UnixBench-5.1.6.tar.gz
  7. // 运行,从releases下载的是已经编译好了的
  8. cd /UnixBench-5.1.6/UnixBench
  9. ./Run
复制代码
数据解读
  1. # 测试聚焦在字符串处理,没有浮点运算操作。这个测试用于测试链接器编译、代码优化、内存缓存、等待状态、整数数据类型等,硬件和软件设计都会非常大的影响测试结果。
  2. 1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10  

  3. # 测试浮点数操作的速度和效率
  4. 1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

  5. # 此测试考察每秒钟可以执行的 execl 系统调用的次数
  6. 1 x Execl Throughput  1 2 3
  7. # 测试从一个文件向另外一个文件传输数据的速率       
  8. 1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3
  9. # 测试从一个文件向另外一个文件传输数据的速率。       
  10. 1 x File Copy 256 bufsize 500 maxblocks  1 2 3
  11. # 测试从一个文件向另外一个文件传输数据的速率。       
  12. 1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3
  13. # 一秒钟内一个进程可以向一个管道写 512 字节数据然后再读回的次数       
  14. 1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10
  15. # 测试两个进程(每秒钟)通过一个管道交换一个不断增长的整数的次数       
  16. 1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10
  17. # 测试每秒钟一个进程可以创建子进程然后收回子进程的次数(子进程一定立即退出)。       
  18. 1 x Process Creation  1 2 3
  19. # 测试进入和离开操作系统内核的代价,即一次系统调用的代价。       
  20. 1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10
  21. # 测试一秒钟内一个进程可以并发地开始一个shell 脚本的 n 个拷贝的次数,n 一般取值1,2,4,8.
  22. 1 x Shell Scripts (1 concurrent)  1 2 3

  23. 1 x Shell Scripts (8 concurrent)  1 2 3

  24. 2 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

  25. 2 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

  26. 2 x Execl Throughput  1 2 3

  27. 2 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

  28. 2 x File Copy 256 bufsize 500 maxblocks  1 2 3

  29. 2 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

  30. 2 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

  31. 2 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

  32. 2 x Process Creation  1 2 3

  33. 2 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

  34. 2 x Shell Scripts (1 concurrent)  1 2 3

  35. 2 x Shell Scripts (8 concurrent)  1 2 3

  36. ========================================================================
  37. ############             系统的基本信息                ####################
  38.    BYTE UNIX Benchmarks (Version 5.1.6)

  39.    System: VM-16-12-centos: GNU/Linux
  40.    OS: GNU/Linux -- 3.10.0-1160.31.1.el7.x86_64 -- #1 SMP Thu Jun 10 13:32:12 UTC 2021
  41.    Machine: x86_64 (x86_64)
  42.    Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
  43.    CPU 0: Intel(R) Xeon(R) Gold 6133 CPU @ 2.50GHz (4988.3 bogomips)
  44.           Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
  45.    CPU 1: Intel(R) Xeon(R) Gold 6133 CPU @ 2.50GHz (4988.3 bogomips)
  46.           Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
  47.    17:18:21 up 44 min,  2 users,  load average: 0.16, 0.09, 0.11; runlevel 2021-11-03

  48. ------------------------------------------------------------------------
  49. ###########  单核心跑分情况
  50. Benchmark Run: Wed Nov 03 2021 17:18:21 - 17:46:24
  51. 2 CPUs in system; running 1 parallel copy of tests

  52. Dhrystone 2 using register variables       30242862.5 lps   (10.0 s, 7 samples)
  53. Double-Precision Whetstone                     4057.4 MWIPS (9.2 s, 7 samples)
  54. Execl Throughput                               2143.2 lps   (29.8 s, 2 samples)
  55. File Copy 1024 bufsize 2000 maxblocks        404486.7 KBps  (30.0 s, 2 samples)
  56. File Copy 256 bufsize 500 maxblocks          114360.9 KBps  (30.0 s, 2 samples)
  57. File Copy 4096 bufsize 8000 maxblocks       1217538.3 KBps  (30.0 s, 2 samples)
  58. Pipe Throughput                              597871.6 lps   (10.0 s, 7 samples)
  59. Pipe-based Context Switching                  41061.2 lps   (10.0 s, 7 samples)
  60. Process Creation                               7089.6 lps   (30.0 s, 2 samples)
  61. Shell Scripts (1 concurrent)                   4693.1 lpm   (60.0 s, 2 samples)
  62. Shell Scripts (8 concurrent)                    927.7 lpm   (60.0 s, 2 samples)
  63. System Call Overhead                         382315.4 lps   (10.0 s, 7 samples)

  64. System Benchmarks Index Values               BASELINE       RESULT    INDEX
  65. Dhrystone 2 using register variables         116700.0   30242862.5   2591.5
  66. Double-Precision Whetstone                       55.0       4057.4    737.7
  67. Execl Throughput                                 43.0       2143.2    498.4
  68. File Copy 1024 bufsize 2000 maxblocks          3960.0     404486.7   1021.4
  69. File Copy 256 bufsize 500 maxblocks            1655.0     114360.9    691.0
  70. File Copy 4096 bufsize 8000 maxblocks          5800.0    1217538.3   2099.2
  71. Pipe Throughput                               12440.0     597871.6    480.6
  72. Pipe-based Context Switching                   4000.0      41061.2    102.7
  73. Process Creation                                126.0       7089.6    562.7
  74. Shell Scripts (1 concurrent)                     42.4       4693.1   1106.9
  75. Shell Scripts (8 concurrent)                      6.0        927.7   1546.1
  76. System Call Overhead                          15000.0     382315.4    254.9
  77.                                                                    ========
  78. System Benchmarks Index Score                                         712.4

  79. ------------------------------------------------------------------------
  80. ###########  整体跑分情况

  81. Benchmark Run: Wed Nov 03 2021 17:46:24 - 18:14:36
  82. 2 CPUs in system; running 2 parallel copies of tests

  83. Dhrystone 2 using register variables       59846268.9 lps   (10.0 s, 7 samples)
  84. Double-Precision Whetstone                     7782.5 MWIPS (9.9 s, 7 samples)
  85. Execl Throughput                               3964.4 lps   (30.0 s, 2 samples)
  86. File Copy 1024 bufsize 2000 maxblocks        618072.5 KBps  (30.0 s, 2 samples)
  87. File Copy 256 bufsize 500 maxblocks          161525.5 KBps  (30.0 s, 2 samples)
  88. File Copy 4096 bufsize 8000 maxblocks       1934016.5 KBps  (30.0 s, 2 samples)
  89. Pipe Throughput                             1133058.0 lps   (10.0 s, 7 samples)
  90. Pipe-based Context Switching                 138129.7 lps   (10.0 s, 7 samples)
  91. Process Creation                              12641.4 lps   (30.0 s, 2 samples)
  92. Shell Scripts (1 concurrent)                   6468.6 lpm   (60.0 s, 2 samples)
  93. Shell Scripts (8 concurrent)                    976.9 lpm   (60.1 s, 2 samples)
  94. System Call Overhead                         701379.4 lps   (10.0 s, 7 samples)

  95. System Benchmarks Index Values               BASELINE       RESULT    INDEX
  96. Dhrystone 2 using register variables         116700.0   59846268.9   5128.2
  97. Double-Precision Whetstone                       55.0       7782.5   1415.0
  98. Execl Throughput                                 43.0       3964.4    922.0
  99. File Copy 1024 bufsize 2000 maxblocks          3960.0     618072.5   1560.8
  100. File Copy 256 bufsize 500 maxblocks            1655.0     161525.5    976.0
  101. File Copy 4096 bufsize 8000 maxblocks          5800.0    1934016.5   3334.5
  102. Pipe Throughput                               12440.0    1133058.0    910.8
  103. Pipe-based Context Switching                   4000.0     138129.7    345.3
  104. Process Creation                                126.0      12641.4   1003.3
  105. Shell Scripts (1 concurrent)                     42.4       6468.6   1525.6
  106. Shell Scripts (8 concurrent)                      6.0        976.9   1628.2
  107. System Call Overhead                          15000.0     701379.4    467.6
  108.                                                                    ========
  109. System Benchmarks Index Score                                        1233.9
复制代码


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|IDCeve

GMT+8, 2024-5-20 22:35 , Processed in 0.050145 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表