CN103793328A - Method for completing data base performance test by using automatic procedure - Google Patents

Method for completing data base performance test by using automatic procedure Download PDF

Info

Publication number
CN103793328A
CN103793328A CN201410061771.1A CN201410061771A CN103793328A CN 103793328 A CN103793328 A CN 103793328A CN 201410061771 A CN201410061771 A CN 201410061771A CN 103793328 A CN103793328 A CN 103793328A
Authority
CN
China
Prior art keywords
test
size
stream
module
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410061771.1A
Other languages
Chinese (zh)
Inventor
张远斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201410061771.1A priority Critical patent/CN103793328A/en
Publication of CN103793328A publication Critical patent/CN103793328A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method for completing a data base performance test by using an automatic program, and belongs to the technical field of data base performance test application of computers. According to the method, a new data base operation system is developed, and the TPC-H is adopted as a test benchmark to test and measure the ability, about inquiry and decision support, of the data base operation system. In order to improve test efficiency, simplify operation and shorten test time, the java programming language is used to develop the automatic program TPCHAuto, and a user can use the automatic tool to complete whole test required by a TPC-H model.

Description

A kind of method that uses automated procedures to complete database performance measurement
 
Technical field
The present invention relates to Computer Database performance test applied technical field, specifically a kind of method that uses automated procedures to complete database performance measurement.
Background technology
TPC Benchmark H (TPC-H) is the benchmark of a decision support, and it is revised and formed by a series of inquiries towards business application and parallel data.The data of the inquiry of selecting in benchmark and composition database commercially all have widely representative and are easy to realize.This benchmark has been illustrated three aspects of decision support system (DSS).Analyze a large amount of data; Carry out the inquiry of high complexity; Answer business problem crucial, that often need answer.By carry out a series of inquiries for standard database under controllable environment, TPC-H assesses the performance of various decision support system (DSS).Simulation generates random challenge, than most of OLTP affairs complexity many, comprise various operations and selectivity restriction, produce highdensity activity in the database server side of tested person system, in certain is observed specific entrance and has the database of certain scale, carry out, when realization with owing to synchronizeing the restriction producing with online product database.
So complicated test model, if the test of being undertaken progressively by manual mode need to be wasted a large amount of man power and materials, and the accuracy of test result cannot be guaranteed in these complicated manual operation.
Summary of the invention
For above-mentioned reasons, this is similar to this full automatic testing tool of TPCHAuto with regard to one of needs and realizes, TPCHAuto instrument is to use the compiling of java program language, this has also just guaranteed that TPCHAuto instrument has possessed the portability of java program language equally, security, the features such as concurrency and support visualized graph interface.
The object of this invention is to provide a kind of method that uses automated procedures to complete database performance measurement.
TPCHAuto instrument need have following functions module: (1) data importing and cleaning module (2) complete test transaction module (3) statistics and process test duration module (4) operation interface configuration module;
The data importing of telling and cleaning modular design, routine call DBGEN instrument generates test data, and the test data of the fixed size that instrument is generated, is inserted in database by insert statement, in the time having new data to import, this module also will complete the cleaning work of legacy data;
The described test transaction module that completes designs, and this module completes the test affairs of TPC-H test, Power@Size test and Throughtput@Size test; Power Size has tested one and has inquired about stream and a renewal stream, and Throughtput completes multiple queries stream and multiple renewal is flowed, the size of concrete several Size of depending on, i.e. the size of data volume;
Described statistics and processing test duration modular design, final test result QphH@Size and Price-per-QphH@Size are added up and calculated to this module by time and the result of the test such as Power@Size and Throught@Size of affairs test, and generate test report according to TPC-H standard.
Described operation interface configuration module design, this module has mainly designed the operation interface of TPCHAuto instrument, and user can carry out by this operation interface the operation in each stage of whole TPC-H test.
SQL92 standard is followed in the database definition of TPC-H and data manipulation, and some DBSM not exclusively support SQL92, this requires under the semantic constant prerequisite of assurance, and TPCHAuto has the function of transferring data type and modification SQL statement.Testing tool need to be set up 8 tables in tested database, loads the data of the quantity of user's formulation, in the time of repeated test, also will have the function of data in cleaning table.
TPCHAuto can set up inquiry stream according to user's requirement, and be inquiry stream numbering, control the minimum requirements that inquiry stream is not less than TPC-H standard, multiple queries stream and renewal stream colleague send request of access as measured data storehouse, these requests of the concurrent inquiry of DBMS simultaneously.Each inquiry in each stream and to upgrade execution time of operation measured and record, deposits hereof with XML form.In the time that test completes, TPCHAuto can select measurement index Power Size by automat, Throughput Size, QphH Size and Price-per-QphH Size.And generate test report according to TPC-H standard.
TPCHAuto can make user pass through gui interface configuration parameter, as SF or data volume, inquiry stream number, database server address, measured data library name etc., with dynamically testing progress before this of word and graphics mode.User is test and test automatically separately.The former tests with go-ahead mode guiding user; The latter user only need to set up test parameter, and TPCHAuto can complete whole tests automatically, middle without any need for manual intervention.
The invention has the beneficial effects as follows:
Object-oriented Programming Design, java language development that automation tools TPCHAuto uses, graphic user interface, has realized the robotization of test and Throughput test from data loading to Power, the whole process of generation test report; Thereby reach and shortened the test duration, reduce difficulty of test, improve the objects such as test result accuracy.
Accompanying drawing explanation
Accompanying drawing 1 is pressed face type object designs, the graph of a relation between class and class for TPCHAuto structure.
Embodiment
With reference to the accompanying drawings, content of the present invention is described to its implementation and the course of work with instantiation.
In TPCHAuto structure, be divided into 6 parts, by face type object designs, between class and class, be related to the processing of concrete kind structure:
MainFrame class: bear the mutual of user and TPCHDriver, it comprises label, knob, text area etc. and response events.User can be at this parameters as the size of the link information of the type of DBMS, database, data volume (SF).In interface, can dynamically show testing progress information and test result information.
DataCreater class: the data volume rank SF specifying according to user, check whether hard drive space meets the demand of loading data, then call DBGEN and produce data, load data.
DbControl class: realize the operation relevant to database, as database connection, DML and DDL operation etc.TPCHDriver connects by JDBC.
DbCreater class: initialization data storehouse, comprises and build table and loading data.TPC-H standard recommendation often does a test and all will empty database, the data of reloading.
QueryStream class: call QGEN and produce inquiry stream, 22 SELECT statements that comprise random chronological order in inquiry stream.
RefreshStream class: call QGEN and produce renewal stream, INSERT statement and DELETE statement in stream are embedded in loop program.
PowerTest class: simulation single query stream and single renewal stream, realize Power test.
ThoughputTest class: simulate n concurrent user, i.e. n inquiry stream.
AutoTest class: call DataCreater, DbCreater, QueryStream.
DBGEN and QGEN process:
DBGEN and QGEN, as the annex of TPC-H standard, are C source programs, default operating in Unix operating system, access pad database.They can be transplanted on the machine that ANSI C compiler is provided easily.DBGEN and QGEN before use need to be take makefile.suite as masterplate, create a makefile file, and fill in the option in makefile file, as compiler CC, database D ATABASE, gallery MACHINE, loadtype WORKLOAD, file destination OBJ, executable file EXE and chained library LIBS etc.
DBGEN is for generation of the data in test library, and the data of generation are stored in text, and DATAReady class reads the data in text, is assembled into INSERT statement, as data inserting in table.DBGEN can be with parameter, the data number of times producing as-s parameter adjustment scale ,-C parameter control, the generation data which time be-S parameter select to carry out, the number that stream is upgraded in-U parameter adjustment.For example dbgen – s 100 – S 1-C 100 (producing the file of first 1GB), dbgen – s 100 – S 2 – C 100 (producing the file of second 1GB), dbgen – s 100 – U 5(produce 5 users' that SF is 100GB renewal stream)
QGEN is for generation of SELECT statement, and the SELECT statement of generation is kept at text.TranQuery class reads the SELECT statement in text, composition inquiry stream.QGEN is equivalent to a text filter, the variable with ": " in $ DSS_QUERY/<name>.sql module is replaced to the parameter of automatic generation.QGEN also has a lot of parameters, but in the ordinary course of things, does not need to use these parameters.
User only need to set up test parameter, and TPCHAuto can complete whole tests automatically, middle without any need for manual intervention, has shortened the test duration, reduces difficulty of test, has improved test result accuracy.

Claims (2)

1. a method that uses automated procedures to complete database performance measurement, it is characterized in that developing a robotization handling implement TPCHAuto who is applied to TPC-H standardized test, this TPCHAuto instrument need have following functions module: (1) data importing and cleaning module (2) complete test transaction module (3) statistics and process test duration module (4) operation interface configuration module;
The data importing of telling and cleaning modular design, routine call DBGEN instrument generates test data, and the test data of the fixed size that instrument is generated, is inserted in database by insert statement, in the time having new data to import, this module also will complete the cleaning work of legacy data;
The described test transaction module that completes designs, and this module completes the test affairs of TPC-H test, Power@Size test and Throughtput@Size test; Power Size has tested one and has inquired about stream and a renewal stream, and Throughtput completes multiple queries stream and multiple renewal is flowed, the size of concrete several Size of depending on, i.e. the size of data volume;
Described statistics and processing test duration modular design, final test result QphH@Size and Price-per-QphH@Size are added up and calculated to this module by time and the result of the test such as Power@Size and Throught@Size of affairs test, and generate test report according to TPC-H standard;
Described operation interface configuration module design, this module has mainly designed the operation interface of TPCHAuto instrument, and user can carry out by this operation interface the operation in each stage of whole TPC-H test.
2. a kind of method that uses automated procedures to complete database performance measurement according to claim 1, it is characterized in that Object-oriented Programming Design, java language development that TPCHAuto uses, graphic user interface, can set up inquiry stream according to user's requirement, and be inquiry stream numbering, control the minimum requirements that inquiry stream is not less than TPC-H standard, multiple queries stream and renewal stream colleague send request of access as measured data storehouse, these requests of the concurrent inquiry of DBMS simultaneously; Each inquiry in each stream and to upgrade execution time of operation measured and record, deposits hereof with XML form; In the time that test completes, TPCHAuto can automat choosing measure Power Size, Throughput Size, and QphH Size and Price-per-QphH Size, and generate test report according to TPC-H standard.
CN201410061771.1A 2014-02-24 2014-02-24 Method for completing data base performance test by using automatic procedure Pending CN103793328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410061771.1A CN103793328A (en) 2014-02-24 2014-02-24 Method for completing data base performance test by using automatic procedure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410061771.1A CN103793328A (en) 2014-02-24 2014-02-24 Method for completing data base performance test by using automatic procedure

Publications (1)

Publication Number Publication Date
CN103793328A true CN103793328A (en) 2014-05-14

Family

ID=50669027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410061771.1A Pending CN103793328A (en) 2014-02-24 2014-02-24 Method for completing data base performance test by using automatic procedure

Country Status (1)

Country Link
CN (1) CN103793328A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095509A (en) * 2016-06-20 2016-11-09 深圳前海微众银行股份有限公司 Differential variable dissemination method and device
CN107273293A (en) * 2017-06-16 2017-10-20 北京小度信息科技有限公司 Big data system performance testing method, device and electronic equipment
CN108319719A (en) * 2018-02-12 2018-07-24 腾讯科技(深圳)有限公司 Database data method of calibration, device, computer equipment and storage medium
CN110704301A (en) * 2019-08-27 2020-01-17 武汉迎风聚智科技有限公司 TPC-E automatic test method and TPC-E test system
US10956203B2 (en) 2019-03-29 2021-03-23 International Business Machines Corporation Quality assurance for a context driven hybrid transaction processing system
CN114077449A (en) * 2020-08-20 2022-02-22 网联清算有限公司 Database server testing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561036A (en) * 2004-02-24 2005-01-05 华中科技大学 Network station server performance test system based on TPC-W benchmark
US20110055633A1 (en) * 2009-08-31 2011-03-03 Martin Vecera Declarative Test Execution
US20110296383A1 (en) * 2010-05-27 2011-12-01 Michael Pasternak Mechanism for Performing Dynamic Software Testing Based on Test Result Information Retrieved in Runtime Using Test Result Entity
CN103019921A (en) * 2011-09-20 2013-04-03 中国人民解放军63928部队 Operating system fault tolerance testing system and method based on fault injection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561036A (en) * 2004-02-24 2005-01-05 华中科技大学 Network station server performance test system based on TPC-W benchmark
US20110055633A1 (en) * 2009-08-31 2011-03-03 Martin Vecera Declarative Test Execution
US20110296383A1 (en) * 2010-05-27 2011-12-01 Michael Pasternak Mechanism for Performing Dynamic Software Testing Based on Test Result Information Retrieved in Runtime Using Test Result Entity
CN103019921A (en) * 2011-09-20 2013-04-03 中国人民解放军63928部队 Operating system fault tolerance testing system and method based on fault injection

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王良等: "TPC-H自动测试工具TPCHDriver的研究", 《计算机工程》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095509A (en) * 2016-06-20 2016-11-09 深圳前海微众银行股份有限公司 Differential variable dissemination method and device
CN106095509B (en) * 2016-06-20 2019-05-03 深圳前海微众银行股份有限公司 Differential variable dissemination method and device
CN107273293A (en) * 2017-06-16 2017-10-20 北京小度信息科技有限公司 Big data system performance testing method, device and electronic equipment
CN107273293B (en) * 2017-06-16 2020-09-11 北京星选科技有限公司 Big data system performance test method and device and electronic equipment
CN108319719A (en) * 2018-02-12 2018-07-24 腾讯科技(深圳)有限公司 Database data method of calibration, device, computer equipment and storage medium
CN108319719B (en) * 2018-02-12 2022-04-01 腾讯科技(深圳)有限公司 Database data verification method and device, computer equipment and storage medium
US10956203B2 (en) 2019-03-29 2021-03-23 International Business Machines Corporation Quality assurance for a context driven hybrid transaction processing system
CN110704301A (en) * 2019-08-27 2020-01-17 武汉迎风聚智科技有限公司 TPC-E automatic test method and TPC-E test system
CN110704301B (en) * 2019-08-27 2020-12-29 武汉迎风聚智科技有限公司 TPC-E automatic test method and TPC-E test system
CN114077449A (en) * 2020-08-20 2022-02-22 网联清算有限公司 Database server testing method and device, electronic equipment and storage medium
CN114077449B (en) * 2020-08-20 2023-08-01 网联清算有限公司 Database server testing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11157489B2 (en) Data querying
US10162612B2 (en) Method and apparatus for inventory analysis
US6108659A (en) Method and apparatus for executing stored code objects in a database
US8601016B2 (en) Pre-generation of structured query language (SQL) from application programming interface (API) defined query systems
CN103793328A (en) Method for completing data base performance test by using automatic procedure
CN105389251A (en) Structured query language debugger
AU2015346525B2 (en) Processing queries containing a union-type operation
US20100114962A1 (en) Method and tools for identifying impact of database changes on an application
US7945591B2 (en) Identifying problems, usage patterns, and performance in a database interface using aspect-oriented programming
JP2014120174A (en) Systems and methods for in-memory database processing
Rabl et al. Just can't get enough: Synthesizing Big Data
Chu et al. Demonstration of the cosette automated sql prover
US20130019225A1 (en) Incremental Inferences for Developing Data Models
Hawes et al. Frappé: Querying the linux kernel dependency graph
Alonso et al. Towards a polyglot data access layer for a low-code application development platform
Jovanovic et al. Aggregate data modeling style
US10324908B2 (en) Exposing database artifacts
Carreira et al. Efficient development of data migration transformations
KR20090099977A (en) A reserved component container based software development method and apparatus
KR20090042242A (en) Plasma processing system component analysis software and methods and systems for creating the same
Delmas et al. A verification and validation process for model-driven engineering
Püroja LDBC Social Network Benchmark Interactive v2
Lindholm et al. DrAST: an inspection tool for attributed syntax trees (tool demo)
Stumptner et al. BIAccelerator–a template-based approach for rapid ETL development
US20120330878A1 (en) Conventions for inferring data models

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140514

WD01 Invention patent application deemed withdrawn after publication