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.

  • 相关阅读:
    howtoautomateyouriphoneappbuildswithhudson
    buildingiphoneappswithhudsonpart2
    Linux常用命令全集
    介绍
    Linux文件查找命令find,xargs详述
    Tomcat for Mac OS
    Jenkins在Mac平台安裝
    Linux下的shell与make
    buildingiosappsforovertheairadhocdistribution
    linux下u盘的使用
  • 原文地址:https://www.cnblogs.com/thrillerz/p/4008246.html
Copyright © 2011-2022 走看看