wiki:Sysbench
Last modified 9 years ago Last modified on 04/26/2010 08:59:39 PM

SysBench: a system performance benchmark

http://sysbench.sourceforge.net

Installation

  • copy tar file to /usr/local/src
  • cd /usr/local/src
  • untar -zxvf sysbench-0.4.12.tar.gz
  • cd sysbench-0.4.12
  • edit configure.ac
    • change "AC_PROG_LIBTOOL" to "AC_PROG_RANLIB" at line 75
  • ./autogen.sh
  • ./configure
  • make
  • make install

CPU Benchmarks

4/26/2010:

sysbench --num-threads=16 --test=cpu --cpu-max-prime=50000 run
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 16

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 50000


Test execution summary:
    total time:                          25.5695s
    total number of events:              10000
    total time taken by event execution: 408.7349
    per-request statistics:
         min:                                 20.41ms
         avg:                                 40.87ms
         max:                                320.44ms
         approx.  95 percentile:             120.43ms

Threads fairness:
    events (avg/stddev):           625.0000/5.57
    execution time (avg/stddev):   25.5459/0.02


Thread Benchmarks

4/26/2010:

sysbench --num-threads=16 --test=threads run
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 16

Doing thread subsystem performance test
Thread yields per test: 1000 Locks used: 8
Threads started!
Done.


Test execution summary:
    total time:                          5.4958s
    total number of events:              10000
    total time taken by event execution: 87.8332
    per-request statistics:
         min:                                  0.69ms
         avg:                                  8.78ms
         max:                                231.95ms
         approx.  95 percentile:              47.26ms

Threads fairness:
    events (avg/stddev):           625.0000/50.76
    execution time (avg/stddev):   5.4896/0.00

Mutex Benchmarks

4/26/2010:

sysbench --num-threads=32 --test=mutex run
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 32

Doing mutex performance test
Threads started!
Done.


Test execution summary:
    total time:                          1.6061s
    total number of events:              32
    total time taken by event execution: 37.3650
    per-request statistics:
         min:                                691.46ms
         avg:                               1167.66ms
         max:                               1594.88ms
         approx.  95 percentile:            1590.35ms

Threads fairness:
    events (avg/stddev):           1.0000/0.00
    execution time (avg/stddev):   1.1677/0.30

Memory Benchmarks

4/26/2010:

sysbench --num-threads=32 --test=memory run
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 32

Doing memory operations speed test
Memory block size: 1K

Memory transfer size: 102400M

Memory operations type: write
Memory scope type: global
WARNING: Operation time (0.000000) is less than minimal counted value, counting as 1.000000
WARNING: Percentile statistics will be inaccurate
Threads started!
Done.

Operations performed: 104857600 (826213.83 ops/sec)

102400.00 MB transferred (806.85 MB/sec)


Test execution summary:
    total time:                          126.9134s
    total number of events:              104857600
    total time taken by event execution: 1946.8624
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.02ms
         max:                               4268.46ms
         approx.  95 percentile:               0.00ms

Threads fairness:
    events (avg/stddev):           3276800.0000/171116.65
    execution time (avg/stddev):   60.8395/0.88

File IO Benchmarks

FileIOBenchmarks

Database Benchmarks

DatabaseBenchmarks