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

Multi-thread performance testing method, device and system based on Java

A multi-threading and high-performance technology, applied in the computer field, can solve problems such as testing and inability to perform performance, and achieve the effect of strong versatility and high portability

Pending Publication Date: 2022-05-31
SHANGHAI ZHONGTONGJI NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the problem that performance testing cannot be performed when some open source tools such as Jmeter cannot be directly used in the prior art, the embodiments of the present invention provide the following technical solutions:

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
  • Multi-thread performance testing method, device and system based on Java
  • Multi-thread performance testing method, device and system based on Java
  • Multi-thread performance testing method, device and system based on Java

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other implementations obtained by persons of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.

[0031] Aiming at the problems in the related technologies, the present invention provides a method for Java-based multi-thread performance testing, figure 1 A schematic flow diagram of a method for Java-based multi-thread performance testing provided by an embodiment of the present application, such as figure 1 As shown, the method includes the following steps:

[0032] Step S101, receiving an instruction to start a multi-thread performance test, the instructi...

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 belongs to the technical field of computers, and particularly relates to a multi-thread performance testing method, device and system based on Java, and the method comprises the steps that an instruction for starting a multi-thread performance test is received, and the instruction for starting the multi-thread performance test comprises the number of concurrent threads and the specified test execution duration; according to the concurrent thread count, multiple threads of a Runnable type in the Java code are circularly created, and whether the current time exceeds the specified test execution duration or not is judged before the threads are created; executing multi-thread performance testing to obtain a multi-thread performance testing result; and storing the multi-thread test result in a pre-created Java class, and returning a message that the execution of the multi-thread performance test is completed. According to the method, a universal, simple and flexible small pressure testing tool is written by using Java codes, so that the problem that a universal performance testing tool cannot be directly used is quickly solved. The method is high in universality and portability, and a user can quickly complete performance testing only by modifying a business scene to be tested.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a Java-based multi-thread performance testing method, device and system. Background technique [0002] In the existing technology, Jmeter tools are used for performance testing, such as Http, Dubbo, and TCP connections, etc., but when some performance tests are based on some complex SDK applications and non-common interface performance tests , if the performance test cannot be completed using Java Sampler, it is necessary to rely on the developed development framework and complete the performance test code within the framework. At this time, some open source tools such as Jmeter cannot be used directly. [0003] Based on this, how to make the performance test go smoothly when some open source tools such as Jmeter cannot be directly used is an urgent problem to be solved. Contents of the invention [0004] In order to solve the problem that performance testing ca...

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): G06F11/34
CPCG06F11/3419
Inventor 雷敏
Owner SHANGHAI ZHONGTONGJI NETWORK TECH CO LTD
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