In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to use benchmarksql in PostgreSQL". In daily operation, I believe many people have doubts about how to use benchmarksql in PostgreSQL. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "how to use benchmarksql in PostgreSQL". Next, please follow the editor to study!
Benchmarksql is a testing tool developed using Java.
It is relatively easy to install and use, download and extract to the installation directory
Cd / home/pg12/software/benchmarksql-4.1.1/run
Configuration parameters, modify configuration file props.pg
# [pg12@localhost run] $cat props.pg / / Database connection information driver=org.postgresql.Driverconn=jdbc:postgresql://192.168.26.28:5440/benchmarkdbuser=pg12password=pg12// number of warehouses=100// concurrency terminals=20//To run specified transactions per terminal- runMins must equal zerorunTxnsPerTerminal=0//To run for specified minutes- runTxnsPerTerminal Must equal zero//, this is runtime runMins=10//Number of total transactions per minutelimitTxnsPerMin=0//The following five values must add up to 100//The default percentages of 45. 43, 4, 4 & 4 match the TPC-C specnewOrderWeight=45paymentWeight=43orderStatusWeight=4deliveryWeight=4stockLevelWeight=4
Create a data table & index (100 warehouse data)
#. / runSQL.sh props.pg sqlTableCreates./runLoader.sh props.pg numwarehouses 32./runSQL.sh props.pg sqlIndexCreates
Perform a test
. / runBenchmark.sh props.pg#1...2019-08-27 16 Term-00 30 Measured tpmC 33025 INFO-Term-00, Measured tpmC (NewOrders) = 7527.02 2019-08-27 16 30 Term-00 33025 INFO-Term-00, Measured tpmTOTAL = 16752.672019-08-27 16 30 INFO-Term-00, Session Start = 2019-08-27 1620 INFO-Term-00 Session End = 2019-08-27 1630 Term-00 33025 INFO-Term-00, Transaction Count = 167552mm 2.. 2019-08-27 1730 INFO-Term-00, Measured tpmC (NewOrders) = 5879.052019-08-27 1730 Transaction Count 27264 INFO-Term-00, Measured tpmTOTAL = 13086.97 2019-08-27 1730 INFO-Term-00 Session Start = 2019-08-27 17 Term-00 20 INFO-Term-00, Transaction Count = 132408 so far. The study on "how to use benchmarksql in PostgreSQL" is over. I hope I can solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.