zoukankan      html  css  js  c++  java
  • sysbench_cpu

    5 core : 25.2848s

    [root@jiangyi01.sqa.zmf /home/ahao.mah/ALIOS_QA/tools/sysbench]
    #sysbench --num-threads=5 --max-time=100 --test=cpu --cpu-max-prime=50000 run
    sysbench 0.5:  multi-threaded system evaluation benchmark
    
    Running the test with following options:
    Number of threads: 5
    Random number generator seed is 0 and will be ignored
    
    
    Primer numbers limit: 50000
    
    Threads started!
    
    
    General statistics:
        total time:                          25.2848s
        total number of events:              10000
        total time taken by event execution: 126.3908s
        response time:
             min:                                 12.62ms
             avg:                                 12.64ms
             max:                                 16.26ms
             approx.  95 percentile:              12.64ms
    
    Threads fairness:
        events (avg/stddev):           2000.0000/1.55
        execution time (avg/stddev):   25.2782/0.00
    
    

    指定5个线程,那么就是会占用5个core

    [root@jiangyi01.sqa.zmf /home/ahao.mah]
    #pid=`ps axu | grep sysbench | grep -v grep  | awk '{print $2}'`;top -Hp $pid
    
    

    10 core : 13.0198s

    [root@jiangyi01.sqa.zmf /home/ahao.mah/ALIOS_QA/tools/sysbench]
    #sysbench --num-threads=10 --max-time=100 --test=cpu --cpu-max-prime=50000 run
    sysbench 0.5:  multi-threaded system evaluation benchmark
    
    Running the test with following options:
    Number of threads: 10
    Random number generator seed is 0 and will be ignored
    
    
    Primer numbers limit: 50000
    
    Threads started!
    
    
    General statistics:
        total time:                          13.0198s
        total number of events:              10000
        total time taken by event execution: 130.1298s
        response time:
             min:                                 12.63ms
             avg:                                 13.01ms
             max:                                 20.71ms
             approx.  95 percentile:              17.44ms
    
    Threads fairness:
        events (avg/stddev):           1000.0000/38.30
        execution time (avg/stddev):   13.0130/0.00
    

    --max-requests=指定“total number of events”

  • 相关阅读:
    kubernetes 修改 可用端口号
    解决Mac下MX4手机无法连接adb问题之解决方案
    由于源码使用是cc++与oc混编导致Unknown type name 'NSString'
    Cocos2dx使用wxsqlite开源加密SQLite3数据库
    Cocos2dx网络读取图片
    解决Xcode删除文件后missing file警告
    WebRTC 配置环境
    Cocos2d-x 3.0 纹理
    Mac/Linux如何查找应用所安装路径
    设置Git用户信息
  • 原文地址:https://www.cnblogs.com/muahao/p/6292125.html
Copyright © 2011-2022 走看看