Method and device for testing pressure

A stress testing and stress technology, applied in the direction of software testing/debugging, etc., can solve problems such as difficult to exhaust the throughput of network cards, difficult to meet high test pressure requirements, difficult to reach the limit of physical network cards, etc., to meet high test pressure. effect of demand
CN103544098AActive Publication Date: 2014-01-29BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Publication Date
2014-01-29

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

The invention provides a method and device for testing pressure. The method comprises the steps that initialization is firstly conducted, wherein a reading connection pool and a writing connection pool of the epoll are initialized, application for a data area cache is conducted according to preset user customized parameters, and a data package is loaded to the cache from a pressure file; with regard to connection established with a module to be tested, data are read and written in a level triggered mode and trigger events of data reading and data writing are arranged and the connection is added to the reading connection pool and the writing connection pool; the pressure condition is counted at regular time through a counting thread and transmission of pressure data is stimulated at regular time through effective global variables which are continuously transmitted through set identification; after the trigger event of data writing is monitored through a pressure transmission thread, if the global variables are effective, the pressure data in the cache are transmitted to the module to be tested in a polling mode until the pressure number of the transmission period is achieved, and then the global variables are set ineffective. According to the method and device for testing the pressure, the high pressure testing requirement can be satisfied and the phenomenon that the tested pressure reaches the limit of a physical network card becomes possible.
Need to check novelty before this filing date? Find Prior Art

Description

【Technical field】

[0001] The invention relates to the technical field of computer applications, in particular to a method and device for stress testing. 【Background technique】

[0002] Stress testing is an important part of software testing and is used to test the processing capabilities of programs. Usually, when performing a stress test, a stress tool is required to send data packets to the program under test for processing, and check the performance of the program under test under the current pressure.

[0003] Existing stress testing tools, whether applied to windows or Linux, use the method of sending a set number of data packets at a set time interval for stress testing, but this method is often difficult to meet the high test pressure requirements, and it is also difficult It is difficult to use up the throughput of the network card, that is, it is difficult to reach the limit of the physical network card. 【Content of invention】

[0004] The invention provides a p...

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