Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for test and simulation of software performance

A technology of software performance testing and simulation methods, applied in the direction of software testing/debugging, etc., can solve problems such as lack of accuracy, lack of consideration, fluctuations, etc., and achieve the effects of reducing mutual influence, reasonable pressure load, and improving robustness

Active Publication Date: 2014-01-29
烟台中科网络技术研究所
View PDF6 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The HTTPLOAD rate model can only test the HTTP protocol, relying on the non-blocking mode of the Socket component, making it unable to implement other protocol extensions
[0010] In terms of accuracy, the HTTPLOAD rate model does not take into account the large consumption of resources in the state of a large number of user services. The single-process and single-thread technology it uses cannot guarantee that user services can compete for sufficient resources and allocate CPU time slices in a timely manner. Accuracy insufficient
[0011] In terms of stability, the HTTPLOAD rate model uses triggers to call new user service requests at a specified time. Since the triggers use system time, affected by the operating system kernel scheduling and thread wake-up mechanism, the time accuracy cannot be guaranteed, reflecting stability. In terms of performance, when the number of speeds increases, the fluctuation is obvious, which has affected the actual operation effect

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 test and simulation of software performance
  • Method and device for test and simulation of software performance
  • Method and device for test and simulation of software performance

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] A simulation method for software performance testing, comprising the following steps:

[0047] Step 1: Store the configuration information configured by the user in the simulated structure file; the user confirms the address of the test system, the number of speeds, the running time, and the database information according to the requirements, and generates the configuration file. The program reads user configuration information and stores the computer-identified structure for each process to identify user needs, simulate user business behavior, control speed operation and control speed exit.

[0048]

[0049]

[0050] Step 2: Create a simulated shared memory, and store the structure file in the shared memory;

[0051] The operating system runs under the memory protection mechanism, each process has an independent logical memory space, each process cannot access other process data, and this speed test method is based on multi-process and multi-thread technology, th...

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 relates to a method and device for test and simulation of software performance. The method for the test and simulation of the software performance comprises the steps that configuration information which is configured by a user is stored in a structural body file for simulation; a shared memory for simulation is established and the structural body file is stored in the shared memory; the structural body file is read and analyzed to obtain a speed value, and a plurality of test processes for simulation are established; establishment of a preset number of sub-threads is simulated in each test process, each sub-thread is used for simulating execution of a service file requested to be executed by the user according to the configuration information to generate service return data for simulation, and destroying of the service file sub-thread which is executed is simulated; establishment of new sub-threads is simulated in each test process every a preset period of time; the simulated service return data are stored and counted. According to the method and device for the test and simulation of the software performance, the multi-process and multi-thread architecture is used, resources are distributed reasonably, the reasonable pressure load of each process is guaranteed, only a small-frequency speed model is simulated by each process, and robustness is improved.

Description

technical field [0001] The invention relates to a software performance test model, in particular to a software performance test simulation method and device. Background technique [0002] For the software product performance test simulation rate method, the applicable classic scenario is: for example, the ticket booking service that starts at 12306 at a certain time, and from a certain point in time, the number of users grows rapidly and continuously. It causes a sharp consumption of the CPU, memory, network or database resources of the server under test, and it is also a huge test for the software architecture under test. The most important thing for simulating user behavior in this test scenario is the accuracy and stability of the load rate model. Among them, how to use as few computers as possible to smoothly and accurately simulate the user's increasing operation behavior per second has become a difficult problem in the industry. [0003] The computer hardware configu...

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
IPC IPC(8): G06F11/36
Inventor 衣安平杨光宇孙一铭刘初阳
Owner 烟台中科网络技术研究所
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products