【测试工具】UnixBench 测试

这篇具有很好参考价值的文章主要介绍了【测试工具】UnixBench 测试。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

一、UnixBench 简介

  • UnixBench 原本叫做 BYTE UNIX benchmark suite。软件为 Unix 类的系统提供了一些基本的性能指标。通过不同的测试来测试系统不同方面的性能(2D,3D,CPU,内存等等)。这些测试的结果将和一些标准的系统来做比较,从而得出一些性能指数,比原始 的测试数据容容易理解。
  • UnixBench一个基于系统的基准测试工具,不单纯是CPU 内存 或者磁盘测试工具。测试结果不仅仅取决于硬件,也取决于系统、开发库、甚至是编译器。
  • UnixBench测试执行完大约需要10-30分钟。

备注:UnixBench性能测试工具新版本改动研究

1.1 UnixBench 测试项目

  • Dhrystone 2 using register variables
  • Double-Precision Whetstone
  • Execl Throughput
  • File Copy 1024 bufsize 2000 maxblocks
  • File Copy 256 bufsize 500 maxblocks
  • File Copy 4096 bufsize 8000 maxblocks
  • Pipe Throughput
  • Pipe-based Context Switching
  • Process Creation
  • System Call Overhead
  • Shell Scripts

二、UnixBench 测试

2.1 获取UnixBench

  • git clone https://github.com/kdlucas/byte-unixbench

2.2 编译

  • cd byte-unixbench/UnixBench
  • make

2.3 运行

  • ./Run

三、测试结果

硬件龙芯平台文章来源地址https://www.toymoban.com/news/detail-794609.html

  • 硬件ls3a6000+7a2000
  • 系统loonnix20.5

3.1 运行截图

UnixBench# ./Run 
make all
make[1]: Entering directory '/home/test/work/tools/byte-unixbench/UnixBench'
make distr
make[2]: Entering directory '/home/test/work/tools/byte-unixbench/UnixBench'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[2]: Leaving directory '/home/test/work/tools/byte-unixbench/UnixBench'
make programs
make[2]: Entering directory '/home/test/work/tools/byte-unixbench/UnixBench'
make[2]: Nothing to be done for 'programs'.
make[2]: Leaving directory '/home/test/work/tools/byte-unixbench/UnixBench'
make[1]: Leaving directory '/home/test/work/tools/byte-unixbench/UnixBench'
sh: 1: 3dinfo: not found

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.3                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   January 13, 2011                   johantheghost at yahoo period com

------------------------------------------------------------------------------
   Use directories for:
      * File I/O tests (named fs***) = /home/test/work/tools/byte-unixbench/UnixBench/tmp
      * Results                      = /home/test/work/tools/byte-unixbench/UnixBench/results
------------------------------------------------------------------------------

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

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

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

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

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

1 x Process Creation  1 2 3

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

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3
Wide character in printf at ./Run line 1574.

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

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

8 x Execl Throughput  1 2 3

8 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

8 x File Copy 256 bufsize 500 maxblocks  1 2 3

8 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

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

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

8 x Process Creation  1 2 3

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

