Method and device for testing performance of database

A database and performance technology, applied in the Internet field, can solve problems such as inaccurate test results, inability to simulate actual data, inability to test secondary development of tools, etc., and achieve the effect of avoiding installation operations and manual deployment

Inactive Publication Date: 2014-04-16
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 51 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. The Structured Query Language (SQL, Structured Query Language) statement used for testing is not obtained from actual data, and it is impossible to simulate the actual scene to obtain test data similar to the actual data. The simulation is poor, resulting in inaccurate test results
[0005] 2. The test tool provided by the third party has a complex framework and many components, so the operation is complicated when installing the test tool, requiring a lot of manual deployment, and the portability is poor
[0006] 3. The test rules of the test tool provided by the third party are fixed, and the operator cannot carry out secondary development of the test tool for different services, so the test tool provided by the third party cannot be flexibly applied to the database test of various services
[0007] For example, when using the test tool Sysbench to test the performance of the database, the installation of Sysbench needs to rely on make and the lib library of MySQL, and it cannot implement multi-process testing on a single machine
Although you can specify the database for testing, you can only send SQL pressure files with fixed rules; and even if you can configure the engine type, concurrent number, submission mode, and read-write type, you cannot specify specific business-related SQL statements. It can only realize the online transaction processing system (OLTP, On-Line Transaction Processing) test, and cannot simulate the actual data in the actual scene
Moreover, when testing with third-party testing tools, each test is an independent behavior, and it is impossible to correlate the test results and guide future testing operations.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for testing performance of database
  • Method and device for testing performance of database
  • Method and device for testing performance of database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] The basic idea of ​​the present invention is: the pressure model generation module generates stress test data according to the pre-generated SQL statement; the pressure execution module uses more than one thread to send the generated stress test data to the database cluster; the monitoring module collects database performance information; the analysis module It is judged whether the collected database performance information is within a preset reasonable interval, and a first test analysis report is generated according to the judgment result.

[0062] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0063] The invention provides a database performance testing device, figure 1 It is a structural schematic diagram of a preferred embodiment of the database performance testing device of the present ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method for testing performance of a database. The method comprises the steps that a pressure model generating module generates pressure test data according to pre-generated SQL statements; more than one thread is adopted in a pressure execution module to send the generated pressure test data to a database cluster; a monitor module collects the performance information of the database; an analysis module judges whether the collected performance information of the database is located in a preset reasonable range or not, and a first test analysis report is generated according to a judgment result. The invention further provides a device for testing the performance of the database. According to the technical scheme, the performance of the database can be tested conveniently and flexibly.

Description

【Technical field】 [0001] The invention relates to testing technology in the Internet field, in particular to a database performance testing method and device. 【Background technique】 [0002] All Internet operators are faced with the problem of database type selection and database version selection. To solve these problems, it is necessary to rely on the performance test of the database and obtain a large amount of real test data. In addition, database and application development also require database performance testing to eliminate database bottlenecks. [0003] At present, the industry generally uses testing tools provided by third parties to directly test database performance, for example, testing tools such as Sysbench, Supersmach, Benchmark SQL, and Jmeter. In this database performance testing method, there are the following problems: [0004] 1. The Structured Query Language (SQL, Structured Query Language) statement used for testing is not obtained from actual data,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30G06F11/36
CPCG06F11/3409G06F11/3688
Inventor 李德禹
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products