当前位置: 首页 > news >正文

【测试工具】UnixBench 测试

一、UnixBench 简介

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

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

三、测试结果

硬件龙芯平台

  • 硬件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 BenchmarkMulti-CPU version                  Version 5 revisions by Ian Smith,Sunnyvale, CA, USAJanuary 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 101 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 101 x Execl Throughput  1 2 31 x File Copy 1024 bufsize 2000 maxblocks  1 2 31 x File Copy 256 bufsize 500 maxblocks  1 2 31 x File Copy 4096 bufsize 8000 maxblocks  1 2 31 x Pipe Throughput  1 2 3 4 5 6 7 8 9 101 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 101 x Process Creation  1 2 31 x System Call Overhead  1 2 3 4 5 6 7 8 9 101 x Shell Scripts (1 concurrent)  1 2 31 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 108 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 108 x Execl Throughput  1 2 38 x File Copy 1024 bufsize 2000 maxblocks  1 2 38 x File Copy 256 bufsize 500 maxblocks  1 2 38 x File Copy 4096 bufsize 8000 maxblocks  1 2 38 x Pipe Throughput  1 2 3 4 5 6 7 8 9 108 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 108 x Process Creation  1 2 38 x System Call Overhead  1 2 3 4 5 6 7 8 9 108 x Shell Scripts (1 concurrent)  1 2^[3 38 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/LinuxOS: GNU/Linux -- 4.19.0-19-loongson-3 -- #1 SMP 4.19.190.8.14 Thu Aug 24 08:54:20 UTC 2023Machine: 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 testsDhrystone 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 testsDhrystone 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
http://www.lryc.cn/news/226098.html

相关文章:

  • 软件测试金融项目,在测试的时候一定要避开的一些雷区
  • 顺序图——画法详解
  • easyexcel==省市区三级联动
  • Linux进程控制(二)--进程等待(一)
  • 【C++】C++11常用特性梳理
  • 修改iframe生成的pdf的比例
  • C++之list的用法介绍
  • Mybatis-plus 内部提供的 ServiceImpl<M extends BaseMapper<T>, T> 学习总结
  • yolov5 利用Labelimg对图片进行标注
  • 完整版付费进群带定位源码
  • 华为L410上制作内网镜像模板01
  • linuxC语言缓冲区及小程序的实现
  • MySQL数据库基本操作-DDL 数据库基础知识
  • 基于JavaWeb+SpringBoot+Vue摩托车商城微信小程序系统的设计和实现
  • idea代码快捷键Mac版
  • 分享76个Python管理系统源代码总有一个是你想要的
  • Springboot养老院信息管理系统的开发-计算机毕设 附源码27500
  • 在虚拟机中安装vim和net-tools,mysql
  • 【Excel】函数sumif范围中符合指定条件的值求和
  • k8s上对Pod的管理部分详解
  • 4.4.2 结构可以将 string类作为成员吗
  • npm install 安装总结
  • 二十三种设计模式全面解析-组合模式与享元模式的结合应用:实现对象的共享和高效管理
  • jenkins分步式构建环境(agent)
  • 前端开发学习指南
  • 环境变量小节
  • React Native适配Xcode 15 iOS 17.0+
  • Install Docker in Linux
  • Spring源码-循环依赖
  • Excel下拉填充时,如何使得数字不递增?