TPS/QPS

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TPS/QPS相关的知识,希望对你有一定的参考价值。

有很多人,自己TPS和QPS的关系都搞不清。
如下为基本的查询方式是,与计算公式! 拿走不谢!

MariaDB [(none)]> show global status like ‘questions‘;
+---------------+----------+
| Variable_name | Value |
+---------------+----------+
| Questions | 70991770 |
+---------------+----------+
1 row in set (0.00 sec)

MariaDB [(none)]> show global status like ‘uptime‘;
+---------------+--------+
| Variable_name | Value |
+---------------+--------+
| Uptime | 485352 |
+---------------+--------+
1 row in set (0.00 sec)

Questions/ Uptime
QPS:146

MariaDB [(none)]> show global status like ‘com_commit‘;
+---------------+---------+
| Variable_name | Value |
+---------------+---------+
| Com_commit | 8960761 |
+---------------+---------+
1 row in set (0.00 sec)

MariaDB [(none)]> show global status like ‘com_rollback‘;
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| Com_rollback | 117 |
+---------------+-------+
1 row in set (0.00 sec)

MariaDB [(none)]> show global status like ‘uptime‘;
+---------------+--------+
| Variable_name | Value |
+---------------+--------+
| Uptime | 485432 |
+---------------+--------+
1 row in set (0.00 sec)

Com_commit + Com_rollback / Uptime
TPS:18

以上是关于TPS/QPS的主要内容,如果未能解决你的问题,请参考以下文章

MySQL计算 TPS,QPS 的方式

MySQL计算 TPS,QPS 的方式

吞吐量(TPS)QPS并发数响应时间(RT)概念

TPS/QPS/RT的关系及计算

系统吞吐量TPS(QPS)用户并发量性能测试概念和公式(转)

系统吞吐量TPS(QPS)用户并发量性能测试概念和公式(分享二十二)