CN116048945B - Device performance detection method and device, electronic device and storage medium - Google Patents

Device performance detection method and device, electronic device and storage medium Download PDF

Info

Publication number
CN116048945B
CN116048945B CN202310317568.5A CN202310317568A CN116048945B CN 116048945 B CN116048945 B CN 116048945B CN 202310317568 A CN202310317568 A CN 202310317568A CN 116048945 B CN116048945 B CN 116048945B
Authority
CN
China
Prior art keywords
performance detection
detected
result
equipment
detection result
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.)
Active
Application number
CN202310317568.5A
Other languages
Chinese (zh)
Other versions
CN116048945A (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.)
Moore Threads Technology Co Ltd
Original Assignee
Moore Threads 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 Moore Threads Technology Co Ltd filed Critical Moore Threads Technology Co Ltd
Priority to CN202310317568.5A priority Critical patent/CN116048945B/en
Publication of CN116048945A publication Critical patent/CN116048945A/en
Application granted granted Critical
Publication of CN116048945B publication Critical patent/CN116048945B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3428Benchmarking
    • 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

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure relates to the technical field of information processing, and in particular relates to a device performance detection method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: acquiring data to be detected and a first performance detection result corresponding to the data to be detected; the first performance detection result is a performance detection result obtained by processing the data to be detected through preset equipment; processing the data to be detected through equipment to be detected to obtain a second performance detection result corresponding to the equipment to be detected; and generating a performance detection report corresponding to the equipment to be detected according to the first performance detection result and the second performance detection result. The equipment performance detection method provided by the embodiment of the disclosure is beneficial to reducing the labor cost and optimizing the performance bottleneck.

Description

