CN117176611A - Performance test method, system and medium of distributed communication library - Google Patents

Performance test method, system and medium of distributed communication library Download PDF

Info

Publication number
CN117176611A
CN117176611A CN202311411702.4A CN202311411702A CN117176611A CN 117176611 A CN117176611 A CN 117176611A CN 202311411702 A CN202311411702 A CN 202311411702A CN 117176611 A CN117176611 A CN 117176611A
Authority
CN
China
Prior art keywords
data
test
distributed communication
communication library
performance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311411702.4A
Other languages
Chinese (zh)
Other versions
CN117176611B (en
Inventor
张霖涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Basebit Shanghai Information Technology Co ltd
Wing Fang Jianshu Beijing Information Technology Co ltd
Original Assignee
Basebit Shanghai Information Technology Co ltd
Wing Fang Jianshu Beijing Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Basebit Shanghai Information Technology Co ltd, Wing Fang Jianshu Beijing Information Technology Co ltd filed Critical Basebit Shanghai Information Technology Co ltd
Priority to CN202311411702.4A priority Critical patent/CN117176611B/en
Publication of CN117176611A publication Critical patent/CN117176611A/en
Application granted granted Critical
Publication of CN117176611B publication Critical patent/CN117176611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application provides a performance test method, a system and a medium of a distributed communication library. The method comprises the following steps: inputting the communication scene characteristic data into a preset test case database for matching and identifying to obtain test case data, obtaining a test model frame corresponding to the communication scene characteristic data, inputting the test case data into the test model frame for processing to obtain test result data, monitoring server resources of the distributed communication library to generate monitoring log data, processing the monitoring log data to obtain comprehensive performance test indexes according to the test result data and the monitoring log data, matching a corresponding performance optimization scheme according to the comprehensive performance test indexes, and optimizing and adjusting the distributed communication library according to the performance optimization scheme. According to the application, the performance of the distributed communication library is tested according to the current actual operation scene, and the distributed communication library is adjusted to the best fit performance matched with the actual operation scene according to the test result, so that the reasonable utilization of the distributed communication library resources is realized.

Description

Performance test method, system and medium of distributed communication library
Technical Field
The application relates to the technical field of big data and performance test, in particular to a performance test method, system and medium of a distributed communication library.
Background
At present, the distributed communication library is widely applied to the fields of the internet and mobile communication, but the performance problem is not ignored, the performance test is a key step for ensuring that the distributed communication library can operate stably and efficiently under various conditions, however, the distributed communication library is not tested according to the actual operation scene, and the performance of the communication library is further adjusted and optimized according to the test result, so that the best adaptability matched with the actual operation scene is obtained, and the reasonable utilization of the communication library resources is realized.
In view of the above problems, an effective technical solution is currently needed.
Disclosure of Invention
The application aims to provide a performance test method, a system and a medium of a distributed communication library, wherein the method comprises the following steps: inputting the communication scene characteristic data into a preset test case database for matching and identifying to obtain test case data, obtaining a test model frame corresponding to the communication scene characteristic data, inputting the test case data into the test model frame for processing to obtain test result data, monitoring server resources of the distributed communication library to generate monitoring log data, processing the monitoring log data to obtain comprehensive performance test indexes according to the test result data and the monitoring log data, matching a corresponding performance optimization scheme according to the comprehensive performance test indexes, and optimizing and adjusting the distributed communication library according to the performance optimization scheme. According to the application, the performance of the distributed communication library is tested according to the current actual operation scene, and the distributed communication library is adjusted to the best fit performance matched with the actual operation scene according to the test result, so that the reasonable utilization of the distributed communication library resources is realized.
The application also provides a performance test method of the distributed communication library, which comprises the following steps:
acquiring actual operation scene information of a distributed communication library, and extracting communication scene characteristic data, maximum communication load data, operation platform hardware configuration parameter data and operation platform operating system parameter data according to the actual operation scene information;
inputting the communication scene characteristic data into a preset test case database for matching identification to obtain test case data;
acquiring a test model frame corresponding to the communication scene characteristic data, inputting the test case data into the test model frame for analysis and processing, and obtaining test result data;
monitoring server resources of the distributed communication library to generate monitoring log data;
analyzing and processing according to the test result data and the monitoring log data to obtain a comprehensive performance test index;
and according to the performance optimization scheme corresponding to the comprehensive performance test index matching, optimizing and adjusting the distributed communication library according to the performance optimization scheme.
Optionally, in the performance test method of a distributed communication library of the present application, the obtaining a test model frame corresponding to the communication scene feature data, inputting the test case data into the test model frame for analysis, and obtaining test result data includes:
The test model framework corresponding to the communication scene characteristic data is obtained, and the test model framework comprises the following steps: fault tolerance test model, scalability test model and security test model;
inputting the test case data into the safety test model for analysis and processing to obtain a safety test index;
inputting the test case data into the distributed communication library, obtaining response data of each node, and comparing the consistency of the response data of each node;
if the response data of all the nodes are consistent in comparison, inputting the test case data into the expandability test model for analysis and processing to obtain an expandability test index;
otherwise, the test case data are input into the fault tolerance test model for analysis and processing, and a fault tolerance test index is obtained.
Optionally, in the performance test method of a distributed communication library of the present application, the inputting the test case data into the scalability test model for analysis and processing, to obtain a scalability test index, includes:
obtaining the maximum operation load data of the distributed communication library;
analyzing and processing according to the maximum communication load data and the maximum operation load data to generate a test case update coefficient;
Updating the data volume of the test case data according to the test case update coefficient to obtain updated test case data;
inputting the updated test case data into the expandability test model for analysis and processing to obtain an expandability test index;
and planning and expanding the capacity of the distributed communication library according to the expandability test index.
Optionally, in the performance test method of a distributed communication library of the present application, the monitoring the server resource of the distributed communication library to generate monitoring log data includes:
monitoring server resources of the distributed communication library in the test process to generate monitoring log data;
the monitoring log data includes: response time data, throughput data, resource utilization data.
Optionally, in the performance test method of a distributed communication library of the present application, the analyzing and processing are performed according to the test result data and the monitoring log data to obtain a comprehensive performance test index, including:
analyzing and processing according to the fault tolerance test index, the expandability test index and the safety test index to obtain a basic performance test index;
And processing according to the basic performance test index, the response time data, the throughput data and the resource utilization rate data to obtain a comprehensive performance test index.
Optionally, in the performance test method of a distributed communication library of the present application, the matching the corresponding performance optimization scheme according to the comprehensive performance test index, and performing optimization adjustment on the distributed communication library according to the performance optimization scheme, includes:
comparing the comprehensive performance test index with a preset comprehensive performance test index threshold value to obtain a comprehensive performance test grade;
inputting the comprehensive performance test grade into a preset performance optimization scheme library for matching identification, and obtaining a performance optimization scheme;
and optimizing and adjusting the distributed communication library according to the performance optimization scheme.
Optionally, in the performance test method of a distributed communication library of the present application, the performance test method further includes:
inputting the test case data into the distributed communication library to obtain output data;
adjusting the hardware configuration parameter data of the operation platform and the operation system parameter data of the operation platform to generate a new communication library operation environment;
Reinstalling the distributed communication library in the communication library operation environment;
inputting the test case data into the reinstalled distributed communication library to generate updated output data;
comparing the output data with the updated output data to obtain a comparison result;
and carrying out compatibility analysis on the distributed communication library according to the comparison result.
In a second aspect, the present application provides a performance testing system for a distributed communications library, the system comprising: the system comprises a memory and a processor, wherein the memory comprises a program of a performance test method of a distributed communication library, and the program of the performance test method of the distributed communication library realizes the following steps when being executed by the processor:
acquiring actual operation scene information of a distributed communication library, and extracting communication scene characteristic data, maximum communication load data, operation platform hardware configuration parameter data and operation platform operating system parameter data according to the actual operation scene information;
inputting the communication scene characteristic data into a preset test case database for matching identification to obtain test case data;
acquiring a test model frame corresponding to the communication scene characteristic data, inputting the test case data into the test model frame for analysis and processing, and obtaining test result data;
Monitoring server resources of the distributed communication library to generate monitoring log data;
analyzing and processing according to the test result data and the monitoring log data to obtain a comprehensive performance test index;
and according to the performance optimization scheme corresponding to the comprehensive performance test index matching, optimizing and adjusting the distributed communication library according to the performance optimization scheme.
Optionally, in the performance test system of a distributed communication library of the present application, the obtaining a test model frame corresponding to the communication scene feature data, inputting the test case data into the test model frame for analysis, and obtaining test result data includes:
the test model framework corresponding to the communication scene characteristic data is obtained, and the test model framework comprises the following steps: fault tolerance test model, scalability test model and security test model;
inputting the test case data into the safety test model for analysis and processing to obtain a safety test index;
inputting the test case data into the distributed communication library, obtaining response data of each node, and comparing the consistency of the response data of each node;
if the response data of all the nodes are consistent in comparison, inputting the test case data into the expandability test model for analysis and processing to obtain an expandability test index;
Otherwise, the test case data are input into the fault tolerance test model for analysis and processing, and a fault tolerance test index is obtained.
In a third aspect, the present application also provides a computer readable storage medium, including a performance test method program of a distributed communication library, where the performance test method program of the distributed communication library, when executed by a processor, implements the steps of the performance test method of the distributed communication library as described in any one of the above.
According to the performance testing method, system and medium for the distributed communication library, the performance of the distributed communication library is tested according to the current actual operation scene, and the distributed communication library is adjusted to the best fit performance matched with the actual operation scene according to the test result, so that reasonable utilization of the distributed communication library resources is realized.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for testing performance of a distributed communication library according to an embodiment of the present application;
FIG. 2 is a flowchart of obtaining test result data of a performance test method of a distributed communication library according to an embodiment of the present application;
FIG. 3 is a flowchart of a method for obtaining an extensibility test index in a distributed communication library according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for generating monitoring log data for testing performance of a distributed communication library according to an embodiment of the present application;
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a flowchart of a performance testing method of a distributed communication library according to some embodiments of the application. The performance test method of the distributed communication library is used in terminal equipment, such as computers, mobile phone terminals and the like. The performance test method of the distributed communication library comprises the following steps:
s11, acquiring actual operation scene information of a distributed communication library, and extracting communication scene characteristic data, maximum communication load data, operation platform hardware configuration parameter data and operation platform operating system parameter data according to the actual operation scene information;
s12, inputting the communication scene characteristic data into a preset test case database for matching identification to obtain test case data;
s13, acquiring a test model frame corresponding to the communication scene characteristic data, and inputting the test case data into the test model frame for analysis and processing to obtain test result data;
S14, monitoring server resources of the distributed communication library to generate monitoring log data;
s15, analyzing and processing according to the test result data and the monitoring log data to obtain a comprehensive performance test index;
s16, according to the performance optimization scheme corresponding to the comprehensive performance test index matching, optimizing and adjusting the distributed communication library according to the performance optimization scheme.
It should be noted that, in order to perform performance test on the distributed communication library according to the current actual operation scenario, and adjust the distributed communication library to the best fit performance matched with the actual operation scenario according to the test result, to realize reasonable utilization of the communication library resources, firstly obtain the actual operation scenario information of the distributed communication library, extract the communication scenario feature data, the maximum communication load data, the operation platform hardware configuration parameter data and the operation platform operating system parameter data according to the actual operation scenario information, then input the communication scenario feature data into the preset test case database for matching and identifying, obtain the test case data, obtain the test model frame corresponding to the communication scenario feature data, input the test case data into the test model frame for processing, obtain the test result data, monitor the server resources of the distributed communication library, generate monitor log data, finally process according to the test result data and the monitor log data to obtain the comprehensive performance test index, and perform optimization adjustment on the distributed communication library according to the performance optimization scheme corresponding to the comprehensive performance test index matching.
Referring to fig. 2, fig. 2 is a flowchart of a performance test method of a distributed communication library according to some embodiments of the application to obtain test result data. According to an embodiment of the present application, the obtaining a test model frame corresponding to the communication scene feature data, inputting the test case data into the test model frame for analysis, and obtaining test result data includes:
s21, acquiring a test model frame corresponding to the communication scene characteristic data, wherein the test model frame comprises: fault tolerance test model, scalability test model and security test model;
s22, inputting the test case data into the safety test model for analysis and processing to obtain a safety test index;
s23, inputting the test case data into the distributed communication library, obtaining response data of each node, and carrying out consistency comparison on the response data of each node;
s24, if all the node response data are consistent in comparison, inputting the test case data into the expandability test model for analysis and processing to obtain an expandability test index;
s25, otherwise, inputting the test case data into the fault tolerance test model for analysis and processing to obtain a fault tolerance test index.
It should be noted that, in order to obtain a corresponding test model according to an actual communication scenario, first, a test model frame corresponding to the actual communication scenario is obtained, including: the fault tolerance test model, the expandability test model and the safety test model are used for inputting test case data into the safety test model for analysis processing to obtain a safety test index, wherein the safety test model is a model for testing the communication safety of a communication library, the model is obtained by obtaining test case data of a large number of historical samples and training the safety test index, the safety test index corresponding to output can be obtained by inputting relevant information for processing, the test case data is input into a distributed communication library, response data of each node are obtained, the node response data are subjected to consistency comparison, if the node response data are all consistent, the distributed communication library nodes are indicated to normally work without faults, the test case data are input into the expandability test model to obtain the expandability test index, the expandability test model is a model for testing the load capacity of the communication library under the condition that the load capacity of the communication library is increased, the test case data of a large number of historical samples are obtained by obtaining the corresponding output safety test index through inputting relevant information for processing, if the node response data are not consistent, the distributed communication library is obtained by performing fault tolerance test on the distributed communication test database after the distributed communication library has been obtained, the fault tolerance test module is obtained by performing fault tolerance test module, the fault tolerance test index of the corresponding output can be obtained through processing the input related information.
Referring to fig. 3, fig. 3 is a flowchart of a performance test method of a distributed communication library according to some embodiments of the present application for obtaining a scalability test index. According to an embodiment of the present application, the inputting the test case data into the extensibility test model for analysis and processing to obtain an extensibility test index includes:
s31, obtaining maximum operation load data of the distributed communication library;
s32, analyzing and processing according to the maximum communication load data and the maximum operation load data to generate a test case update coefficient;
s33, updating the data volume of the test case data according to the test case update coefficient to obtain updated test case data;
s34, inputting the updated test case data into the expandability test model for analysis and processing to obtain an expandability test index;
and S35, planning and expanding the capacity of the distributed communication library according to the expandability test index.
In order to perform capacity planning and expansion on the distributed communication library according to the expandability test result of the distributed communication library, firstly, obtaining the maximum operation load data of the distributed communication library, taking the ratio of the maximum communication load data in the actual operation scene to the maximum operation load data of the distributed communication library as a test case update coefficient, then performing data volume update on the test case data according to the test case update coefficient to obtain updated test case data with the data volume suitable for the actual operation scene data volume, finally inputting the updated test case data into an expandability test model for analysis processing to obtain an expandability test index, and performing capacity planning and expansion on the distributed communication library according to the expandability test index.
According to an embodiment of the present application, the monitoring the server resource of the distributed communication library to generate monitoring log data includes:
monitoring server resources of the distributed communication library in the test process to generate monitoring log data;
the monitoring log data includes: response time data, throughput data, resource utilization data.
In the test process, monitoring server resources of the distributed communication library in the test process to generate monitoring log data, wherein the monitoring log data comprises: response time data, throughput data, resource utilization data, which in particular embodiments refer to CPU utilization, memory utilization, disk IO.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for generating monitoring log data for a performance test of a distributed communication library according to some embodiments of the present application. According to an embodiment of the present application, the analyzing and processing are performed according to the test result data and the monitoring log data to obtain a comprehensive performance test index, including:
s41, analyzing and processing according to the fault tolerance test index, the expandability test index and the safety test index to obtain a basic performance test index;
S42, processing according to the basic performance test index, the response time data, the throughput data and the resource utilization rate data to obtain a comprehensive performance test index.
It should be noted that, according to the fault tolerance test index, the expandability test index, and the safety test index, the basic performance test index is obtained by analyzing and processing;
the program processing formula of the basic performance test index is as follows:
wherein,for basic performance test index, +.>For the safety test index, if the response data of each node all meet the consistency comparison requirement, i=1, < ->For the scalability test index, if the response data of each node does not all meet the consistency comparison requirement, i=0, < ->For fault tolerance test index, < >>、/>、/>Is a preset characteristic coefficient;
processing according to the basic performance test index, the response time data, the throughput data and the resource utilization rate data to obtain a comprehensive performance test index;
the program processing formula of the comprehensive performance test index is as follows:
wherein,for the comprehensive performance test index, < >>For throughput data +.>For resource utilization data, ++>For response time data->、/>、/>、/>Is a preset characteristic coefficient.
According to the embodiment of the invention, the performance optimization scheme corresponding to the comprehensive performance test index matching is used for optimizing and adjusting the distributed communication library according to the performance optimization scheme, and the method comprises the following steps:
comparing the comprehensive performance test index with a preset comprehensive performance test index threshold value to obtain a comprehensive performance test grade;
inputting the comprehensive performance test grade into a preset performance optimization scheme library for matching identification, and obtaining a performance optimization scheme;
and optimizing and adjusting the distributed communication library according to the performance optimization scheme.
It should be noted that, the comprehensive performance test index is subjected to threshold comparison with a preset comprehensive performance test index threshold, the grade corresponding to the range is obtained according to the threshold comparison result falling into the preset threshold range, namely the comprehensive performance test grade, the comprehensive performance test grade is input into a preset performance optimization scheme library for matching and identification, a performance optimization scheme is obtained, and the distributed communication library is optimized and adjusted according to the performance optimization scheme.
According to an embodiment of the present invention, further comprising:
inputting the test case data into the distributed communication library to obtain output data;
Adjusting the hardware configuration parameter data of the operation platform and the operation system parameter data of the operation platform to generate a new communication library operation environment;
reinstalling the distributed communication library in the communication library operation environment;
inputting the test case data into the reinstalled distributed communication library to generate updated output data;
comparing the output data with the updated output data to obtain a comparison result;
and carrying out compatibility analysis on the distributed communication library according to the comparison result.
In order to determine compatibility of the distributed communication library with operation platforms of different hardware configurations and software operation systems, test case data is input into the distributed communication library to obtain output data, hardware configuration parameter data of the operation platform and operation platform operation system parameter data are adjusted to generate a new communication library operation environment, the distributed communication library is reinstalled in the communication library operation environment, test case data is input into the reinstalled distributed communication library to generate updated output data, the output data is compared with the updated output data to obtain a comparison result, and compatibility analysis is performed on the distributed communication library according to the comparison result.
The invention also discloses a performance test system of the distributed communication library, which comprises a memory and a processor, wherein the memory comprises a performance test method program of the distributed communication library, and the performance test method program of the distributed communication library realizes the following steps when being executed by the processor:
acquiring actual operation scene information of a distributed communication library, and extracting communication scene characteristic data, maximum communication load data, operation platform hardware configuration parameter data and operation platform operating system parameter data according to the actual operation scene information;
inputting the communication scene characteristic data into a preset test case database for matching identification to obtain test case data;
acquiring a test model frame corresponding to the communication scene characteristic data, inputting the test case data into the test model frame for analysis and processing, and obtaining test result data;
monitoring server resources of the distributed communication library to generate monitoring log data;
analyzing and processing according to the test result data and the monitoring log data to obtain a comprehensive performance test index;
and according to the performance optimization scheme corresponding to the comprehensive performance test index matching, optimizing and adjusting the distributed communication library according to the performance optimization scheme.
It should be noted that, in order to perform performance test on the distributed communication library according to the current actual operation scenario, and adjust the distributed communication library to the best fit performance matched with the actual operation scenario according to the test result, to realize reasonable utilization of the communication library resources, firstly obtain the actual operation scenario information of the distributed communication library, extract the communication scenario feature data, the maximum communication load data, the operation platform hardware configuration parameter data and the operation platform operating system parameter data according to the actual operation scenario information, then input the communication scenario feature data into the preset test case database for matching and identifying, obtain the test case data, obtain the test model frame corresponding to the communication scenario feature data, input the test case data into the test model frame for processing, obtain the test result data, monitor the server resources of the distributed communication library, generate monitor log data, finally process according to the test result data and the monitor log data to obtain the comprehensive performance test index, and perform optimization adjustment on the distributed communication library according to the performance optimization scheme corresponding to the comprehensive performance test index matching.
According to an embodiment of the present invention, the obtaining a test model frame corresponding to the communication scene feature data, inputting the test case data into the test model frame for analysis, and obtaining test result data includes:
the test model framework corresponding to the communication scene characteristic data is obtained, and the test model framework comprises the following steps: fault tolerance test model, scalability test model and security test model;
inputting the test case data into the safety test model for analysis and processing to obtain a safety test index;
inputting the test case data into the distributed communication library, obtaining response data of each node, and comparing the consistency of the response data of each node;
if the response data of all the nodes are consistent in comparison, inputting the test case data into the expandability test model for analysis and processing to obtain an expandability test index;
otherwise, the test case data are input into the fault tolerance test model for analysis and processing, and a fault tolerance test index is obtained.
It should be noted that, in order to obtain a corresponding test model according to an actual communication scenario, first, a test model frame corresponding to the actual communication scenario is obtained, including: the fault tolerance test model, the expandability test model and the safety test model are used for inputting test case data into the safety test model for analysis processing to obtain a safety test index, wherein the safety test model is a model for testing the communication safety of a communication library, the model is obtained by obtaining test case data of a large number of historical samples and training the safety test index, the safety test index corresponding to output can be obtained by inputting relevant information for processing, the test case data is input into a distributed communication library, response data of each node are obtained, the node response data are subjected to consistency comparison, if the node response data are all consistent, the distributed communication library nodes are indicated to normally work without faults, the test case data are input into the expandability test model to obtain the expandability test index, the expandability test model is a model for testing the load capacity of the communication library under the condition that the load capacity of the communication library is increased, the test case data of a large number of historical samples are obtained by obtaining the corresponding output safety test index through inputting relevant information for processing, if the node response data are not consistent, the distributed communication library is obtained by performing fault tolerance test on the distributed communication test database after the distributed communication library has been obtained, the fault tolerance test module is obtained by performing fault tolerance test module, the fault tolerance test index of the corresponding output can be obtained through processing the input related information.
According to an embodiment of the present invention, the inputting the test case data into the extensibility test model for analysis and processing to obtain an extensibility test index includes:
obtaining the maximum operation load data of the distributed communication library;
analyzing and processing according to the maximum communication load data and the maximum operation load data to generate a test case update coefficient;
updating the data volume of the test case data according to the test case update coefficient to obtain updated test case data;
inputting the updated test case data into the expandability test model for analysis and processing to obtain an expandability test index;
and planning and expanding the capacity of the distributed communication library according to the expandability test index.
In order to perform capacity planning and expansion on the distributed communication library according to the expandability test result of the distributed communication library, firstly, obtaining the maximum operation load data of the distributed communication library, taking the ratio of the maximum communication load data in the actual operation scene to the maximum operation load data of the distributed communication library as a test case update coefficient, then performing data volume update on the test case data according to the test case update coefficient to obtain updated test case data with the data volume suitable for the actual operation scene data volume, finally inputting the updated test case data into an expandability test model for analysis processing to obtain an expandability test index, and performing capacity planning and expansion on the distributed communication library according to the expandability test index.
According to an embodiment of the present invention, the monitoring the server resource of the distributed communication library to generate monitoring log data includes:
monitoring server resources of the distributed communication library in the test process to generate monitoring log data;
the monitoring log data includes: response time data, throughput data, resource utilization data.
In the test process, monitoring server resources of the distributed communication library in the test process to generate monitoring log data, wherein the monitoring log data comprises: response time data, throughput data, resource utilization data, which in particular embodiments refer to CPU utilization, memory utilization, disk IO.
According to an embodiment of the present invention, the analyzing and processing are performed according to the test result data and the monitoring log data to obtain a comprehensive performance test index, including:
analyzing and processing according to the fault tolerance test index, the expandability test index and the safety test index to obtain a basic performance test index;
and processing according to the basic performance test index, the response time data, the throughput data and the resource utilization rate data to obtain a comprehensive performance test index.
It should be noted that, according to the fault tolerance test index, the expandability test index, and the safety test index, the basic performance test index is obtained by analyzing and processing;
the program processing formula of the basic performance test index is as follows:
wherein,for basic performance test index, +.>For the safety test index, if the response data of each node all meet the consistency comparison requirement, i=1, < ->For the scalability test index, if the response data of each node does not all meet the consistency comparison requirement, i=0, < ->For fault tolerance test index, < >>、/>、/>Is a preset characteristic coefficient;
processing according to the basic performance test index, the response time data, the throughput data and the resource utilization rate data to obtain a comprehensive performance test index;
the program processing formula of the comprehensive performance test index is as follows:
wherein,for the comprehensive performance test index, < >>For throughput data +.>For resource utilization data, ++>For response time data->、/>、/>、/>Is a preset characteristic coefficient.
According to the embodiment of the invention, the performance optimization scheme corresponding to the comprehensive performance test index matching is used for optimizing and adjusting the distributed communication library according to the performance optimization scheme, and the method comprises the following steps:
Comparing the comprehensive performance test index with a preset comprehensive performance test index threshold value to obtain a comprehensive performance test grade;
inputting the comprehensive performance test grade into a preset performance optimization scheme library for matching identification, and obtaining a performance optimization scheme;
and optimizing and adjusting the distributed communication library according to the performance optimization scheme.
It should be noted that, the comprehensive performance test index is subjected to threshold comparison with a preset comprehensive performance test index threshold, the grade corresponding to the range is obtained according to the threshold comparison result falling into the preset threshold range, namely the comprehensive performance test grade, the comprehensive performance test grade is input into a preset performance optimization scheme library for matching and identification, a performance optimization scheme is obtained, and the distributed communication library is optimized and adjusted according to the performance optimization scheme.
According to an embodiment of the present invention, further comprising:
inputting the test case data into the distributed communication library to obtain output data;
adjusting the hardware configuration parameter data of the operation platform and the operation system parameter data of the operation platform to generate a new communication library operation environment;
reinstalling the distributed communication library in the communication library operation environment;
Inputting the test case data into the reinstalled distributed communication library to generate updated output data;
comparing the output data with the updated output data to obtain a comparison result;
and carrying out compatibility analysis on the distributed communication library according to the comparison result.
In order to determine compatibility of the distributed communication library with operation platforms of different hardware configurations and software operation systems, test case data is input into the distributed communication library to obtain output data, hardware configuration parameter data of the operation platform and operation platform operation system parameter data are adjusted to generate a new communication library operation environment, the distributed communication library is reinstalled in the communication library operation environment, test case data is input into the reinstalled distributed communication library to generate updated output data, the output data is compared with the updated output data to obtain a comparison result, and compatibility analysis is performed on the distributed communication library according to the comparison result.
A third aspect of the present invention provides a readable storage medium having embodied therein a performance test method program of a distributed communication library, which when executed by a processor, implements the steps of the performance test method of a distributed communication library as described in any one of the above.
According to the performance testing method, system and medium of the distributed communication library, performance testing is conducted on the distributed communication library according to the current actual operation scene, and the distributed communication library is adjusted to be the best fit performance matched with the actual operation scene according to the testing result, so that reasonable utilization of distributed communication library resources is achieved.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present invention may be stored in a readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.

Claims (10)

1. The performance test method of the distributed communication library is characterized by comprising the following steps of:
acquiring actual operation scene information of a distributed communication library, and extracting communication scene characteristic data, maximum communication load data, operation platform hardware configuration parameter data and operation platform operating system parameter data according to the actual operation scene information;
inputting the communication scene characteristic data into a preset test case database for matching identification to obtain test case data;
acquiring a test model frame corresponding to the communication scene characteristic data, inputting the test case data into the test model frame for analysis and processing, and obtaining test result data;
monitoring server resources of the distributed communication library to generate monitoring log data;
analyzing and processing according to the test result data and the monitoring log data to obtain a comprehensive performance test index;
and according to the performance optimization scheme corresponding to the comprehensive performance test index matching, optimizing and adjusting the distributed communication library according to the performance optimization scheme.
2. The method for testing the performance of the distributed communication library according to claim 1, wherein the obtaining the test model frame corresponding to the communication scene feature data, inputting the test case data into the test model frame for analysis, and obtaining test result data, includes:
The test model framework corresponding to the communication scene characteristic data is obtained, and the test model framework comprises the following steps: fault tolerance test model, scalability test model and security test model;
inputting the test case data into the safety test model for analysis and processing to obtain a safety test index;
inputting the test case data into the distributed communication library, obtaining response data of each node, and comparing the consistency of the response data of each node;
if the response data of all the nodes are consistent in comparison, inputting the test case data into the expandability test model for analysis and processing to obtain an expandability test index;
otherwise, the test case data are input into the fault tolerance test model for analysis and processing, and a fault tolerance test index is obtained.
3. The method for testing the performance of the distributed communication library according to claim 2, wherein the step of inputting the test case data into the scalability test model to perform analysis processing, and obtaining the scalability test index comprises the steps of:
obtaining the maximum operation load data of the distributed communication library;
analyzing and processing according to the maximum communication load data and the maximum operation load data to generate a test case update coefficient;
Updating the data volume of the test case data according to the test case update coefficient to obtain updated test case data;
inputting the updated test case data into the expandability test model for analysis and processing to obtain an expandability test index;
and planning and expanding the capacity of the distributed communication library according to the expandability test index.
4. The method for testing the performance of the distributed communication library according to claim 3, wherein the monitoring the server resource of the distributed communication library to generate the monitoring log data comprises:
monitoring server resources of the distributed communication library in the test process to generate monitoring log data;
the monitoring log data includes: response time data, throughput data, resource utilization data.
5. The method for testing the performance of the distributed communication library according to claim 4, wherein the analyzing according to the test result data and the monitoring log data to obtain the comprehensive performance test index comprises:
analyzing and processing according to the fault tolerance test index, the expandability test index and the safety test index to obtain a basic performance test index;
And processing according to the basic performance test index, the response time data, the throughput data and the resource utilization rate data to obtain a comprehensive performance test index.
6. The method for testing the performance of the distributed communication library according to claim 5, wherein the matching the corresponding performance optimization scheme according to the comprehensive performance test index, and performing optimization adjustment on the distributed communication library according to the performance optimization scheme, comprises:
comparing the comprehensive performance test index with a preset comprehensive performance test index threshold value to obtain a comprehensive performance test grade;
inputting the comprehensive performance test grade into a preset performance optimization scheme library for matching identification, and obtaining a performance optimization scheme;
and optimizing and adjusting the distributed communication library according to the performance optimization scheme.
7. The method for testing the performance of a distributed communication library according to claim 6, further comprising:
inputting the test case data into the distributed communication library to obtain output data;
adjusting the hardware configuration parameter data of the operation platform and the operation system parameter data of the operation platform to generate a new communication library operation environment;
Reinstalling the distributed communication library in the communication library operation environment;
inputting the test case data into the reinstalled distributed communication library to generate updated output data;
comparing the output data with the updated output data to obtain a comparison result;
and carrying out compatibility analysis on the distributed communication library according to the comparison result.
8. The performance test system of the distributed communication library is characterized by comprising a memory and a processor, wherein the memory comprises a performance test method program of the distributed communication library, and the performance test method program of the distributed communication library realizes the following steps when being executed by the processor:
acquiring actual operation scene information of a distributed communication library, and extracting communication scene characteristic data, maximum communication load data, operation platform hardware configuration parameter data and operation platform operating system parameter data according to the actual operation scene information;
inputting the communication scene characteristic data into a preset test case database for matching identification to obtain test case data;
acquiring a test model frame corresponding to the communication scene characteristic data, inputting the test case data into the test model frame for analysis and processing, and obtaining test result data;
Monitoring server resources of the distributed communication library to generate monitoring log data;
analyzing and processing according to the test result data and the monitoring log data to obtain a comprehensive performance test index;
and according to the performance optimization scheme corresponding to the comprehensive performance test index matching, optimizing and adjusting the distributed communication library according to the performance optimization scheme.
9. The system for testing the performance of the distributed communication library according to claim 8, wherein the obtaining the test model frame corresponding to the communication scene feature data, inputting the test case data into the test model frame for analysis, and obtaining test result data, includes:
the test model framework corresponding to the communication scene characteristic data is obtained, and the test model framework comprises the following steps: fault tolerance test model, scalability test model and security test model;
inputting the test case data into the safety test model for analysis and processing to obtain a safety test index;
inputting the test case data into the distributed communication library, obtaining response data of each node, and comparing the consistency of the response data of each node;
if the response data of all the nodes are consistent in comparison, inputting the test case data into the expandability test model for analysis and processing to obtain an expandability test index;
Otherwise, the test case data are input into the fault tolerance test model for analysis and processing, and a fault tolerance test index is obtained.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises therein a performance test method program of a distributed communication library, which, when executed by a processor, implements the steps of the performance test method of a distributed communication library according to any one of claims 1 to 7.
CN202311411702.4A 2023-10-30 2023-10-30 Performance test method, system and medium of distributed communication library Active CN117176611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311411702.4A CN117176611B (en) 2023-10-30 2023-10-30 Performance test method, system and medium of distributed communication library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311411702.4A CN117176611B (en) 2023-10-30 2023-10-30 Performance test method, system and medium of distributed communication library

Publications (2)

Publication Number Publication Date
CN117176611A true CN117176611A (en) 2023-12-05
CN117176611B CN117176611B (en) 2024-01-30

Family

ID=88941585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311411702.4A Active CN117176611B (en) 2023-10-30 2023-10-30 Performance test method, system and medium of distributed communication library

Country Status (1)

Country Link
CN (1) CN117176611B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832226A (en) * 2017-11-23 2018-03-23 中国平安人寿保险股份有限公司 Report-generating method, device, equipment and computer media based on performance test
US20190005168A1 (en) * 2017-06-30 2019-01-03 Siemens Aktiengesellschaft Performance testing method and apparatus for industrial system deployed on cloud
CN114428748A (en) * 2022-03-30 2022-05-03 北京数腾软件科技有限公司 Simulation test method and system for real service scene
CN114428998A (en) * 2022-01-27 2022-05-03 中汽院智能网联科技有限公司 Integrated simulation test and evaluation method and system for automatic driving system
CN114896164A (en) * 2022-05-30 2022-08-12 平安普惠企业管理有限公司 Interface optimization method and device, electronic equipment and storage medium
CN115328758A (en) * 2022-06-30 2022-11-11 浙江中控技术股份有限公司 Performance test method and system for large data volume of industrial software
CN116633836A (en) * 2023-05-09 2023-08-22 武汉迈威通信股份有限公司 Method and system for testing switch by digital twin technology

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190005168A1 (en) * 2017-06-30 2019-01-03 Siemens Aktiengesellschaft Performance testing method and apparatus for industrial system deployed on cloud
CN107832226A (en) * 2017-11-23 2018-03-23 中国平安人寿保险股份有限公司 Report-generating method, device, equipment and computer media based on performance test
CN114428998A (en) * 2022-01-27 2022-05-03 中汽院智能网联科技有限公司 Integrated simulation test and evaluation method and system for automatic driving system
CN114428748A (en) * 2022-03-30 2022-05-03 北京数腾软件科技有限公司 Simulation test method and system for real service scene
CN114896164A (en) * 2022-05-30 2022-08-12 平安普惠企业管理有限公司 Interface optimization method and device, electronic equipment and storage medium
CN115328758A (en) * 2022-06-30 2022-11-11 浙江中控技术股份有限公司 Performance test method and system for large data volume of industrial software
CN116633836A (en) * 2023-05-09 2023-08-22 武汉迈威通信股份有限公司 Method and system for testing switch by digital twin technology

Also Published As

Publication number Publication date
CN117176611B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN111177095B (en) Log analysis method, device, computer equipment and storage medium
CN111581045B (en) Database anomaly monitoring method, device, computer device and storage medium
CN116305168B (en) Multi-dimensional information security risk assessment method, system and storage medium
CN116366374B (en) Security assessment method, system and medium for power grid network management based on big data
CN113778879B (en) Interface fuzzy test method and device
CN111724084A (en) Data asset value display method, device, equipment and storage medium
CN115174250B (en) Network asset security assessment method and device, electronic equipment and storage medium
CN110503507B (en) Insurance product data pushing method and system based on big data and computer equipment
CN117176611B (en) Performance test method, system and medium of distributed communication library
CN113886821A (en) Malicious process identification method and device based on twin network, electronic equipment and storage medium
CN115809796B (en) Project intelligent dispatching method and system based on user portrait
CN116707859A (en) Feature rule extraction method and device, and network intrusion detection method and device
CN113297583B (en) Vulnerability risk analysis method, device, equipment and storage medium
CN115935284A (en) Power grid abnormal voltage detection method, device, equipment and storage medium
CN113836300A (en) Log analysis method, system, device and storage medium
CN111027296A (en) Report generation method and system based on knowledge base
CN113190461B (en) System testing method, device and server
CN113163418B (en) Standardized test management system and test method for metering automation equipment
CN111107552A (en) Method and system for identifying pseudo base station
CN118114982A (en) Enterprise risk conduction prediction method, system and medium based on graph characteristics
CN111598159B (en) Training method, device, equipment and storage medium of machine learning model
CN113051128B (en) Power consumption detection method and device, electronic equipment and storage medium
CN117785625A (en) Method, device, equipment and storage medium for predicting server performance
CN116128281A (en) Power transformation equipment risk assessment method and device, electronic equipment and storage medium
CN117412320A (en) Health degree assessment method, device, system and medium of base station

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant