UNXIBENCH5

                                     

http://blog.sina.com.cn/s/blog_7695e9f40100yimf.html

      UNXIBENCH5

一、             概述

    UNIXBENCH也是linuxunix测试系统基准性能的经典工具,UNIXBENCH测试包含了系统调用、读写、进程、2D3D、管道、运算、C库等系统基准性能,它的优点在于提供了对系统性能的一种评价体系,为系统评分,如此方便对系统作对比测试;但UNIXBENCH在网络性能测试欠缺。

二、             测试内容

    unixbench5测试内容包含了system2d3dmisc测试项。system测试系统的一些基本功能;2d测试2D图形加速;3d测试3D加速;misc测试诸如字符,整型等测试。详情见下面。

  system:

    dhry2reg         Dhrystone 2 using register variables

    whetstone-double Double-Precision Whetstone

    syscall          System Call Overhead

    pipe             Pipe Throughput

    context1         Pipe-based Context Switching

    spawn            Process Creation

    execl            Execl Throughput

    fstime-w         File Write 1024 bufsize 2000 maxblocks

    fstime-r         File Read 1024 bufsize 2000 maxblocks

    fstime           File Copy 1024 bufsize 2000 maxblocks

    fsbuffer-w       File Write 256 bufsize 500 maxblocks

    fsbuffer-r       File Read 256 bufsize 500 maxblocks

    fsbuffer         File Copy 256 bufsize 500 maxblocks

    fsdisk-w         File Write 4096 bufsize 8000 maxblocks

    fsdisk-r         File Read 4096 bufsize 8000 maxblocks

    fsdisk           File Copy 4096 bufsize 8000 maxblocks

    shell1           Shell Scripts (1 concurrent) (runs "looper 60 multi.sh 1")

    shell8           Shell Scripts (8 concurrent) (runs "looper 60 multi.sh 8")

    shell16          Shell Scripts (8 concurrent) (runs "looper 60 multi.sh 16")

2d:

    2d-rects         2D graphics: rectangles

    2d-lines         2D graphics: lines

    2d-circle        2D graphics: circles

    2d-ellipse       2D graphics: ellipses

    2d-shapes        2D graphics: polygons

    2d-aashapes      2D graphics: aa polygons

    2d-polys         2D graphics: complex polygons

    2d-text          2D graphics: text

    2d-blit          2D graphics: images and blits

    2d-window        2D graphics: windows

 

  3d:

    ubgears          3D graphics: gears

 

  misc:

    C                C Compiler Throughput ("looper 60 $cCompiler cctest.c")

    arithoh          Arithoh (huh?)

    short            Arithmetic Test (short) (this is arith.c configured for

                     "short" variables; ditto for the ones below)

    int              Arithmetic Test (int)

    long             Arithmetic Test (long)

    float            Arithmetic Test (float)

    double           Arithmetic Test (double)

    dc               Dc: sqrt(2) to 99 decimal places (runs

                     "looper 30 dc < dc.dat", using your system's copy of "dc")

    hanoi            Recursion Test -- Tower of Hanoi

    grep             Grep for a string in a large file, using your system's

                     copy of "grep"

    sysexec          Exercise fork() and exec().

 

 

 

三、            安装

    unixbench5包含systemgraphic测试,如果你需要测试graphic,则需要修改Makefile,不要注释掉"GRAPHIC_TESTS = defined,同时需要系统提供x11perf命令gl_glibs库。

    进入源包,执行

    make

四、            快速使用

   执行system测试方法:Run

   执行graphic测试方法:Run graphics

   执行system,graphics测试方法:Run gindex

 

五、            详细使用方法

1.    Run用法

     Run [ -q | -v ] [-i <n> ] [-c <n> [-c <n> ...]] [test ...]

选项说明:

-q 

不显示测试过程

-v

显示测试过程

-i <count>

执行次数,最低3次,默认10

-c <n>

每次测试并行ncopies(并行任务)

备注-c选项可以用来执行多次,如:

    Run -c 1 -c 4表示执行两次,第一次单个copies,第二次4copies的测试任务。

test

arithmetic       Runs arithoh, short, int, long, float, double,

                     and whetstone-double

    dhry             Alias for dhry2reg

    dhrystone        Alias for dhry2reg

    whets   

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值