Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Please recommend performance testing tool for MySQL under Ubuntu/Debian [closed]

I would like to test performance of my MySQL MyISAM and InnoDB engines under Debian or Ubuntu Server for CPU and memory consumption. I need to simulate many concurrent reads, writes and updates. I can set up a separate isolated environment similar to my production server to perform the tests.

like image 205
PHPguy Avatar asked Jan 27 '11 18:01

PHPguy


People also ask

Which performance tool do you run to examine a query made to the database?

Example of performance testing toolsPassMark PerformanceTest. CPU-z. CrystalDisk Mark. Phoronix Test Suite.


1 Answers

For Debian, sysbench is hard to beat. It's a simple 1-2-3:

  1. Install

    sudo apt-get install sysbench

  2. Prepare

    sysbench --test=oltp --oltp-table-size=1000000 --mysql-db=test --mysql-user=root --mysql-password=yourrootsqlpassword prepare

  3. Benchmark

    sysbench --test=oltp --oltp-table-size=1000000 --mysql-db=test --mysql-user=root --mysql-password=yourrootsqlpassword --max-time=60 --oltp-read-only=on --max-requests=0 --num-threads=8 run

like image 156
cmc Avatar answered Oct 13 '22 09:10

cmc