
简介:
UnixBench是类Unix系统(Unix,BSD,Linux)下的性能测试工具,它是一种开放源代码工具,广泛用于测试Linux系统主机的性能。 Unixbench的主要测试项目包括:系统调用,读写,过程,图形测试,2D,3D,管道,计算,C库和其他提供测试数据的系统基准性能。 Unixbench是基于系统的基准测试工具,而不仅仅是CPU内存或磁盘测试工具。测试结果不仅取决于硬件,而且取决于系统,开发库甚至编译器。
测试过程:
制造/运行-c 1 -c 4 2
Run [‐q | ‐v] [‐i] [‐c [‐c …]] [test …] 说明: ‐q 运行quiet 模式 ‐v 运行vobose 模式 ‐i每个测试运行count 次循环‐‐‐较慢测试使用 /3,但是至少为1。默认为10(对较慢测试为3) ‐c 平行运行每个测试 个拷贝,此选项可以指定多次,例如./Run ‐c 1 ‐c 4 命令, 将会执行一个单流测试,和一个4流的测试 结果分析:
参数说明:
测试项目
测试内容
Dhrystone
此测试专注于字符串处理,没有浮点运算。结果受到硬件设计和软件优化的极大影响
磨刀石
测试浮点运算的速度和效率,包括几个典型的科学计算性能模块
卓越的吞吐量
测量每秒execl可以执行的系统调用次数
文件复制
测试从一个文件到另一文件的数据传输速率
管道吞吐量
测试进程每秒写入和读取512个字节到管道中的次数
基于管道的上下文切换
测试两个进程每秒通过管道交换越来越多的整数次
创建流程
测试一个进程每秒可以创建和撤消子进程的次数
Shell脚本
测试一个进程每秒可以同时获取n个Shell脚本副本的次数,并且n的值为1 2 4 8
系统通话费用
测试进入和离开操作系统内核的成本,即执行系统调用的成本
图形测试
测试图形卡的2D和3D图形的大致性能。结果取决于系统是否安装了适当的驱动程序。
测试结果:
# 单进程跑 Benchmark Run: Fri Jun 21 2019 15:28:48 - 15:56:50 40 CPUs in system; running 1 parallel copy of tests Dhrystone 2 using register variables 9952791.5 lps (10.0 s, 7 samples) Double-Precision Whetstone 1170.9 MWIPS (9.9 s, 7 samples) Execl Throughput 1182.5 lps (29.9 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 294218.0 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 76636.3 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 874046.7 KBps (30.0 s, 2 samples) Pipe Throughput 491780.5 lps (10.0 s, 7 samples) Pipe-based Context Switching 58927.9 lps (10.0 s, 7 samples) Process Creation 4484.8 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 2641.5 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 1460.6 lpm (60.0 s, 2 samples) System Call Overhead 1082091.6 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 9952791.5 852.9 Double-Precision Whetstone 55.0 1170.9 212.9 Execl Throughput 43.0 1182.5 275.0 File Copy 1024 bufsize 2000 maxblocks 3960.0 294218.0 743.0 File Copy 256 bufsize 500 maxblocks 1655.0 76636.3 463.1 File Copy 4096 bufsize 8000 maxblocks 5800.0 874046.7 1507.0 Pipe Throughput 12440.0 491780.5 395.3 Pipe-based Context Switching 4000.0 58927.9 147.3 Process Creation 126.0 4484.8 355.9 Shell Scripts (1 concurrent) 42.4 2641.5 623.0 Shell Scripts (8 concurrent) 6.0 1460.6 2434.3 System Call Overhead 15000.0 1082091.6 721.4 ======== System Benchmarks Index Score 537.9 # 多进程跑 ------------------------------------------------------------------------ Benchmark Run: Fri Jun 21 2019 15:56:50 - 16:24:54 40 CPUs in system; running 4 parallel copies of tests Dhrystone 2 using register variables 39789663.2 lps (10.0 s, 7 samples) Double-Precision Whetstone 4681.7 MWIPS (9.9 s, 7 samples) Execl Throughput 5123.4 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 309510.7 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 79154.9 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 944770.3 KBps (30.0 s, 2 samples) Pipe Throughput 1977063.5 lps (10.0 s, 7 samples) Pipe-based Context Switching 238917.0 lps (10.0 s, 7 samples) Process Creation 15325.3 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 10213.3 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 4780.2 lpm (60.0 s, 2 samples) System Call Overhead 1562431.7 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 39789663.2 3409.6 Double-Precision Whetstone 55.0 4681.7 851.2 Execl Throughput 43.0 5123.4 1191.5 File Copy 1024 bufsize 2000 maxblocks 3960.0 309510.7 781.6 File Copy 256 bufsize 500 maxblocks 1655.0 79154.9 478.3 File Copy 4096 bufsize 8000 maxblocks 5800.0 944770.3 1628.9 Pipe Throughput 12440.0 1977063.5 1589.3 Pipe-based Context Switching 4000.0 238917.0 597.3 Process Creation 126.0 15325.3 1216.3 Shell Scripts (1 concurrent) 42.4 10213.3 2408.8 Shell Scripts (8 concurrent) 6.0 4780.2 7967.0 System Call Overhead 15000.0 1562431.7 1041.6 ======== System Benchmarks Index Score 1382.1
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/shoujiruanjian/article-324242-1.html
因为那是他们当年玩剩下的
而且要严正表明
不能认同