zoukankan      html  css  js  c++  java
  • sysbench

    1 安装

    > ./configure --with-mysql-includes=/usr/local/mysql/include --with-mysql-libs=/usr/local/mysql/lib 

    > make

    > make install

    2 运行时如报错;

    dyld: Library not loaded: libmysqlclient.18.dylib

    解决如下:

    sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib

    3 使用方法 

    sh-3.2# sysbench --help
    Usage:
    sysbench [general-options]... --test=<test-name> [test-options]... command

    General options:
    --num-threads=N number of threads to use [1]
    --max-requests=N limit for total number of requests [10000]
    --max-time=N limit for total execution time in seconds [0]
    --thread-stack-size=SIZE size of stack per thread [32K]
    --init-rng=[on|off] initialize random number generator [off]
    --test=STRING test to run
    --debug=[on|off] print more debugging info [off]
    --validate=[on|off] perform validation checks where possible [off]
    --help=[on|off] print help and exit
    --version=[on|off] print version and exit

    Compiled-in tests:
    fileio - File I/O test
    cpu - CPU performance test
    memory - Memory functions speed test
    threads - Threads subsystem performance test
    mutex - Mutex performance test
    oltp - OLTP test

    Commands: prepare run cleanup help version

    See 'sysbench --test=<name> help' for a list of options for each test.

  • 相关阅读:
    jQuery源码 support
    jQuery 源码: 延迟对象补充。
    web FG interview all
    Img load
    浅谈js中this指向问题
    浅谈ES6原生Promise
    BootStrap的两种模态框方式
    让div盒子相对父盒子垂直居中的几种方法
    normalize与reset
    JS实现继承的方式
  • 原文地址:https://www.cnblogs.com/thrillerz/p/4008246.html
Copyright © 2011-2022 走看看