Device performance detection method and device, electronic device and storage medium
Technical Field
The disclosure relates to the technical field of information processing, and in particular relates to a device performance detection method, a device, an electronic device and a storage medium.
Background
The performance analysis is an analysis method for researching program behavior by taking the collected program runtime information as a means, is a dynamic program analysis method, and aims to determine which part of the program should be optimized so as to improve the speed or the memory use efficiency of the program, and how to perform the performance analysis generally affects the optimization efficiency of the equipment to be detected by performance analysis tools (or profilers), so how to better acquire performance detection reports is a technical problem which needs to be solved by developers.
Disclosure of Invention
The disclosure provides a technical scheme for detecting equipment performance.
According to an aspect of the present disclosure, there is provided a device performance detection method, the method including: acquiring data to be detected and a first performance detection result corresponding to the data to be detected; the first performance detection result is a performance detection result obtained by processing the data to be detected through preset equipment; processing the data to be detected through equipment to be detected to obtain a second performance detection result corresponding to the equipment to be detected; and generating a performance detection report corresponding to the equipment to be detected according to the first performance detection result and the second performance detection result.
In one possible implementation manner, the generating a performance detection report according to the first performance detection result and the second performance detection result includes: determining a first result to be compared in the first performance detection result; the first to-be-compared result is any one to-be-compared result in the first performance detection result; matching the first comparison result with a plurality of candidate comparison results in the second performance detection result; under the condition that the first to-be-compared results are successfully matched, taking the first to-be-compared results and the second to-be-compared results as a comparison group, and updating a performance detection report according to the comparison group until each to-be-compared result in the first performance detection results is matched; and the second comparison result is a candidate comparison result which is successfully matched with the first comparison result in the second performance detection result.
In a possible implementation manner, the updating the performance detection report according to the control group includes: acquiring hardware information of the equipment to be detected corresponding to the comparison group and hardware information of the preset equipment corresponding to the comparison group; and taking the comparison group, the hardware information of the equipment to be detected corresponding to the comparison group and the hardware information of the preset equipment corresponding to the comparison group as a group of data, and adding the data into a performance detection report.
In a possible implementation manner, the updating the performance detection report according to the control group includes: and under the condition that the difference value between the first to-be-compared result and the second to-be-compared result in the comparison group is larger than the preset threshold value corresponding to the comparison group, generating the identification corresponding to the comparison group, and adding the identification corresponding to the comparison group and the identification corresponding to the comparison group into a performance detection report.
In a possible embodiment, the updating the performance detection report according to the control group includes at least one of the following: under the condition that the first to-be-compared result in the control group is better than the second to-be-compared result in the control group, generating a first identifier corresponding to the control group, and adding the control group and the first identifier corresponding to the control group into a performance detection report; generating a second identifier corresponding to the control group under the condition that the first to-be-compared result in the control group is inferior to the second to-be-compared result in the control group, and adding the control group and the second identifier corresponding to the control group into a performance detection report; wherein the first identifier is different from the second identifier.
In a possible implementation manner, the device to be detected is a heterogeneous device, and the first performance detection result and the second performance detection result include at least one of the following: the method comprises the steps of consuming time for calling an application programming interface of the heterogeneous device, consuming time for copying a video memory of a display card in the heterogeneous device and consuming time for executing a preset operator of the display card.
In a possible implementation manner, the processing, by the device to be detected, the data to be detected to obtain a second performance detection result corresponding to the device to be detected includes: acquiring a container corresponding to equipment to be detected; the container is used for providing a system environment required by the equipment to be detected in performance detection; and processing the data to be detected by the equipment to be detected in the container corresponding to the equipment to be detected to obtain a second performance detection result corresponding to the equipment to be detected.
According to an aspect of the present disclosure, there is provided an apparatus for detecting performance of a device, the apparatus including: the parameter acquisition module is used for acquiring data to be detected and a first performance detection result corresponding to the data to be detected; the first performance detection result is a performance detection result obtained by processing the data to be detected through preset equipment; the detection result generation module is used for processing the data to be detected through equipment to be detected to obtain a second performance detection result corresponding to the equipment to be detected; and the performance detection report generation module is used for generating a performance detection report corresponding to the equipment to be detected according to the first performance detection result and the second performance detection result.
According to an aspect of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the instructions stored in the memory to perform the above method.
According to an aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method.
In the embodiment of the disclosure, data to be detected and a first performance detection result corresponding to the data to be detected can be obtained, then the data to be detected is processed through equipment to be detected to obtain a second performance detection result corresponding to the equipment to be detected, and finally a performance detection report corresponding to the equipment to be detected is generated according to the first performance detection result and the second performance detection result. The embodiment of the disclosure can realize an automatic acquisition flow of the performance detection report, and is beneficial to reducing the labor cost. In addition, the embodiment of the disclosure can realize the positioning of the performance bottleneck between different devices by comparing the first performance detection result of the preset device with the second performance detection result of the device to be detected, thereby being beneficial to optimizing the performance bottleneck.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the technical aspects of the disclosure.
Fig. 1 shows a flowchart of a device performance detection method provided according to an embodiment of the present disclosure.
Fig. 2 shows a reference schematic diagram of a device performance detection method according to an embodiment of the present disclosure.
Fig. 3 shows a block diagram of a device performance detection apparatus provided according to an embodiment of the present disclosure.
Fig. 4 shows a block diagram of an electronic device provided in accordance with an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the disclosure will be described in detail below with reference to the drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Furthermore, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements, and circuits well known to those skilled in the art have not been described in detail in order not to obscure the present disclosure.
In the related art, the labor cost for acquiring the performance detection report is too high, and the positioning difficulty of the performance bottleneck aiming at different equipment to be detected is relatively high. The embodiment of the disclosure can realize an automatic acquisition flow of the performance detection report, and is beneficial to reducing the labor cost. In addition, the embodiment of the disclosure can realize the positioning of the performance bottleneck between different devices by comparing the first performance detection result of the preset device with the second performance detection result of the device to be detected, thereby being beneficial to optimizing the performance bottleneck.
Referring to fig. 1, fig. 1 shows a flowchart of a device performance detection method according to an embodiment of the disclosure, as shown in fig. 1, where the method includes: step S100, data to be detected and a first performance detection result corresponding to the data to be detected are obtained. The first performance detection result is a performance detection result obtained by processing the data to be detected through preset equipment. Illustratively, the data to be detected may include: any data that the device to be detected can operate, such as various operators and models that the device to be detected can execute, and the embodiments of the present disclosure are not limited herein. The above-mentioned preset device may be any device in the related art that needs to compare processing performance with that of the device to be detected, and the embodiments of the present disclosure are not limited herein, and, for example, if the device to be detected is a heterogeneous device that is commonly executed by a CPU (Central Processing Unit ), a GPU (Graphics Processing Unit, graphics processor), the preset device may also be a heterogeneous device with the same architecture or a similar architecture, so as to improve the representativeness of the performance detection report, and the embodiments of the present disclosure are not limited herein. In one example, a first performance detection result corresponding to the preset device may be directly stored in a storage medium, where the first performance detection result may correspond to data to be detected, so that a subsequent electronic device may directly call the data to be detected according to the data to be detected. It should be understood that, performance detection may be performed on the preset device in the generation stage of the performance detection report, that is, the first performance detection result may be generated on the preset device once for each time of generating the performance detection report for the device to be detected, and the user may set the performance detection report according to the actual requirement, which is not limited in the embodiments of the present disclosure.
And step S200, processing the data to be detected through equipment to be detected to obtain a second performance detection result corresponding to the equipment to be detected. For example, the data to be detected may be directly sent to the device to be detected, so that the device to be detected processes the data to be detected, and the second performance detection result may be obtained.
In a possible implementation manner, the device to be detected is a heterogeneous device, and the first performance detection result and the second performance detection result include at least one of the following: the application programming interface (or called Application Programming Interface, abbreviated as API, such as framework, driver, etc.) of the heterogeneous device calls time, the copying of the video memory of the graphics card in the heterogeneous device takes time, and the execution of the preset operator (the same operator as that executed by the preset device) of the graphics card takes time. By way of example, embodiments of the present disclosure are not limited to specific contents of the application programming interface and the preset operator, and the user may flexibly set according to actual situations. The performance comparison of the heterogeneous dimension is lacking in the related technology, and the related technology can only initiate a single performance detection task aiming at a specific heterogeneous platform, specific hardware and specific task, but the embodiment of the disclosure can comprehensively analyze the performance bottleneck of the heterogeneous equipment from the dimensions, thereby being beneficial to the subsequent performance optimization of the heterogeneous equipment.
In one possible implementation, step S200 may include: and obtaining a container corresponding to the equipment to be detected. The container is used for providing a system environment required by the equipment to be detected in performance detection. For example, the container may be a container established based on container technology in the related art, may provide a system environment for the device to be detected, and may be generated in advance before detection. And then processing the data to be detected by the equipment to be detected in a container corresponding to the equipment to be detected, so as to obtain a second performance detection result corresponding to the equipment to be detected. For example, for different devices to be detected, the container may include image files of different performance analysis tools, where the image files of the performance analysis tools may automatically perform performance detection on the devices to be detected in the container when the image files are called. In one example, different devices to be detected, preset devices, may correspond to different performance analysis tools to adapt the performance detection procedure to different devices. For example, the images of the performance analysis tools may be created based on Torch profilers, tensorflow Profiler (all of which are performance analysis tools) and the like in the related art, and the data format of the performance detection results may be json files. It should be understood that the data format of the mirror image and the performance detection result of the performance analysis tool may also be determined according to the actual situation. In the related art, a user needs to prepare a specific performance detection environment for different heterogeneous devices by himself, the environment configuration flow is complex, and the labor cost is high. In the embodiment of the disclosure, by using the container technology, the user may not care about the actual performance detection environment, and may automatically configure the performance detection environment of the device to be detected, so as to reduce the complexity of the environment configuration process, and thus, facilitate reducing the labor cost.
With continued reference to fig. 1, step S300 generates a performance detection report corresponding to the device to be detected according to the first performance detection result and the second performance detection result. Illustratively, the performance test report may include any performance test result, and embodiments of the present disclosure are not limited herein, such as: the time consumed by the device to be detected to execute the data to be detected, the hardware calculation force of the device to be detected, and the like, and the user can add the performance types to be detected into the performance detection report according to the actual requirements, and the embodiment of the disclosure is not limited herein. In the related art, a user needs to perform performance detection on each heterogeneous device, manually compare performance detection results, manually find out possible performance bottlenecks, repeatedly compare various performance indexes on two heterogeneous devices, and greatly position the performance bottlenecks. In addition, for ModelZoo (or model market) products, the models are of a plurality of types, and the performance detection technology used by each model is basically consistent, and if the performance bottleneck positioning is manually performed for each model, the labor cost is extremely high. In the embodiment of the disclosure, the performance detection report includes a first performance detection result of the preset device for the data to be detected and a second performance detection result of the device to be detected for the data to be detected, so that performance comparison between the preset device and the device to be detected can be automatically realized, performance bottleneck of the device to be detected can be automatically positioned, and labor cost is reduced.
In one possible implementation, step S300 may include: determining a first result to be compared in the first performance detection result; the first to-be-compared result is any one to-be-compared result in the first performance detection result. And then matching the current result to be compared with a plurality of candidate comparison results in the second performance detection result. Under the condition that the first to-be-compared results are successfully matched, the first to-be-compared results and the second to-be-compared results are used as a comparison group, and the performance detection report is updated according to the comparison group until each to-be-compared result in the first performance detection results is matched. And the second comparison result is a candidate comparison result which is successfully matched with the first comparison result in the second performance detection result. The preset device and the device to be detected are performance detection results generated for the same data to be detected, so that the same detection content in the first performance detection result and the second performance detection result can be matched, the same detection content and different performance detection results in the first performance detection result and the second performance detection result can be intuitively displayed, and the advantages and disadvantages of the device to be detected and the preset device on the same detection content can be determined. For example, the same detection content may correspond to the same identifier, so that the first to-be-compared result may be matched with the candidate comparison result in the second performance detection result through the identifier. It should be understood that the identifiers of the same detection content in the first performance detection result and the second performance detection result may also be different, and the matching between the two may be supported by the existence of a correspondence, so that the user may set the detection content according to the actual requirement, which is not limited in the embodiments of the present disclosure.
In a possible implementation manner, the updating the performance detection report according to the control group may include: and acquiring hardware information of the equipment to be detected corresponding to the comparison group and hardware information of the preset equipment corresponding to the comparison group. And then taking the comparison group, the hardware information of the equipment to be detected corresponding to the comparison group and the hardware information of the preset equipment corresponding to the comparison group as a group of data, and adding the data into a performance detection report. The above hardware information may be represented by different hardware brands or models, and may also be represented by computing power, for example. For example: the time consumption of the preset equipment for executing the convolution operator A is 10ms, the hardware computing power of the preset equipment is 10 TFlips, the time consumption of the equipment to be detected for executing the convolution operator A is 40ms, and the hardware computing power of the equipment to be detected is 10 TFlips, so that the performance of the equipment to be detected when executing the convolution operator A can be determined to have a larger lifting space. Considering that the computing power and the bandwidth of the equipment to be detected are different, the embodiment of the disclosure supports the hardware information comparison of the equipment to be detected and the preset equipment, and the performance detection report generated by the method can intuitively show the performance bottleneck of the equipment to be detected and the preset equipment aiming at different data to be detected, thereby being beneficial to improving the representativeness of the performance detection report.
In a possible implementation manner, the updating the performance detection report according to the control group may include: and under the condition that the difference value between the first to-be-compared result and the second to-be-compared result in the comparison group is larger than the preset threshold value corresponding to the comparison group, generating the identification corresponding to the comparison group, and adding the identification corresponding to the comparison group and the identification corresponding to the comparison group into a performance detection report. For example, the identifier may be any symbol or text with marking capability in the related art, and the embodiment of the disclosure may identify the comparison group under the condition that the difference between the results to be compared is large, so as to facilitate the user to read. The embodiment of the present disclosure is not limited to the specific value of the preset threshold, and the user may set the specific value according to the actual situation, and in one example, the user may set a different preset threshold for each control group, which is not limited herein.
In a possible implementation manner, the updating the performance detection report according to the control group may include at least one of the following: and under the condition that the first to-be-compared result in the control group is better than the second to-be-compared result in the control group, generating a first identifier corresponding to the control group, and adding the first identifiers corresponding to the control group and the control group into a performance detection report. And under the condition that the first to-be-compared result in the control group is inferior to the second to-be-compared result in the control group, generating a second identifier corresponding to the control group, and adding the second identifiers corresponding to the control group and the control group into a performance detection report. Wherein the first identifier is different from the second identifier. For example, the merits between the first to-be-compared result and the second to-be-compared result may be set according to the actual situation. The embodiment of the disclosure is not limited to specific mark contents of the first mark and the second mark, and a user can select according to actual requirements. According to the embodiment of the disclosure, two conditions that a first to-be-compared result is better than a second to-be-compared result and the first to-be-compared result is worse than the second to-be-compared result in the comparison group can be marked through different marks, so that a user can clearly know that the to-be-detected device is better than the performance detection result of the preset device and is worse than the performance detection result of the preset device, and the optimal adjustment of the to-be-detected device is facilitated.
Referring to fig. 2, fig. 2 shows a reference schematic diagram of a method for detecting device performance according to an embodiment of the present disclosure, as shown in fig. 2, the embodiment of the present disclosure provides a practical application scenario for reference, and a user first issues a task to start a performance detection flow, then automatically prepares a heterogeneous machine (where the heterogeneous machine is used as the device to be detected), automatically prepares a container to provide an environment for performance detection of the heterogeneous machine, pulls a model (i.e. the data to be detected described above) and a code (i.e. the performance analysis tool described above), performs performance detection on the heterogeneous machine, and collects a performance detection result. If the heterogeneous machine needs to be compared with performance detection results of other preset devices, determining that residual tasks exist, preparing the heterogeneous machine again (the heterogeneous machine is the preset device) for the above flow until the performance detection results of the heterogeneous machine to be detected and the performance detection results of the preset device are obtained, automatically generating a performance detection report based on the two performance detection results, and analyzing the performance bottleneck of the device to be detected (refer to report analysis in the figure). The embodiment of the disclosure can automatically realize the acquisition of the performance detection report through the design of a pipeline, and can reduce the environmental configuration cost of performance detection through a container technology. According to the embodiment of the disclosure, performance comparison can be performed on different devices, and particularly, according to the situation that the device to be detected and the preset device are heterogeneous devices, the heterogeneous devices can be analyzed in multiple dimensions such as time consumption of calling an application programming interface of the heterogeneous devices, time consumption of copying a video memory of a display card in the heterogeneous devices, time consumption of executing a preset operator of the display card and the like, so that the generation quality of performance detection reports of the device to be detected is improved.
It will be appreciated that the above-mentioned method embodiments of the present disclosure may be combined with each other to form a combined embodiment without departing from the principle logic, and are limited to the description of the present disclosure. It will be appreciated by those skilled in the art that in the above-described methods of the embodiments, the particular order of execution of the steps should be determined by their function and possible inherent logic.
In addition, the disclosure further provides an electronic device, a computer readable storage medium, and a program, where the foregoing may be used to implement any one of the switching methods of the operating system provided in the disclosure, and corresponding technical schemes and descriptions and corresponding descriptions referring to method parts are not repeated.
Referring to fig. 3, fig. 3 shows a block diagram of a device performance detection apparatus according to an embodiment of the disclosure. As shown in conjunction with fig. 3, an embodiment of the present disclosure further provides a device performance detection apparatus, where the device performance detection apparatus 100 includes: the parameter obtaining module 110 is configured to obtain data to be detected and a first performance detection result corresponding to the data to be detected; the first performance detection result is a performance detection result obtained by processing the data to be detected through preset equipment; the detection result generating module 120 is configured to process the data to be detected through a device to be detected, so as to obtain a second performance detection result corresponding to the device to be detected; and the performance detection report generating module 130 is configured to generate a performance detection report corresponding to the device to be detected according to the first performance detection result and the second performance detection result.
In one possible implementation manner, the generating a performance detection report according to the first performance detection result and the second performance detection result includes: determining a first result to be compared in the first performance detection result; the first to-be-compared result is any one to-be-compared result in the first performance detection result; matching the first comparison result with a plurality of candidate comparison results in the second performance detection result; under the condition that the first to-be-compared results are successfully matched, taking the first to-be-compared results and the second to-be-compared results as a comparison group, and updating a performance detection report according to the comparison group until each to-be-compared result in the first performance detection results is matched; and the second comparison result is a candidate comparison result which is successfully matched with the first comparison result in the second performance detection result.
In a possible implementation manner, the updating the performance detection report according to the control group includes: acquiring hardware information of the equipment to be detected corresponding to the comparison group and hardware information of the preset equipment corresponding to the comparison group; and taking the comparison group, the hardware information of the equipment to be detected corresponding to the comparison group and the hardware information of the preset equipment corresponding to the comparison group as a group of data, and adding the data into a performance detection report.
In a possible implementation manner, the updating the performance detection report according to the control group includes: and under the condition that the difference value between the first to-be-compared result and the second to-be-compared result in the comparison group is larger than the preset threshold value corresponding to the comparison group, generating the identification corresponding to the comparison group, and adding the identification corresponding to the comparison group and the identification corresponding to the comparison group into a performance detection report.
In a possible embodiment, the updating the performance detection report according to the control group includes at least one of the following: under the condition that the first to-be-compared result in the control group is better than the second to-be-compared result in the control group, generating a first identifier corresponding to the control group, and adding the control group and the first identifier corresponding to the control group into a performance detection report; generating a second identifier corresponding to the control group under the condition that the first to-be-compared result in the control group is inferior to the second to-be-compared result in the control group, and adding the control group and the second identifier corresponding to the control group into a performance detection report; wherein the first identifier is different from the second identifier.
In a possible implementation manner, the device to be detected is a heterogeneous device, and the first performance detection result and the second performance detection result include at least one of the following: the method comprises the steps of consuming time for calling an application programming interface of the heterogeneous device, consuming time for copying a video memory of a display card in the heterogeneous device and consuming time for executing a preset operator of the display card.
In a possible implementation manner, the processing, by the device to be detected, the data to be detected to obtain a second performance detection result corresponding to the device to be detected includes: acquiring a container corresponding to equipment to be detected; the container is used for providing a system environment required by the equipment to be detected in performance detection; and processing the data to be detected by the equipment to be detected in the container corresponding to the equipment to be detected to obtain a second performance detection result corresponding to the equipment to be detected.
The method has specific technical association with the internal structure of the computer system, and can solve the technical problems of improving the hardware operation efficiency or the execution effect (including reducing the data storage amount, reducing the data transmission amount, improving the hardware processing speed and the like), thereby obtaining the technical effect of improving the internal performance of the computer system which accords with the natural law.
In some embodiments, functions or modules included in an apparatus provided by the embodiments of the present disclosure may be used to perform a method described in the foregoing method embodiments, and specific implementations thereof may refer to descriptions of the foregoing method embodiments, which are not repeated herein for brevity.
The disclosed embodiments also provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method. The computer readable storage medium may be a volatile or nonvolatile computer readable storage medium.
The embodiment of the disclosure also provides an electronic device, which comprises: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the instructions stored in the memory to perform the above method.
Embodiments of the present disclosure also provide a computer program product comprising computer readable code, or a non-transitory computer readable storage medium carrying computer readable code, which when run in a processor of an electronic device, performs the above method.
The electronic device may be provided as a terminal device, a server or other form of device.
Referring to fig. 4, fig. 4 illustrates a block diagram of an electronic device 1900 provided in accordance with an embodiment of the disclosure. For example, electronic device 1900 may be provided as a server or terminal device. Referring to FIG. 4, electronic device 1900 includes a processing component 1922 that further includes one or more processors and memory resources represented by memory 1932 for storing instructions, such as application programs, that can be executed by processing component 1922. The application programs stored in memory 1932 may include one or more modules each corresponding to a set of instructions. Further, processing component 1922 is configured to execute instructions to perform the methods described above.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output interface 1958. Electric powerThe sub-device 1900 may operate based on an operating system stored in memory 1932, such as the Microsoft Server operating system (Windows Server) TM ) Apple Inc. developed graphical user interface based operating System (Mac OS X TM ) Multi-user multi-process computer operating system (Unix) TM ) Unix-like operating system (Linux) of free and open source code TM ) Unix-like operating system (FreeBSD) with open source code TM ) Or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 1932, including computer program instructions executable by processing component 1922 of electronic device 1900 to perform the methods described above.
The present disclosure may be a system, method, and/or computer program product. The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
Computer program instructions for performing the operations of the present disclosure can be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, c++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present disclosure are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information of computer readable program instructions, which can execute the computer readable program instructions.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The computer program product may be realized in particular by means of hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
It will be appreciated by those skilled in the art that in the above-described method of the specific embodiments, the written order of steps is not meant to imply a strict order of execution but rather should be construed according to the function and possibly inherent logic of the steps.
If the technical scheme of the application relates to personal information, the product applying the technical scheme of the application clearly informs the personal information processing rule before processing the personal information, and obtains independent consent of the individual. If the technical scheme of the application relates to sensitive personal information, the product applying the technical scheme of the application obtains individual consent before processing the sensitive personal information, and simultaneously meets the requirement of 'explicit consent'. For example, a clear and remarkable mark is set at a personal information acquisition device such as a camera to inform that the personal information acquisition range is entered, personal information is acquired, and if the personal voluntarily enters the acquisition range, the personal information is considered as consent to be acquired; or on the device for processing the personal information, under the condition that obvious identification/information is utilized to inform the personal information processing rule, personal authorization is obtained by popup information or a person is requested to upload personal information and the like; the personal information processing rule may include information such as a personal information processor, a personal information processing purpose, a processing mode, and a type of personal information to be processed.
The foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the improvement of technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (9)

