请在Ubuntu / Debian下推荐MySQL的性能测试工具
作者:互联网
我想在Debian或Ubuntu Server下测试我的MySQL MyISAM和InnoDB引擎的性能,以获得CPU和内存消耗.我需要模拟许多并发读取,写入和更新.我可以设置一个类似于我的生产服务器的独立隔离环境来执行测试.
最佳答案:
对于Debian来说,sysbench很难被击败.这是一个简单的1-2-3:
>安装
sudo apt-get install sysbench
>准备
sysbench –test = oltp –oltp-table-size = 1000000 –mysql-db = test –mysql-user = root –mysql-password = yourrootsqlpassword prepare
>基准
sysbench –test = oltp –oltp-table-size = 1000000 –mysql-db = test –mysql-user = root –mysql-password = yourrootsqlpassword –max-time = 60 –olt-read-only = on –max-requests = 0 –num-threads = 8 run
标签:ubuntu,mysql,benchmarking,load-testing,performance 来源: https://codeday.me/bug/20190515/1109771.html