CN108880947A - The test method and device of one kind of multiple service request concurrencies - Google Patents

The test method and device of one kind of multiple service request concurrencies Download PDF

Info

Publication number
CN108880947A
CN108880947A CN201810903030.1A CN201810903030A CN108880947A CN 108880947 A CN108880947 A CN 108880947A CN 201810903030 A CN201810903030 A CN 201810903030A CN 108880947 A CN108880947 A CN 108880947A
Authority
CN
China
Prior art keywords
matrix
test
thread
service request
source port
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
CN201810903030.1A
Other languages
Chinese (zh)
Other versions
CN108880947B (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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201810903030.1A priority Critical patent/CN108880947B/en
Publication of CN108880947A publication Critical patent/CN108880947A/en
Application granted granted Critical
Publication of CN108880947B publication Critical patent/CN108880947B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

This application discloses the test methods and device of one kind of multiple service request concurrencies.The program is based on preset first matrix and the second matrix using matrix multiplication algorithm, obtain include the 4th matrix of the first quantity third matrix;Each 4th matrix is obtained by a thread process, and thread is for handling a kind of service request;Obtain the corresponding source port of the affiliated thread of each 4th matrix;Based on the corresponding source port of each 4th matrix, a kind of corresponding service request of each 4th matrix and the corresponding user of source port are obtained;According to the corresponding service request of the 4th matrix of the first quantity and the corresponding user of source port, generate the test report of multiple business request Concurrency test, test report includes the corresponding number of users of service request of the service request and the first quantity of the first quantity of concurrency test, the test method solves the multiple business request for test that can not currently emulate multi-user, and the problem of can not test multiple business request Concurrency.

Description

The test method and device of one kind of multiple service request concurrencies
Technical field
This application involves field of computer technology more particularly to the test methods and dress of one kind of multiple service request concurrencies It sets.
Background technique
Data transmission in network transmission has high bandwidth, the characteristic of low latency.Bandwidth is generated in transmission in order to prevent, is lost The abnormal conditions such as packet, delay, need to test data transmission performance, i.e., bandwidth, packet loss, delay etc. in test data transmission Abnormal conditions probability of occurrence.
The performance test of data transmission can access (Remote using remote direct data in existing network transmission Direct Memory Access, RDMA) technology.Using in RDMA performance test, generally built using Mellanox driving Communications protocol (Message Passing Interface, MPI) business platform across language, every time test carry out single thread, The wide testing standard of single user, filled band.
However, test multiple services for multi-user, then need to increase the quantity of additional client and server, but not It is able to achieve the concurrency test of multi-user, i.e., current scheme needs to consume more multiserver, while lacking concurrency test, leads Cause bandwidth during multi-user's multi-service concurrent data transfer, delay, packet loss abnormal conditions that can not check, can not validity measure Carry out actual test result.Wherein, concurrency refers to that two or more events occur in same time interval.
Summary of the invention
The embodiment of the present application provides the test method and device of one kind of multiple service request concurrencies, for realizing to a variety of The data transmission test of service request concurrency.
In a first aspect, providing the test method of one kind of multiple service request concurrencies, this method may include:
Third matrix is obtained, wherein described using matrix multiplication algorithm based on preset first matrix and the second matrix Third matrix includes the 4th matrix of the first quantity, and each 4th matrix is obtained by a thread process, the line Journey is all larger than preset threshold for handling a kind of service request, the line number and columns of first matrix and second matrix;
Obtain the corresponding source port of the affiliated thread of each 4th matrix in the 4th matrix of the first quantity;
Based on the corresponding source port of each 4th matrix, obtains the corresponding business of each 4th matrix and ask Sum the corresponding user of the source port;
According to the corresponding service request of the 4th matrix of first quantity and the corresponding user of the source port, generate more The test report of kind of service request concurrency test, test report include the service request and the of the first quantity of concurrency test The corresponding number of users of the service request of one quantity, to realize the concurrency test of the service request of the first quantity.
In an optional realization, obtained based on preset first matrix and the second matrix using matrix multiplication algorithm Before third matrix, this method further includes:
Start the thread of the first quantity, the 4th matrix of first quantity is that the thread of first quantity will be preset What the first matrix and the second matrix were obtained using matrix multiplication algorithm.
In an optional realization, obtained based on preset first matrix and the second matrix using matrix multiplication algorithm Third matrix, the third matrix include the 4th matrix of the first quantity, including:
The institute of first matrix is obtained using matrix algorithm is divided equally to first matrix and second matrix respectively State the sub-matrix of the sub-matrix of the first quantity and the first quantity of second matrix;
Call the thread of first quantity respectively will be in row sub-matrix every in first matrix and second matrix Each column sub-matrix is multiplied, and obtains the 4th matrix of first quantity.
In an optional realization, it is corresponding to obtain the affiliated thread of each 4th matrix in the 4th matrix of the first quantity Port information, including:
The 4th matrix on each thread is polymerize using Matrix Calculating and algorithm, it is logical based on each cross-thread Letter obtains the corresponding source port of the affiliated thread of each 4th matrix in the 4th matrix of the first quantity.
In an optional realization, when the test report of multiple business request Concurrency test further includes that test starts Between;
Before the test report for generating the test of multiple business request Concurrency, this method can also include:
Obtain the generation time of third matrix;
Generation time and test time started based on the third matrix obtain multiple business using time difference operation The runing time of request Concurrency test.
Second aspect provides a kind of test device, the apparatus may include:Arithmetic element, acquiring unit and generation are single Member;
The arithmetic element using matrix multiplication algorithm, obtains for being based on preset first matrix and the second matrix Three matrixes, wherein third matrix includes the 4th matrix of the first quantity, and each 4th matrix indicates every kind of service request, and every kind Service request is by a thread process, and thread is for handling a kind of service request, the line number and column of the first matrix and the second matrix Number is all larger than preset threshold;
The acquiring unit, the corresponding source of the affiliated thread of each 4th matrix in the 4th matrix for obtaining the first quantity Port;Based on the corresponding source port of each 4th matrix, the corresponding service request of each 4th matrix is obtained User corresponding with the source port;
The generation unit, for according to the corresponding service request of the 4th matrix of first quantity and the source port Corresponding user generates the test report of multiple business request Concurrency test, and the test report includes what concurrency was tested The corresponding number of users of the service request of the service request of first quantity and the first quantity.
In an optional realization, which further includes start unit;
The start unit, for being based on preset first matrix and the second matrix in the arithmetic element, using matrix Multiplication algorithm before obtaining third matrix, starts the thread of the first quantity, the 4th matrix of first quantity is described first The thread of quantity obtains preset first matrix and the second matrix using matrix multiplication algorithm.
In an optional realization, the arithmetic element is specifically used for respectively to the first matrix and second matrix Using respectively matrix algorithm, the sub-matrix of the sub-matrix of the first quantity of the first matrix and the first quantity of the second matrix is obtained; It calls the thread of the first quantity that row sub-matrix every in the first matrix is multiplied with each column sub-matrix in the second matrix respectively, obtains 4th matrix of one quantity.
One it is optional realize, acquiring unit, specifically for using Matrix Calculating and algorithm to the on each thread Four matrixes are polymerize, and based on the communication of each cross-thread, obtain each 4th matrix in the 4th matrix of the first quantity The corresponding source port of affiliated thread.
In an optional realization, the test report of the multiple business request Concurrency test further includes that test starts Time;
The acquiring unit, also particularly useful for the generation time for obtaining third matrix;
Generation time and the test time started based on third matrix obtain a variety of industry using time difference operation The runing time of business request Concurrency test.
The third aspect provides a kind of electronic equipment, which includes processor, communication interface, memory and lead to Believe bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any side in above-mentioned first aspect Method step.
Fourth aspect provides a kind of computer readable storage medium, and meter is stored in the computer readable storage medium Calculation machine program, the computer program realize any method and step in above-mentioned first aspect when being executed by processor.
The technical solution is to obtain third square using matrix multiplication algorithm based on preset first matrix and the second matrix Battle array, third matrix includes the 4th matrix of the first quantity, wherein and each 4th matrix is obtained by a thread process, the The line number and columns of one matrix and the second matrix are all larger than preset threshold;Obtain each 4th square in the 4th matrix of the first quantity The corresponding source port of thread belonging to battle array;Based on the 4th matrix and source port, obtain the corresponding service request of each 4th matrix and The corresponding user of each source port, later according to the corresponding service request of the 4th matrix and the corresponding use of source port of the first quantity Family, generates the test report of multiple business request Concurrency test, and test report includes the industry of the first quantity of concurrency test Number of users corresponding with the service request of the first quantity is requested in business, which solves and can not currently emulate multi-user's Multiple business request for test, and can not to multiple business request Concurrency test the problem of.
Detailed description of the invention
Fig. 1 is the flow diagram of one kind of multiple service request concurrency test methods provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of test device provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is only some embodiments of the present application, is not whole embodiments.Based on this Apply for embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
The test method of multiple business request Concurrency provided in an embodiment of the present invention applies the rdma protocol in server Under data transmission procedure in.Accuracy in order to ensure the test results, server need to have stronger computing capability.
The server can provide the test method test platform and test environment.The test platform requirement of the test method Server installs Mellanox network card adapter, such asEx(VPI,IB,EN)(firmware:fw- ConnectX5)、(VPI,IB,EN)(firmware:Fw-ConnectX5) orLx (EN)(firmware:Fw-ConnectX4Lx) etc..The disk size of the test environmental requirement server of the test method is at least It can be that device identification (device IDs), the operating system of newest Mellanox is for specified operation for 1GB, device identification System, such as (SuSE) Linux OS and installation permission.
The test method of the application can apply data communication network (Data Communication Network, DCN it in the RDMA data transmission network in), also can be applied in the TCP data transmission network of other application agreement.
Below to apply the RDMA data in data communication network (Data Communication Network, DCN) It is illustrated in transmission network.The test method of the application is utilized by the five-tuple data structure created based on RDMA Matrix multiplication (Parallel Matrix Multiplication) algorithm realizes concurrent test, obtains test report, passes through The port match quantity of source port and destination port in the data structure of RDMA is obtained, solving can not currently emulate multi-user's The limitation of multiple business request for test, and the problem of can not test multiple business request Concurrency, test report is for remembering The performance indicator of the multiple business request of server process concurrency is recorded, performance indicator may include that processing multiple business is requested Network delay, bandwidth, number of users etc..
Preferred embodiment of the present application is illustrated below in conjunction with Figure of description, it should be understood that described herein Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this Shen Please in embodiment and embodiment in feature can be combined with each other.
Fig. 1 is the flow diagram of one kind of multiple service request concurrency test methods provided in an embodiment of the present invention.Such as Shown in Fig. 1, this method may include:
Step 110 obtains third matrix using matrix multiplication algorithm based on preset first matrix and the second matrix, the Three matrixes include the 4th matrix of the first quantity.
First quantity is preset quantity.
Before executing the step, receive the service request of MPI test, according in service request port and IP address etc. Information, creates the data structure of five-tuple, and five-tuple includes source port, destination port, source IP address, purpose IP address, agreement Five kinds of information.
The line number and columns of preset first matrix and the second matrix are all larger than preset threshold, and the first matrix column number and The line number of second matrix is identical or the line number of the first matrix is identical as the second matrix column number.For example, A matrix is the square of M*N Battle array, M and N are all larger than preset threshold 3000.B matrix is the matrix of N*K, and K and N are all larger than preset threshold 3000.M, N and K are Positive integer greater than zero.
It should be noted that the element in the first matrix and the second matrix is random number.
Later, start the thread of the first quantity, per thread is used for handling a kind of service request, the thread of the first quantity In preset first matrix and the second matrix are obtained the 4th matrix of the first quantity using matrix multiplication algorithm.Respectively to One matrix and the second matrix are using dividing equally matrix algorithm, the first matrix after obtaining respectively and the second matrix after dividing equally;Each 4th matrix is obtained by a thread process.The first matrix after respectively and the second matrix after dividing equally include the first number The sub-matrix of amount.This is divided equally matrix algorithm and is used for the equal equal part of the row and column of matrix, i.e. the row and column of matrix can be divided evenly, To obtain sub-matrix.
For example, the A matrix of M*N and the B matrix of N*K, using respectively matrix algorithm, A matrix after obtaining respectively and divide equally B matrix afterwards;A matrix after respectively includes the sub-matrix A of the first quantity of A matrix11-Apk, respectively after B matrix include B square The sub-matrix B of first quantity of battle array11-Bkq, can be expressed as:
The sub-matrix of first quantity of the sub-matrix and the second matrix of the first quantity based on the first matrix calls the first number Default multiplying is respectively adopted in the thread of amount, by row sub-matrix every in the first matrix and each column sub-matrix phase in the second matrix Multiply, obtains the 4th matrix of the first quantity, the i.e. multiplication of each sub-matrix of each sub-matrix and the second matrix of the first matrix Operation is carried out by a thread, the corresponding thread of each 4th matrix, since per thread handles a kind of service request, thus it is every A 4th matrix corresponds to a kind of service request.
Specially:Row sub-matrix every in first matrix is multiplied with each column sub-matrix in the second matrix, obtains the first quantity The 4th matrix.For example, by the first row (A in the A matrix after dividing equally11 A12 ... A1k) with divide equally after B matrix in the One column (B11 B21 ... Bk1) be multiplied, obtain first c matrix:And so on,Obtain the c matrix of the first quantity.
Optionally, when generating the c matrix of the first quantity, the generation time of the c matrix of available first quantity.
Step 120 obtains the corresponding source port of the affiliated thread of each 4th matrix in the 4th matrix of the first quantity.
The 4th matrix on each thread is polymerize using Matrix Calculating and algorithm, obtains third matrix, third matrix The 4th matrix including the first quantity.In the course of the polymerization process, the communication based on each cross-thread, available each 4th matrix The corresponding source port of place thread and destination port, obtain corresponding five-tuple.
Step 130, based on the corresponding source port of each 4th matrix, obtain a kind of corresponding industry of each 4th matrix User corresponding with source port is requested in business.
It, can be with based on the port match information of thread corresponding source port and corresponding destination port where each 4th matrix Obtain port match quantity, wherein when two threads correspond to identical source port, and identical source port corresponds to different destination ports When, the port match information of two threads is different;When two threads correspond to different source ports, and different source ports corresponds to phase With destination port when, the port match information of two threads is different.The corresponding user for issuing service request of the quantity of source port Quantity.By the variation of source port and destination port in port match information, different five-tuples is obtained, wherein different five The port information that tuple includes is different.
The source port corresponding according to each 4th matrix as a result, the corresponding one kind of available each 4th matrix Service request and the corresponding user of source port.
Step 140, according to the corresponding service request of the 4th matrix of the first quantity and the corresponding user of source port, generate more The test report of kind service request concurrency test.
Based on a kind of corresponding service request of each 4th matrix, corresponding first quantity of the 4th matrix of the first quantity is obtained Business request, user is corresponded to based on the corresponding source port of the affiliated thread of each 4th matrix, obtains the 4th matrix of the first quantity Corresponding number of users.Later, the test report of multiple business request Concurrency test is generated, test report includes that concurrency is surveyed The corresponding number of users of service request of the service request and the first quantity of first quantity of examination.
As it can be seen that this method passes through the 4th matrix for testing whether energy the first quantity of parallel generation, the first quantity industry is realized The concurrent testing of business request.
Optionally, the test time started is obtained.
Before the test report for generating the test of multiple business request Concurrency, the generation time of third matrix is obtained, i.e., The generation time of the c matrix of first quantity.
The 4th matrix, the corresponding user of source port, the generation time of third matrix and test based on the first quantity start Time generates the test report of multiple business request Concurrency test, and test report includes the first number of concurrency test at this time The runing time of the corresponding number of users of service request and the concurrency test of the service request quantity and the first quantity of amount, It is thus achieved that the concurrency of the service request of the first quantity is tested.Wherein, which is the generation based on third matrix It time and test time started, is obtained using time difference.
Further, runing time and test time started based on each service request can using time difference operation To obtain the network delay of each service request.
The test method of the above embodiment of the present invention is being based on preset first matrix and the second matrix, using matrix multiplication Algorithm, obtains third matrix, and third matrix includes the 4th matrix of the first quantity, wherein each 4th matrix is by a line What journey was handled, the line number and columns of the first matrix and the second matrix are all larger than preset threshold;Obtain the 4th of the first quantity The corresponding source port of the affiliated thread of each 4th matrix in matrix;The corresponding service request of the 4th matrix based on the first quantity and The corresponding user of source port, generates the test report of multiple business request Concurrency test, and test report includes concurrency test The first quantity service request and the first quantity the corresponding number of users of service request, which solves current nothing Method emulate multi-user multiple business request for test, and can not to multiple business request Concurrency test the problem of.
Corresponding with the above method, the embodiment of the present invention also provides a kind of test device, as shown in Fig. 2, the test device May include:Arithmetic element 210, acquiring unit 220 and generation unit 230.
Arithmetic element 210 using matrix multiplication algorithm, obtains for being based on preset first matrix and the second matrix Three matrixes, wherein third matrix includes the 4th matrix of the first quantity, and each 4th matrix is obtained by a thread process , for the thread for handling a kind of service request, the line number and columns of the first matrix and the second matrix are all larger than preset threshold;
Acquiring unit 220, the corresponding source of the affiliated thread of each 4th matrix in the 4th matrix for obtaining the first quantity Port;Based on the corresponding source port of each 4th matrix, the corresponding service request of each 4th matrix and the source are obtained The corresponding user of mouth;
Generation unit 230, for the corresponding service request of the 4th matrix and the corresponding use of source port according to the first quantity Family, generate multiple business request Concurrency test test report, test report include concurrency test the first quantity and The corresponding number of users of service request of the service request quantity and the first quantity of the test of hair property, to realize the business of the first quantity The concurrency of request is tested.
Optionally, described device further includes start unit 240;
Start unit 240, for being based on preset first matrix and the second matrix in arithmetic element 210, using Matrix Multiplication Method algorithm before obtaining third matrix, starts the thread of the first quantity, the 4th matrix of the first quantity is the thread of the first quantity Preset first matrix and the second matrix are obtained using matrix multiplication algorithm.
Optionally, arithmetic element 210, are specifically used for respectively to the first matrix and the second matrix, using respectively matrix algorithm, Obtain the sub-matrix of the sub-matrix of the first quantity of the first matrix and the first quantity of the second matrix;Call the thread of the first quantity Row sub-matrix every in the first matrix is multiplied with each column sub-matrix in the second matrix respectively, obtains the 4th matrix of the first quantity.
Optionally, acquiring unit 220, specifically for being carried out using Matrix Calculating and algorithm to the 4th matrix on each thread Polymerization obtains the affiliated thread pair of each 4th matrix in the 4th matrix of the first quantity based on the communication of each cross-thread The source port answered.
Optionally, the test report of multiple business request Concurrency test further includes the test time started;
Acquiring unit 220, also particularly useful for the generation time for obtaining third matrix;Generation time based on third matrix and The time started is tested, using time difference operation, obtains kind of a runing time for service request concurrency test.
The test device of the above embodiment of the present invention is being based on preset first matrix and the second matrix, using matrix multiplication Algorithm, obtains third matrix, and third matrix includes the 4th matrix of the first quantity, the line number and column of the first matrix and the second matrix Number is all larger than preset threshold;Obtain the corresponding source port of the affiliated thread of each 4th matrix in the 4th matrix of the first quantity;Base The 4th matrix, the corresponding source port of the affiliated thread of each 4th matrix in the first quantity generate multiple business request Concurrency The test report of test, test report include the service request of the first quantity of concurrency test and the service request of the first quantity Corresponding number of users, the test method solve the multiple business request for test that can not currently emulate multi-user, and can not The problem of to the test of multiple business request Concurrency.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 3, include processor 310, communication interface 320, Memory 330 and communication bus 340, wherein processor 310, communication interface 320, memory 330 are complete by communication bus 340 At mutual communication.
Memory 330, for storing computer program;
Processor 310 when for executing the program stored on memory 330, realizes following steps:
Third matrix is obtained, wherein third using matrix multiplication algorithm based on preset first matrix and the second matrix Matrix includes the 4th matrix of the first quantity, and each 4th matrix is obtained by a thread process, and the thread is for locating A kind of service request is managed, the line number and columns of the first matrix and the second matrix are all larger than preset threshold;
Obtain the corresponding source port of the affiliated thread of each 4th matrix in the 4th matrix of the first quantity;
Based on the corresponding source port of each 4th matrix, obtain the corresponding service request of each 4th matrix and The corresponding user of the source port;
According to the corresponding service request of the 4th matrix of the first quantity and the corresponding user of source port, generates multiple business and ask The test report for asking concurrency to test, test report include the service request of the concurrency test of the first quantity of concurrency test The corresponding number of users of the service request of quantity and the first quantity, to realize the concurrency test of the service request of the first quantity.
Optionally, preset first matrix and the second matrix are based on, using matrix multiplication algorithm, obtain third matrix it Before, start the thread of the first quantity, the 4th matrix of the first quantity is the thread of the first quantity by preset first matrix and the Two matrixes obtain the 4th matrix of the first quantity using matrix multiplication algorithm.
Optionally, third matrix is obtained using matrix multiplication algorithm based on preset first matrix and the second matrix, wrapped It includes:
Respectively to the first matrix and the second matrix using matrix algorithm is divided equally, obtain the first quantity of the first matrix divides square The sub-matrix of battle array and the first quantity of the second matrix;
Call the thread of the first quantity respectively by row sub-matrix every in the first matrix and each column sub-matrix phase in the second matrix Multiply, obtains the 4th matrix of the first quantity.
Optionally, the corresponding port information of the affiliated thread of each 4th matrix in the 4th matrix of the first quantity, packet are obtained It includes:
The 4th matrix on each thread is polymerize using Matrix Calculating and algorithm, based on the communication of each cross-thread, Obtain the corresponding source port of the affiliated thread of each 4th matrix in the 4th matrix of the first quantity.
Optionally, the test report of multiple business request Concurrency test further includes the test time started;
Before the test information for generating the test of multiple business request Concurrency, the generation time of third matrix is obtained;
Generation time and test time started based on the third matrix obtain multiple business using time difference operation The runing time of request Concurrency test.
Communication bus mentioned above can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
The embodiment and beneficial effect solved the problems, such as due to each device of electronic equipment in above-described embodiment can join Each step in embodiment as shown in Figure 1 realizes, therefore, the specific works mistake of electronic equipment provided in an embodiment of the present invention Journey and beneficial effect, do not repeat again herein.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes any institute in above-described embodiment The test method stated.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes any test method in above-described embodiment.
It should be understood by those skilled in the art that, the embodiment in the embodiment of the present application can provide as method, system or meter Calculation machine program product.Therefore, complete hardware embodiment, complete software embodiment can be used in the embodiment of the present application or combine soft The form of the embodiment of part and hardware aspect.Moreover, being can be used in the embodiment of the present application in one or more wherein includes meter Computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, the optical memory of calculation machine usable program code Deng) on the form of computer program product implemented.
It is referring to according to the method for embodiment, equipment (system) and calculating in the embodiment of the present application in the embodiment of the present application The flowchart and/or the block diagram of machine program product describes.It should be understood that can be realized by computer program instructions flow chart and/or The combination of the process and/or box in each flow and/or block and flowchart and/or the block diagram in block diagram.It can mention For the processing of these computer program instructions to general purpose computer, special purpose computer, Embedded Processor or other programmable datas The processor of equipment is to generate a machine, so that being executed by computer or the processor of other programmable data processing devices Instruction generation refer to for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of fixed function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment in the embodiment of the present application has been described, once a person skilled in the art knows Basic creative concept, then additional changes and modifications may be made to these embodiments.So appended claims are intended to explain Being includes preferred embodiment and all change and modification for falling into range in the embodiment of the present application.
Obviously, those skilled in the art embodiment in the embodiment of the present application can be carried out various modification and variations without It is detached from the spirit and scope of embodiment in the embodiment of the present application.If in this way, in the embodiment of the present application embodiment these modification Within the scope of belonging in the embodiment of the present application claim and its equivalent technologies with modification, then also it is intended in the embodiment of the present application It includes these modifications and variations.

