Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use sysbench to do oltp Test

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how to use sysbench to do oltp testing, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Sysbench is an open source performance testing tool that can test the performance of a variety of databases, including MySQL,ORACLE,POSTGRESQL.

Sysbench starts a specified number of threads, each thread establishes a connection with MySQL, each thread constantly performs transaction operations, opens transactions, then makes some queries, updates, inserts, commits transactions, and then starts new transactions; all SQL accesses only one table sbtest, which is built by sysbench's prepare command. The number of records is also specified and created during prepare. At the end of the test, there will be a statistical result, such as transactions per second, average response time, and so on. Here is an example of a sysbench call to a stored procedure: [@ more@]

Sysbench-test=oltp-mysql-table-engine=innodb-mysql-host=192.168.17.10-mysql-port=3306-mysql-user=root-mysql-password=password-mysql-db=dbname oltp-test-mode=sp oltp-sp-name=p_testproc prepare

Sysbench-test=oltp-mysql-table-engine=innodb-mysql-host=192.168.17.10-mysql-port=3306-mysql-user=root-mysql-password=password-mysql-db=dbname oltp-test-mode=sp oltp-sp-name=p_testproc run

Registration store must have two parameters, exactly what the use of this parameter, I have not found the documentation description.

The above is all the contents of the article "how to do oltp testing with sysbench". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report