1. A method for device performance detection, the method comprising:
acquiring data to be detected and a first performance detection result corresponding to the data to be detected; the first performance detection result is a performance detection result obtained by processing the data to be detected through preset equipment;
processing the data to be detected through equipment to be detected to obtain a second performance detection result corresponding to the equipment to be detected; wherein the equipment to be detected is heterogeneous equipment;
generating a performance detection report corresponding to the equipment to be detected according to the first performance detection result and the second performance detection result; the performance detection report is used for positioning performance bottlenecks of equipment to be detected relative to preset equipment;
The generating the performance detection report according to the first performance detection result and the second performance detection result includes:
determining a first result to be compared in the first performance detection result; the first to-be-compared result is any one to-be-compared result in the first performance detection result;
matching the first comparison result with a plurality of candidate comparison results in the second performance detection result;
under the condition that the first to-be-compared results are successfully matched, taking the first to-be-compared results and the second to-be-compared results as a comparison group, and updating a performance detection report according to the comparison group until each to-be-compared result in the first performance detection results is matched; and the second comparison result is a candidate comparison result which is successfully matched with the first comparison result in the second performance detection result.
2. The method of claim 1, wherein updating the performance test report based on the control group comprises:
acquiring hardware information of the equipment to be detected corresponding to the comparison group and hardware information of the preset equipment corresponding to the comparison group;
And taking the comparison group, the hardware information of the equipment to be detected corresponding to the comparison group and the hardware information of the preset equipment corresponding to the comparison group as a group of data, and adding the data into a performance detection report.
3. The method of claim 1, wherein updating the performance test report based on the control group comprises:
and under the condition that the difference value between the first to-be-compared result and the second to-be-compared result in the comparison group is larger than the preset threshold value corresponding to the comparison group, generating the identification corresponding to the comparison group, and adding the identification corresponding to the comparison group and the identification corresponding to the comparison group into a performance detection report.
4. The method of claim 1, wherein updating the performance test report based on the control group comprises at least one of:
under the condition that the first to-be-compared result in the control group is better than the second to-be-compared result in the control group, generating a first identifier corresponding to the control group, and adding the control group and the first identifier corresponding to the control group into a performance detection report;
generating a second identifier corresponding to the control group under the condition that the first to-be-compared result in the control group is inferior to the second to-be-compared result in the control group, and adding the control group and the second identifier corresponding to the control group into a performance detection report; wherein the first identifier is different from the second identifier.
5. The method of claim 1, wherein the first performance test result and the second performance test result comprise at least one of: the method comprises the steps of consuming time for calling an application programming interface of the heterogeneous device, consuming time for copying a video memory of a display card in the heterogeneous device and consuming time for executing a preset operator of the display card.
6. The method according to any one of claims 1 to 5, wherein the processing, by the device to be detected, the data to be detected to obtain a second performance detection result corresponding to the device to be detected includes:
acquiring a container corresponding to equipment to be detected; the container is used for providing a system environment required by the equipment to be detected in performance detection;
and processing the data to be detected by the equipment to be detected in the container corresponding to the equipment to be detected to obtain a second performance detection result corresponding to the equipment to be detected.
7. A device performance detection apparatus, the apparatus comprising:
the parameter acquisition module is used for acquiring data to be detected and a first performance detection result corresponding to the data to be detected; the first performance detection result is a performance detection result obtained by processing the data to be detected through preset equipment;
The detection result generation module is used for processing the data to be detected through equipment to be detected to obtain a second performance detection result corresponding to the equipment to be detected; wherein the equipment to be detected is heterogeneous equipment;
the performance detection report generation module is used for generating a performance detection report corresponding to the equipment to be detected according to the first performance detection result and the second performance detection result; the performance detection report is used for positioning performance bottlenecks of equipment to be detected relative to preset equipment;
the generating the performance detection report according to the first performance detection result and the second performance detection result includes:
determining a first result to be compared in the first performance detection result; the first to-be-compared result is any one to-be-compared result in the first performance detection result;
matching the first comparison result with a plurality of candidate comparison results in the second performance detection result;
under the condition that the first to-be-compared results are successfully matched, taking the first to-be-compared results and the second to-be-compared results as a comparison group, and updating a performance detection report according to the comparison group until each to-be-compared result in the first performance detection results is matched; and the second comparison result is a candidate comparison result which is successfully matched with the first comparison result in the second performance detection result.
8. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to invoke the instructions stored in the memory to perform the device performance detection method of any of claims 1 to 6.
9. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the device performance detection method of any of claims 1 to 6.
CN202310317568.5A 2023-03-29 2023-03-29 Device performance detection method and device, electronic device and storage medium Active CN116048945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310317568.5A CN116048945B (en) 2023-03-29 2023-03-29 Device performance detection method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310317568.5A CN116048945B (en) 2023-03-29 2023-03-29 Device performance detection method and device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN116048945A CN116048945A (en) 2023-05-02
CN116048945B true CN116048945B (en) 2023-06-23

