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

Method and device for testing software performance

A technology for software performance testing and performance, applied in software testing/debugging, etc., can solve problems such as system resource limitations, inflexible test scenario design, and lack of consideration of communication between test clients

Active Publication Date: 2013-01-02
BEIJING FEINNO COMM TECH
View PDF2 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the existing testing methods can only test some low-stress scenarios. If testing Internet services, the performance problems of the testing process will make the testing impossible or the cost of time, funds, and personnel will be very high.
In addition, the design process does not take into account the need for test clients to communicate with each other. For example, performance test client A requires performance test client B to complete a certain function or change a certain attribute at a certain test moment, which is impossible. Because a performance test client is closed in design, the test scenario design is not flexible enough
[0007] To sum up, in the prior art, the software performance testing method cannot realize the direct communication of test clients, and is limited by system resources when a large number of test clients are tested at the same time.

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 software performance
  • Method and device for testing software performance
  • Method and device for testing software performance

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] figure 1 It is a flowchart of a software performance testing method in the present invention, such as figure 1 as shown,

[0025] Step 101, setting the execution cycle and scheduling algorithm of the timing scheduler; setting the minimum number and maximum number of threads in the thread pool, and establishing the minimum number of threads; performing initialization operations on the performance test client;

[0026] Step 102, in the current execution cycle, the timing scheduler selects the performance test client and corresponding business operations according to the set scheduling algorithm, and selects an idle thread in the thread pool;

[0027] Step 103, the performance test client performs corresponding business operations according to the idle thread selected by the timing scheduler;

[0028] Step 104, after the business operations are executed, put the thread back into the thread pool, and wait for the next execution cycle.

[0029] In order to make the object...

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 discloses a method and a device for testing software performance. The method comprises the steps of: setting an execution cycle and a scheduling algorithm of a timing scheduler; setting the minimum number and the maximum number of threads in a thread pool and establishing the threads with the minimum number; initializing a performance testing client; in a current execution cycle, selecting the performance testing client and corresponding business operation according to the set scheduling algorithm and selecting an idle thread in the thread pool by utilizing the timing scheduler; carrying out the corresponding business operation according to the idle thread selected by the timing scheduler by utilizing the performance testing client; and after the business operation is carried out, putting the thread back in the thread pool and waiting for a next execution cycle. By means of the technical scheme disclosed by the invention, the high-load software performance testing process can be completed with relatively few system resources, and the capability of testing the software performance is enhanced.

Description

technical field [0001] The invention relates to the field of computer software performance testing, in particular to a software performance testing method and device. Background technique [0002] Currently performing a performance test on a piece of software: the common practice is to write a performance test code (script). The performance test code is essentially an automatically executed client program, which can be referred to as a performance test client for short. Then set up a performance test process, and run multiple performance test clients concurrently in the process to access application services, thus achieving the purpose of simulating the working pressure of multiple clients for performance testing. The rise of Internet applications poses more and more challenges to software performance testing. The simultaneous online use of massive users is a prominent feature of Internet applications. Therefore, software performance testing based on Internet applications r...

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 BEIJING FEINNO COMM TECH
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