Sysbench
Sysbench is a benchmarking tool that has several modes to bench:
- fileio
: This performs the file I/O test- cpu
: This performs the CPU performance test- memory
: This performs the memory functions speed test- threads
: This performs the thread subsystem performance test- mutex
: This performs the mutex performance test- oltp
: This performs the OLTP test
To install it, run this command:
> aptitude install sysbench
The common test is to use the Online Transaction Processing (OLTP) scenario with small transactions to hit an optimized database. We will pass arguments to the command to simulate application threads (the --num-threads
argument).
You can run this OLTP test with two kinds of scenarios:
Read only (14
SELECT
queries per transaction)Read/Write (14
SELECT
, 1INSERT
, 1UPDATE
, and 1DELETE
queries per transaction)
The available version in Debian Wheezy is 0.4. A newer version exists with more interesting results such as a reporting interval every x sec. In addition, you can...