8 x Shell Scripts (1 concurrent)  1 2^[3 3

8 x Shell Scripts (8 concurrent)  1 2 3
Wide character in printf at ./Run line 1574.

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: test-pc: GNU/Linux
   OS: GNU/Linux -- 4.19.0-19-loongson-3 -- #1 SMP 4.19.190.8.14 Thu Aug 24 08:54:20 UTC 2023
   Machine: loongarch64 (loongarch64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Loongson-3A6000 (5000.0 bogomips)
          
   CPU 1: Loongson-3A6000 (5000.0 bogomips)
          
   CPU 2: Loongson-3A6000 (5000.0 bogomips)
          
   CPU 3: Loongson-3A6000 (5000.0 bogomips)
          
   CPU 4: Loongson-3A6000 (5000.0 bogomips)
          
   CPU 5: Loongson-3A6000 (5000.0 bogomips)
          
   CPU 6: Loongson-3A6000 (5000.0 bogomips)
          
   CPU 7: Loongson-3A6000 (5000.0 bogomips)
          
   15:53:56 up 3 days, 20:28,  1 user,  load average: 0.36, 0.41, 0.37; runlevel 2023-11-02

------------------------------------------------------------------------

3.2 单任务性能

Benchmark Run:1106 2023 15:53:56 - 16:21:55
8 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       41104135.1 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     4882.6 MWIPS (9.3 s, 7 samples)
Execl Throughput                               7143.9 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1133161.1 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          314827.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       2770273.0 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2130688.7 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 353227.4 lps   (10.0 s, 7 samples)
Process Creation                              15592.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                  14861.6 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   6354.0 lpm   (60.0 s, 2 samples)
System Call Overhead                        2581924.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   41104135.1   3522.2
Double-Precision Whetstone                       55.0       4882.6    887.7
Execl Throughput                                 43.0       7143.9   1661.4
File Copy 1024 bufsize 2000 maxblocks          3960.0    1133161.1   2861.5
File Copy 256 bufsize 500 maxblocks            1655.0     314827.5   1902.3
File Copy 4096 bufsize 8000 maxblocks          5800.0    2770273.0   4776.3
Pipe Throughput                               12440.0    2130688.7   1712.8
Pipe-based Context Switching                   4000.0     353227.4    883.1
Process Creation                                126.0      15592.5   1237.5
Shell Scripts (1 concurrent)                     42.4      14861.6   3505.1
Shell Scripts (8 concurrent)                      6.0       6354.0  10590.1
System Call Overhead                          15000.0    2581924.8   1721.3
                                                                   ========
System Benchmarks Index Score                                        2242.3

------------------------------------------------------------------------

3.3 多任务性能

Benchmark Run:1106 2023 16:21:55 - 16:49:58
8 CPUs in system; running 8 parallel copies of tests

Dhrystone 2 using register variables      220723621.0 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    36175.1 MWIPS (9.4 s, 7 samples)
Execl Throughput                              38363.4 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       5597370.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks         1731731.2 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks      10649295.0 KBps  (30.0 s, 2 samples)
Pipe Throughput                            11214848.7 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                1985885.8 lps   (10.0 s, 7 samples)
Process Creation                              75309.7 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                  50164.3 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   7509.6 lpm   (60.0 s, 2 samples)
System Call Overhead                       18562375.6 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0  220723621.0  18913.8
Double-Precision Whetstone                       55.0      36175.1   6577.3
Execl Throughput                                 43.0      38363.4   8921.7
File Copy 1024 bufsize 2000 maxblocks          3960.0    5597370.6  14134.8
File Copy 256 bufsize 500 maxblocks            1655.0    1731731.2  10463.6
File Copy 4096 bufsize 8000 maxblocks          5800.0   10649295.0  18360.9
Pipe Throughput                               12440.0   11214848.7   9015.2
Pipe-based Context Switching                   4000.0    1985885.8   4964.7
Process Creation                                126.0      75309.7   5977.0
Shell Scripts (1 concurrent)                     42.4      50164.3  11831.2
Shell Scripts (8 concurrent)                      6.0       7509.6  12516.0
System Call Overhead                          15000.0   18562375.6  12374.9
                                                                   ========
System Benchmarks Index Score                                       10330.6


到了这里,关于【测试工具】UnixBench 测试的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 软件测试——版本管理工具:SVN和Git

    SVN是开放源代码的版本控制系统 集中式的含义是指:所有的文件都在仓库中,而他的仓库是在服务器上的,一旦服务器出现问题,就无法更新或者获取S VN中的信息,集中式的版本管理工具在本地备份的只是数据,没有层级结构。SVN就是集中式的工具 分布式的含义是指:并不

    2024年02月07日
    浏览(72)
  • 接口测试工具——Postman测试工具 & Swagger接口测试+SpringBoot整合 & JMeter高并发测试工具

    头部携带token 类型选择JSON https://apifox.com/ swagger2,较多 swagger3, Knife4j的前身是swagger-bootstrap=ui,前身swagger–bootstrap-ui是一个纯swagger–ui的ui皮肤项目 https://doc.xiaominfo.com/docs/quick-start 底层就是swagger 序号 注解 作用 1 @Api(tags = “图书的api接口类”) 左侧名字 2 @ApiOperation(“findPa

    2024年02月12日
    浏览(41)
  • 海康直连工具 海康测试工具,工程宝测试软件等

    海康直连工具 海康测试工具,工程宝测试软件等,监控工程调试软件,海康/大华,摄像头IP批量修改,摄像头密码重置,恢复出厂等各种工程测试软件,所有软件为app格式, 都是原厂最新版软件,别再问可不可以装在手机/平板/电脑上能不能用,这是工程宝专业测试软件用在

    2024年02月12日
    浏览(82)
  • 自动化测试工具比传统测试工具的优势体现在哪里?

    随着软件行业的快速发展和扩张,自动化测试工具在提高测试效率和质量方面起到了不可或缺的作用,那你知道自动化测试工具比传统测试工具的优势体现在哪里吗?   首先,自动化测试工具能够大大缩短测试周期。相比于传统手动测试,自动化测试工具能够在短时间内执行

    2024年02月16日
    浏览(35)
  • 接口测试流程、测试点和测试工具

    目录 前言: 一、什么情况下开展接口测试? 二、如何进行接口测试

    2024年02月11日
    浏览(43)
  • 工具分享:在线键盘测试工具

    在数字化时代,键盘作为我们与计算机交互的重要媒介之一,其性能和稳定性直接影响到我们的工作效率和使用体验。为了确保键盘的每个按键都能正常工作,并帮助用户检测潜在的延迟、连点等问题,一款优质的在线键盘测试工具显得尤为重要。本文将详细介绍一款备受推

    2024年02月22日
    浏览(38)
  • 前端性能测试必备测试工具

    我们在使用网站过程中,经常会遇到慢的问题,为了找到原因,一般需要借助工具进行检测,通过工具,可以检测出前端站点加载资源的相关详细情况。 今天,就给大家介绍几款前端性能测试分析工具,结合性能测试工具,实现通过量化的方式测试网站中诸如首字节加载时间

    2024年02月05日
    浏览(39)
  • MATLAB/ SIMULINK模型在环MIL测试工具,自动化模型测试工具,自动生成测试报告

    MATLAB/ SIMULINK模型在环MIL测试工具,自动化模型测试工具,自动生成测试报告。 软件纯自己编写,经过长时间测试,包教会。 使用简单,可以参考如下截图。 ID:972000 677200256038 悦潮风尚

    2024年02月16日
    浏览(40)
  • 渗透测试工具——漏洞扫描工具

    技术原因 软件系统复杂性提高,质量难于控制,安全性降低 公用模块的使用引发了安全问题 经济原因 “柠檬市场”效应——安全功能是最容易删减的部分 环境原因 从传统的封闭、静态和可控变为开放、动态和难控 攻易守难 安全缺陷 安全性缺陷是信息系统或产品自身“与

    2023年04月09日
    浏览(30)
  • 测试工具分享:高效完成测试工作!

    说在前头 大家🐒啊,我是小🍬,小伙伴们一般都叫我苏苏。我在软件 测试 行业有5年的经验,目前是一家小公司技术部门的测试主管。 在社会上,特别是技术圈, 大家会有刻板印象:测试工作的含金量不高 。因为大家觉得测试不重要,导致给测试的薪水也偏低;这又反向

    2024年02月02日
    浏览(38)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包