TPS与QPS的查询方式:
show GLOBAL STATUS LIKE 'questions'
Questions 498258465

show GLOBAL STATUS LIKE 'uptime'
Uptime 29610598

定义:QPS=Questions/Uptime

QPS=16.83

====================================

SHOW GLOBAL STATUS LIKE 'com_commit'
Com_commit 2595110

SHOW GLOBAL STATUS LIKE 'com_rollback'
Com_rollback 1545433

show GLOBAL STATUS LIKE 'uptime'
Uptime 29610598

定义:TPS= Com_commit + Com_rollback/Uptime

TPS=0.1398