About MySQL TPs and QPS

Source: Internet
Author: User

tps-transactions per Second (number of things transferred per second), which is the number of transactions per second that the server processes, and a performance metric that is unique to the storage engine that supports transactions such as InnoDB.


Calculation method:

TPS = (com_commit + com_rollback)/uptime

Use Information_schema;select variable_value to @num_com from global_status where variable_name = ' com_commit '; select Variable_value into @num_roll from global_status where variable_name = ' com_rollback ', select Variable_value into @uptime F Rom global_status where variable_name = ' UPTIME '; Select (@[email protected]_roll)/@uptime;




Qps-queries per Second (Query throughput/sec) for both InnoDB and MyISAM engines

Calculation method:

Qps=questions/uptime

Use Information_schema;select variable_value to @num_queries from global_status where variable_name = ' QUESTIONS '; Select Variable_value into @uptime from global_status where variable_name = ' uptime '; select @num_queries/@uptime;


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

About MySQL TPs and QPS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.