Claims (12)

1. the test method of one kind of multiple service request concurrencies, which is characterized in that the method includes:
Third matrix is obtained using matrix multiplication algorithm based on preset first matrix and the second matrix, wherein the third Matrix includes the 4th matrix of the first quantity, and each 4th matrix is obtained by a thread process, and the thread is used In handling a kind of service request, the line number and columns of first matrix and second matrix are all larger than preset threshold;
Obtain the corresponding source port of the affiliated thread of each 4th matrix in the 4th matrix of first quantity;
Based on the corresponding source port of each 4th matrix, obtains a kind of corresponding business of each 4th matrix and ask Sum the corresponding user of the source port;
According to the corresponding service request of the 4th matrix of first quantity and the corresponding user of the source port, a variety of industry are generated The test report of business request Concurrency test, the test report include the service request of first quantity of concurrency test Number of users corresponding with the service request of first quantity.
2. the method as described in claim 1, which is characterized in that preset first matrix and the second matrix are based on, using matrix Multiplication algorithm, before obtaining third matrix, the method also includes:
Start the thread of the first quantity, the 4th matrix of first quantity is the thread of first quantity by preset first What matrix and the second matrix were obtained using matrix multiplication algorithm.
3. method according to claim 2, which is characterized in that preset first matrix and the second matrix are based on, using matrix Multiplication algorithm obtains third matrix, and the third matrix includes the 4th matrix of the first quantity, including:
Respectively to first matrix and second matrix using matrix algorithm is divided equally, described the of first matrix is obtained The sub-matrix of first quantity of the sub-matrix of one quantity and second matrix;
Call the thread of first quantity respectively by each column in row sub-matrix every in first matrix and second matrix Sub-matrix is multiplied, and obtains the 4th matrix of first quantity.
4. the method as described in claim 1, which is characterized in that obtain each 4th square in the 4th matrix of first quantity The corresponding source port of thread belonging to battle array, including:
The 4th matrix on each thread is polymerize using Matrix Calculating and algorithm, based on the communication of each cross-thread, Obtain the corresponding source port of the affiliated thread of each 4th matrix in the 4th matrix of first quantity.
5. the method as described in claim 1-4 is any, which is characterized in that the test report further includes the test time started, Before the test report for generating the test of multiple business request Concurrency, the method also includes:
Obtain the generation time of the third matrix;
Generation time and the test time started based on the third matrix are obtained described more using time difference operation The runing time of kind service request concurrency test.
6. a kind of test device, which is characterized in that described device includes:Arithmetic element, acquiring unit and generation unit;
The arithmetic element, for obtaining third square using matrix multiplication algorithm based on preset first matrix and the second matrix Battle array, wherein the third matrix includes the 4th matrix of the first quantity, and each 4th matrix is obtained by a thread process It arrives, for the thread for handling a kind of service request, the line number and columns of first matrix and second matrix are big In preset threshold;
The acquiring unit, the corresponding source of the affiliated thread of each 4th matrix in the 4th matrix for obtaining first quantity Port;Based on the corresponding source port of each 4th matrix, the corresponding service request of each 4th matrix is obtained User corresponding with the source port;
The generation unit, for corresponding according to the corresponding service request of the 4th matrix of first quantity and the source port User, generate multiple business request Concurrency test test report, the test report include concurrency test it is described The corresponding number of users of service request of the service request of first quantity and first quantity.
7. device as claimed in claim 6, which is characterized in that described device further includes start unit;
The start unit, for being based on preset first matrix and the second matrix in the arithmetic element, using matrix multiplication Algorithm before obtaining third matrix, starts the thread of the first quantity, the 4th matrix of first quantity is first quantity Thread preset first matrix and the second matrix obtained using matrix multiplication algorithm.
8. device as claimed in claim 7, which is characterized in that the arithmetic element is specifically used for respectively to first square Battle array, using matrix algorithm is divided equally, obtains the sub-matrix of first quantity of first matrix and described with second matrix The sub-matrix of first quantity of second matrix;Call the thread of first quantity respectively by every row in first matrix Sub-matrix is multiplied with each column sub-matrix in second matrix, obtains the 4th matrix of first quantity.
9. device as claimed in claim 8, which is characterized in that the acquiring unit is specifically used for using Matrix Calculating and algorithm The 4th matrix on each thread is polymerize, based on the communication of each cross-thread, obtains the of first quantity The corresponding source port of the affiliated thread of each 4th matrix in four matrixes.
10. the device as described in claim 6-9 is any, which is characterized in that the test report further includes the test time started;
The acquiring unit, also particularly useful for the generation time for obtaining the third matrix;
Generation time and the test time started based on the third matrix are obtained described more using time difference operation The runing time of kind service request concurrency test.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes that processor, communication interface, memory and communication are total Line, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-5.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 1-5 any method and step when the computer program is executed by processor.
CN201810903030.1A 2018-08-09 2018-08-09 Method and device for testing concurrency of multiple service requests Active CN108880947B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810903030.1A CN108880947B (en) 2018-08-09 2018-08-09 Method and device for testing concurrency of multiple service requests

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810903030.1A CN108880947B (en) 2018-08-09 2018-08-09 Method and device for testing concurrency of multiple service requests