Family

ID=86131611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310317568.5A Active CN116048945B (en) 2023-03-29 2023-03-29 Device performance detection method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN116048945B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013026312A1 (en) * 2011-08-23 2013-02-28 中兴通讯股份有限公司 Alarming method and system based on log detection
WO2021168733A1 (en) * 2020-02-27 2021-09-02 京东方科技集团股份有限公司 Defect detection method and apparatus for defect image, and computer-readable storage medium
CN114461863A (en) * 2021-12-29 2022-05-10 浙江大华技术股份有限公司 Intelligent equipment abnormality detection method and device, electronic device and storage medium
CN115690102A (en) * 2022-12-29 2023-02-03 摩尔线程智能科技(北京)有限责任公司 Defect detection method, defect detection apparatus, electronic device, storage medium, and program product
CN115827435A (en) * 2022-11-08 2023-03-21 华润数字科技有限公司 Front-end performance testing method, electronic device and computer-readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844119A (en) * 2017-01-25 2017-06-13 郑州云海信息技术有限公司 A kind of detection method of equipment, device and system
CN110674009B (en) * 2019-09-10 2022-10-28 平安普惠企业管理有限公司 Application server performance monitoring method and device, storage medium and electronic equipment
CN113328902B (en) * 2020-02-29 2023-10-24 华为技术有限公司 Network performance detection method and device and network equipment
CN113032232B (en) * 2021-03-09 2023-06-20 广州虎牙科技有限公司 Correlation method, correlation device and equipment for performance detection of equipment
CN113114659B (en) * 2021-04-08 2022-12-23 深圳市元征科技股份有限公司 Diagnostic equipment detection method and device, terminal equipment and storage medium
CN115454794A (en) * 2022-08-25 2022-12-09 阿波罗智能技术(北京)有限公司 Risk detection method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013026312A1 (en) * 2011-08-23 2013-02-28 中兴通讯股份有限公司 Alarming method and system based on log detection
WO2021168733A1 (en) * 2020-02-27 2021-09-02 京东方科技集团股份有限公司 Defect detection method and apparatus for defect image, and computer-readable storage medium
CN114461863A (en) * 2021-12-29 2022-05-10 浙江大华技术股份有限公司 Intelligent equipment abnormality detection method and device, electronic device and storage medium
CN115827435A (en) * 2022-11-08 2023-03-21 华润数字科技有限公司 Front-end performance testing method, electronic device and computer-readable storage medium
CN115690102A (en) * 2022-12-29 2023-02-03 摩尔线程智能科技(北京)有限责任公司 Defect detection method, defect detection apparatus, electronic device, storage medium, and program product

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
异构存储***性能监测技术研究;李兆虎等;《计算机与现代化》(第01期);全文 *

