com_commit = show global status like ‘com_commit’;
com_rollback = show global status like ‘com_rollback’;
com_select = show global status like ‘com_select’;
com_insert = show global status like ‘com_insert’;
com_delete = show global status like ‘com_delete’;
com_update = show global status like ‘com_update’;
uptime = show global status like ‘uptime’;
tps=(com_commit + com_rollback + com_select + com_insert + com_delete + com_update)/uptime**
MySQL计算TPS
最新推荐文章于 2024-07-01 09:14:46 发布