Publications (2)

Publication Number Publication Date
CN108880947A true CN108880947A (en) 2018-11-23
CN108880947B CN108880947B (en) 2021-03-05

Family

ID=64317433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810903030.1A Active CN108880947B (en) 2018-08-09 2018-08-09 Method and device for testing concurrency of multiple service requests

Country Status (1)

Country Link
CN (1) CN108880947B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045776A (en) * 2011-01-11 2011-05-04 中国科学院计算技术研究所 Adaptive traffic stream switching method for communication network system and corresponding server
CN102752864A (en) * 2012-07-04 2012-10-24 北京理工大学 User experience-oriented resource allocation method in multi-user and multi-service system
CN103024791A (en) * 2012-12-28 2013-04-03 广州联正达通信科技股份有限公司 Multi-service processing model and multi-service processing method in communication test system
CN103533046A (en) * 2013-10-12 2014-01-22 苏州大学 Public-verifiable linear algebra entrusted calculation system
CN104243408A (en) * 2013-06-14 2014-12-24 中国移动通信集团公司 Method, device and system for monitoring messages in domain name resolution service DNS system
CN104504257A (en) * 2014-12-12 2015-04-08 国家电网公司 Double parallel computing-based on-line Prony analysis method
CN105516251A (en) * 2015-11-26 2016-04-20 阿坝师范学院 Positioning calibration method and position service pushing system thereof
US20170154404A1 (en) * 2015-06-18 2017-06-01 International Business Machines Corporation Memory-aware matrix factorization
US20180060219A1 (en) * 2016-09-01 2018-03-01 GM Global Technology Operations LLC Apparatus and methodology for symbolic execution-based analysis of unintended interactions in a computing system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045776A (en) * 2011-01-11 2011-05-04 中国科学院计算技术研究所 Adaptive traffic stream switching method for communication network system and corresponding server
CN102752864A (en) * 2012-07-04 2012-10-24 北京理工大学 User experience-oriented resource allocation method in multi-user and multi-service system
CN103024791A (en) * 2012-12-28 2013-04-03 广州联正达通信科技股份有限公司 Multi-service processing model and multi-service processing method in communication test system
CN104243408A (en) * 2013-06-14 2014-12-24 中国移动通信集团公司 Method, device and system for monitoring messages in domain name resolution service DNS system
CN103533046A (en) * 2013-10-12 2014-01-22 苏州大学 Public-verifiable linear algebra entrusted calculation system
CN104504257A (en) * 2014-12-12 2015-04-08 国家电网公司 Double parallel computing-based on-line Prony analysis method
US20170154404A1 (en) * 2015-06-18 2017-06-01 International Business Machines Corporation Memory-aware matrix factorization
CN105516251A (en) * 2015-11-26 2016-04-20 阿坝师范学院 Positioning calibration method and position service pushing system thereof
US20180060219A1 (en) * 2016-09-01 2018-03-01 GM Global Technology Operations LLC Apparatus and methodology for symbolic execution-based analysis of unintended interactions in a computing system