Also Published As

Publication number Publication date
CN116048945A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN111310934B (en) Model generation method and device, electronic equipment and storage medium
US9990209B2 (en) Digital assistance device for facilitating multi-stage setup
US20200410213A1 (en) Method and apparatus for processing mouth image
CN111026645A (en) User interface automatic testing method and device, storage medium and electronic equipment
CN113138927B (en) Software function test method and device
US20180275957A1 (en) Assistive technology for code generation using voice and virtual reality
CN113485880A (en) Test method and device
CN113377653B (en) Method and device for generating test cases
CN110908922A (en) Application program testing method and device
JP2021006982A (en) Method and device for determining character color
CN114594963A (en) Model deployment method and device, electronic equipment and storage medium
CN113923474A (en) Video frame processing method and device, electronic equipment and storage medium
CN116048945B (en) Device performance detection method and device, electronic device and storage medium
CN116662193A (en) Page testing method and device
CN114880422B (en) Interest point information processing method based on robot process automation and related device
CN116701143A (en) Performance analysis method, device, system, computing equipment and storage medium
CN115758005A (en) Large-screen image processing method, device and medium
CN115062571A (en) Dynamic selection method, system, equipment and computer readable storage medium for data area of integrated circuit device
CN114968455B (en) Report generation method and device of application interface and electronic equipment
US11307851B2 (en) Systems and methods for software self-healing using autonomous decision engines
CN115098394A (en) Test method, test device, electronic equipment and computer readable medium
CN113342633B (en) Performance test method and device
CN114064002A (en) Software development kit generation method, device, equipment and storage medium
CN116701146A (en) Performance analysis method, device, system, computing equipment and storage medium
CN116701145A (en) Performance analysis method, device, system, computing equipment and storage medium

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