• 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”

  • 相关阅读:
    selenium介绍
    python爬虫之requests模块介绍
    SQLAlchemy框架用法详解
    JS判断是否为移动版浏览器
    goahead Web Server 环境搭建(Linux)
    Android 应用层APP发送短信
    Git使用相关问题汇总
    Spring boot 默认首页配置
    Android Studio高版本中文输入异常
    Android ADB 常用命令详解
  • 原文地址:https://www.cnblogs.com/muahao/p/6292125.html
Copyright © 2020-2023  润新知