Also Published As

Publication number Publication date
CN108880947B (en) 2021-03-05

Similar Documents

Publication Publication Date Title
WO2021135532A1 (en) Cloud network vulnerability discovery method, apparatus, electronic device, and medium
CN109669774B (en) Hardware resource quantification method, hardware resource arrangement method, hardware resource quantification device and hardware resource arrangement device and network equipment
US20180191859A1 (en) Network resource schedulers and scheduling methods for cloud deployment
US9621633B2 (en) Flow director-based low latency networking
WO2022267769A1 (en) Method and apparatus for generating graph data
CN116431282A (en) Cloud virtual host server management method, device, equipment and storage medium
US20140136659A1 (en) Timeout Value Adaptation
CN109918275A (en) It is a kind of to realize the method, apparatus and system that pressure test is carried out to server performance
CN111597041B (en) Calling method and device of distributed system, terminal equipment and server
CN109032693A (en) Method and device for loading display information, electronic equipment and readable storage medium
CN108880947A (en) The test method and device of one kind of multiple service request concurrencies
US11762773B2 (en) Memory-based synchronization of distributed operations
CN109460535A (en) A kind of finite field matrix inversion device based on cloud and inversion technique
US10102007B2 (en) Simultaneously capturing status information for multiple operating modes
CN112260896B (en) Network transmission testing method, device, equipment and readable storage medium
CN113098730B (en) Server testing method and equipment
CN104714911B (en) It can be used for device associated at least one host, method and computer-readable memory at least partly
CN110880042B (en) Online game registration information processing method and device
CN107678967B (en) Unit test coverage rate generation method and device, readable storage medium and equipment
CN106569778B (en) A kind of method and electronic equipment of data processing
CN112988339A (en) Data management method and device
CN113626160B (en) Network data packet high-concurrency processing method and system based on cavium processor
CN116701233B (en) Transaction system testing method, equipment and medium based on high concurrency report simulation
TWI764456B (en) Method and device for block operation, computer device and storage medium
US20230066835A1 (en) Methods, systems and computer readable media for improving remote direct memory access performance

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