Sysbench (Application)
Jump to navigation
Jump to search
System benchmark with sysbench
Prerequisite
apt-get install sysbench
CPU test
sysbench --test=cpu run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 10000
Test execution summary:
total time: 10.8014s
total number of events: 10000
total time taken by event execution: 10.8005
per-request statistics:
min: 1.05ms
avg: 1.08ms
max: 4.23ms
approx. 95 percentile: 1.15ms
Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 10.8005/0.00
Memory test
sysbench --test=memory run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Doing memory operations speed test
Memory block size: 1K
Memory transfer size: 102400M
Memory operations type: write
Memory scope type: global
Threads started!
Done.
Operations performed: 104857600 (3005835.72 ops/sec)
102400.00 MB transferred (2935.39 MB/sec)
Test execution summary:
total time: 34.8847s
total number of events: 104857600
total time taken by event execution: 28.5864
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 0.24ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 104857600.0000/0.00
execution time (avg/stddev): 28.5864/0.00
Hard Drive I/O test
sysbench --test=fileio --file-test-mode=seqrewr run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Extra file open flags: 0
128 files, 16Mb each
2Gb total file size
Block size 16Kb
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing sequential rewrite test
Threads started!
Done.
Operations performed: 0 Read, 131072 Write, 128 Other = 131200 Total
Read 0b Written 2Gb Total transferred 2Gb (55.665Mb/sec)
3562.53 Requests/sec executed
Test execution summary:
total time: 36.7918s
total number of events: 131072
total time taken by event execution: 25.0300
per-request statistics:
min: 0.01ms
avg: 0.19ms
max: 55.26ms
approx. 95 percentile: 0.05ms
Threads fairness:
events (avg/stddev): 131072.0000/0.00
execution time (avg/stddev): 25.0300/0.00