A computing performance testing method, device, electronic device and storage medium

By using the backtracking method on electronic devices to search from the preset starting point to the end point and counting the search times, the problem that the existing technology cannot measure the ability to solve complex mathematical problems is solved, and an effective evaluation of the computing performance of electronic devices is achieved.

CN112486793BActive Publication Date: 2024-11-22BEIJING ANTUTU TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011518061.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-21
Publication Date
2024-11-22
Estimated Expiration
2040-12-21

AI Technical Summary

Technical Problem

Existing computing performance testing methods cannot effectively measure the ability of electronic devices to solve complex mathematical problems, especially using backtracking methods to search solutions on planes and three-dimensional planes that meet specific conditions.

Method used

By obtaining the preset backtracking starting point, backtracking end point and backtracking map, the backtracking method is used to search from the starting point to the end point, and the total number of searches is counted within the preset time, the calculation performance test results are determined based on the total number, and the processor performance parameters are used to select suitable map structure to suit different performance equipment.

Benefits of technology

The performance test of electronic devices in solving complex mathematical problems is realized, which can intuitively reflect the device's search ability in a specific time, thereby evaluating its computing performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112486793B_ABST
    Figure CN112486793B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a computing performance test method, device, electronic device and storage medium, which obtains a preset backtracking starting point, backtracking end point and backtracking map, and uses the backtracking method to search from the backtracking starting point to the backtracking end point according to the backtracking map, and counts the total number of searches completed from the backtracking starting point to the backtracking end point within a preset time length, and determines the computing performance test result based on the total number. The backtracking method is used to search from the backtracking starting point to the backtracking end point, and the total number of searches completed from the backtracking starting point to the backtracking end point within a preset time length is counted, which can test the ability of the electronic device to search using the backtracking method, that is, how many searches can be completed within a period of time, and the search results from the backtracking starting point to the backtracking end point are obtained, thereby realizing the performance test of the electronic device in solving complex mathematical problems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a computing performance testing method, device, electronic equipment and storage medium. Background Art

[0002] With the development of technology, the functions of electronic devices such as mobile phones, laptops, and tablets are becoming increasingly powerful. At present, various application software are constantly emerging, and numerous programs and services have put forward higher requirements on the computing performance of electronic devices. The stronger the computing performance of electronic devices, the faster the electronic devices can run application software.

[0003] At present, in order to let users better understand the computing performance of electronic devices, technicians have developed evaluation software (also known as "benchmarking" software). When this evaluation software is run on an electronic device, it can test the computing performance of the electronic device through certain test methods and inform the user of the test results, thereby helping the user understand the computing performance of the electronic device.

[0004] The current computing performance test method is to test the performance of electronic devices running application software, and the output is the performance test results of electronic devices running application software. However, in actual applications, electronic devices are more often used to solve complex mathematical problems, such as using backtracking to search for solutions that meet specific conditions on planes and three-dimensional surfaces. The current computing performance test method cannot measure the ability of electronic devices to solve complex mathematical problems. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a computing performance testing method, device, electronic device and storage medium to implement performance testing of electronic devices in solving complex mathematical problems. The specific technical solution is as follows:

[0006] In a first aspect, an embodiment of the present invention provides a computing performance testing method, the method comprising:

[0007] Get the preset backtracking starting point, backtracking end point and backtracking map;

[0008] According to the backtracking map, the backtracking method is used to search from the backtracking starting point to the backtracking end point;

[0009] Count the total number of searches completed from the backtracking start point to the backtracking end point within the preset time;

[0010] Based on the total number, determine the computing performance test results.

[0011] Optionally, the step of obtaining a preset backtracking map includes:

[0012] Get processor performance parameters;

[0013] From multiple preset backtrace maps, select a backtrace map that meets the processor performance parameters.

[0014] Optionally, the step of searching from the backtracking starting point to the backtracking end point using the backtracking method according to the backtracking map includes:

[0015] Start from the backtracking starting point and search in all directions of the backtracking map;

[0016] If the current position searched is neither an obstacle nor a visited point, the current position is added to the visited points, where the visited points are used to record the positions that have been searched;

[0017] If the current position is not the backtracking end point, continue searching in all directions of the backtracking map;

[0018] If the current position is the end point of the backtracking, the current position is moved out of the visited points so that the position that is one step back is searched from other directions of the backtracking map to the end point of the backtracking.

[0019] Optionally, before the step of searching from the backtracking starting point to the backtracking end point using the backtracking method according to the backtracking map, the method further includes:

[0020] Start the timer and clear the counter to zero;

[0021] Clear the visited points;

[0022] The steps for counting the total number of searches completed from the backtracking start point to the backtracking end point within a preset time period include:

[0023] If the current position searched is the backtracking end point, the value of the counter is incremented by 1;

[0024] If the timer duration does not reach the preset duration, return to the step of clearing the visited points;

[0025] If the timing duration of the timer reaches the preset duration, the total number of searches completed from the backtracking starting point to the backtracking end point within the preset duration is read from the counter.

[0026] Optionally, the step of determining the computing performance test result based on the total quantity includes:

[0027] Calculate the average search speed based on the total number and preset duration;

[0028] Based on the average search speed, the computing performance test result is determined, wherein the computing performance test result is a test score, and the test score is proportional to the average search speed.

[0029] Optionally, after the step of determining the computing performance test result based on the total number, the method further comprises:

[0030] Output the computing performance test results to the test interface.

[0031] In a second aspect, an embodiment of the present invention provides a computing performance testing device, the device comprising:

[0032] An acquisition module is used to obtain a preset backtracking starting point, backtracking end point and backtracking map;

[0033] A search module is used to search from the backtracking starting point to the backtracking end point using the backtracking method according to the backtracking map;

[0034] A statistics module is used to count the total number of searches completed from the backtracking start point to the backtracking end point within a preset time;

[0035] The determination module is used to determine the computing performance test result based on the total quantity.

[0036] Optionally, the acquisition module is specifically used to obtain processor performance parameters; and select a backtracking map that meets the processor performance parameters from multiple pre-set backtracking maps.

[0037] Optionally, a search module is specifically used to start from the backtracking starting point and search in all directions of the backtracking map; if the current position searched is neither an obstacle nor a visited point, the current position is added to the visited points, where the visited points are used to record the positions that have been searched; if the current position is not the backtracking end point, the search in all directions of the backtracking map continues; if the current position is the backtracking end point, the current position is removed from the visited points so that the position that goes back one step is searched from other directions of the backtracking map to the backtracking end point.

[0038] Optionally, the device further comprises:

[0039] A start module is used to start the timer and clear the counter;

[0040] A clearing module is used to clear the visited points;

[0041] The statistical module is specifically used to add 1 to the counter value if the current position searched is the backtracking end point; if the timing duration of the timer does not reach the preset duration, return to execute the step of clearing the visited points; if the timing duration of the timer reaches the preset duration, read from the counter the total number of searches completed from the backtracking starting point to the backtracking end point within the preset duration.

[0042] Optionally, a determination module is specifically used to calculate the average search speed based on the total number and the preset duration; based on the average search speed, an operation performance test result is determined, wherein the operation performance test result is a test score, and the test score is proportional to the average search speed.

[0043] Optionally, the device further comprises:

[0044] The output module is used to output the computing performance test results to the test interface.

[0045] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory is used to store a computer program; and the processor is used to implement the method provided in the first aspect of the embodiment of the present invention when executing the computer program stored in the memory.

[0046] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method provided in the first aspect of the embodiment of the present invention is implemented.

[0047] In a fifth aspect, an embodiment of the present invention further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method provided in the first aspect of the embodiment of the present invention.

[0048] Beneficial effects of the embodiments of the present invention:

[0049] In the solution provided by the embodiment of the present invention, by obtaining the preset backtracking starting point, backtracking end point and backtracking map, the backtracking method is used to search from the backtracking starting point to the backtracking end point according to the backtracking map, and the total number of searches completed from the backtracking starting point to the backtracking end point within the preset time length is counted, and the computing performance test result is determined based on the total number. The backtracking method is used to search from the backtracking starting point to the backtracking end point, and the total number of searches completed from the backtracking starting point to the backtracking end point within the preset time length is counted, which can test the ability of the electronic device to search using the backtracking method, that is, how many searches can be completed within a period of time to obtain the search results from the backtracking starting point to the backtracking end point, thereby realizing the performance test of the electronic device in solving complex mathematical problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0051] Figure 1 A schematic diagram of a flow chart of a computing performance testing method according to an embodiment of the present invention;

[0052] Figure 2 A schematic diagram of a flow chart of another computing performance testing method according to an embodiment of the present invention;

[0053] Figure 3 A schematic diagram of the structure of a computing performance testing device according to an embodiment of the present invention;

[0054] Figure 4 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] In order to implement performance testing of electronic devices in solving complex mathematical problems, an embodiment of the present invention provides a computing performance testing method, device, electronic device and storage medium. Below, the computing performance testing method provided by the embodiment of the present invention is first introduced.

[0057] The execution subject of the computing performance testing method provided in the embodiment of the present invention is: an electronic device with mathematical computing capabilities, such as a mobile phone, a laptop computer, a tablet computer, a PC (Personal Computer), etc.

[0058] like Figure 1 As shown, a computing performance testing method provided by an embodiment of the present invention may include the following steps.

[0059] S101, obtaining a preset backtracking starting point, a backtracking end point, and a backtracking map.

[0060] S102, based on the backtracking map, use the backtracking method to search from the backtracking starting point to the backtracking end point.

[0061] S103, counting the total number of searches completed from the backtracking starting point to the backtracking end point within a preset time period.

[0062] S104, determining a computing performance test result based on the total number.

[0063] By applying the embodiment of the present invention, by obtaining the preset backtracking starting point, backtracking end point and backtracking map, the backtracking method is used to search from the backtracking starting point to the backtracking end point according to the backtracking map, and the total number of searches completed from the backtracking starting point to the backtracking end point within the preset time length is counted, and the computing performance test result is determined based on the total number. By using the backtracking method to search from the backtracking starting point to the backtracking end point, the total number of searches completed from the backtracking starting point to the backtracking end point within the preset time length is counted, and the ability of the electronic device to search using the backtracking method can be tested, that is, how many searches can be completed within a period of time to obtain the search results from the backtracking starting point to the backtracking end point, thereby realizing the performance test of the electronic device in solving complex mathematical problems.

[0064] In the embodiment of the present invention, the backtracking method is used to search to solve the complex mathematical problem of searching for solutions that meet specific conditions on the plane and three-dimensional surface. The backtracking method is a kind of optimization search method, also known as the trial and error method, which searches forward according to the optimization conditions to achieve the goal. When searching to a certain step, it is found that the original choice is not optimal or cannot reach the goal, so it is retreated one step and re-selected. This technique of retreating and then going again when it fails is called the backtracking method, and the point of a certain state that meets the backtracking condition becomes the backtracking point. Below, several concepts in the backtracking method are introduced.

[0065] Backtracking starting point: The starting point when starting a search. If the search has not started, it will remain at this point.

[0066] Backtracking end point: The location of the search target. After the search is completed, stay at this point.

[0067] Backtracking map: Contains the map layout information to be searched, that is, a table of obstacle information, indicating which locations are obstacles. Obstacles are represented as 1, and no obstacles are represented as 0.

[0068] Visited point: indicates the position that has been searched, that is, the information point that has been discovered. Each time a search is performed, a position is changed, which can be understood as moving to the next square on the chessboard. This new position becomes the information point that has been discovered. These discovered information points are recorded as visited points, and the visited points can be a stack structure.

[0069] In summary, the backtracking starting point, the backtracking end point and the backtracking map are inputs for searching using the backtracking method, and the backtracking starting point, the backtracking end point and the backtracking map may be manually preset or may be pre-generated by an electronic device.

[0070] In an implementation of the embodiment of the present invention, the method of obtaining a preset backtracking map may specifically be: obtaining processor performance parameters; and selecting a backtracking map that meets the processor performance parameters from a plurality of preset backtracking maps.

[0071] For the same mathematical operation scenario, multiple backtracking maps can be pre-set, for example, 10-order, 20-order, and 30-order backtracking maps can be set. When actually selecting which backtracking map to use, you can choose according to the processor performance parameters. The processor performance parameters refer to the attribute parameters that can reflect the processing power of the processor, usually including the number of CPU (Central Processing Unit) cores and frequency. The larger the processor performance parameters (for example, the larger the number of CPU cores, the higher the frequency, etc.), the stronger the processor's ability to perform mathematical operations. Correspondingly, the larger the processor performance parameters, the more complex the selected backtracking map can be, that is, the higher the order, and vice versa. Therefore, by selecting the backtracking map according to the processor performance parameters, you can flexibly adjust the map structure to be searched, appropriately increase or decrease the complexity, and be able to flexibly adapt to electronic devices with different performances.

[0072] After obtaining the backtracking starting point, backtracking end point and backtracking map, the backtracking method can be used to search from the backtracking starting point to the backtracking end point based on the backtracking map.

[0073] Specifically, S102 may be as follows: starting from the backtracking starting point, searching in all directions of the backtracking map; if the current position searched is neither an obstacle nor a visited point, adding the current position to the visited points, wherein the visited points are used to record the positions that have been searched; if the current position is not the backtracking end point, continuing to search in all directions of the backtracking map; if the current position is the backtracking end point, removing the current position from the visited points, so that the position that is one step back is searched from other directions of the backtracking map to the backtracking end point.

[0074] The specific process of searching using the backtracking method is as follows: locate the backtracking starting point, search in all directions of the backtracking map from the backtracking starting point, that is, search to the left, top, and lower right of the backtracking starting point respectively; determine whether the current position searched is an obstacle or belongs to a visited point. If the current position is neither an obstacle nor a visited point, add the current position to the visited points. If the current position is an obstacle or belongs to a visited point, exit this step; determine whether the current position searched is the backtracking end point. If the current position is not the backtracking end point, continue to search in all directions of the backtracking map, that is, search to the left, top, and lower right of the current position respectively to find the next position. If the current position is the backtracking end point, move the current position out of the visited points so that the position that goes back one step is searched from other directions of the backtracking map to the backtracking end point. This ensures that all paths between the backtracking starting point and the backtracking end point can be searched. The visited points may adopt a first-in-last-out stack structure, so when the current position is moved out of the visited points, a stack pop operation may be directly performed to move the current position out of the visited points.

[0075] In an implementation manner of the embodiment of the present invention, before executing S102, the method may further execute: starting a timer and clearing the counter; and clearing the visited points.

[0076] Correspondingly, S103 can be specifically as follows: if the current position searched is the backtracking end point, the value of the counter is incremented by 1; if the timing duration of the timer has not reached the preset duration, return to execute the step of clearing the visited points; if the timing duration of the timer reaches the preset duration, the total number of searches completed from the backtracking starting point to the backtracking end point within the preset duration is read from the counter.

[0077] In the embodiment of the present invention, a timer may be used to record the duration of the computing performance test, and a counter may be used to record the number of searches completed from the backtracking starting point to the backtracking end point. After each search is completed, the value recorded by the counter is accumulated by 1. In addition, before each search, the visited points need to be cleared to ensure that the visited points only record the locations found in this search.

[0078] If after a search, the timer has not reached the preset time, the search should continue. Since the backtracking starting point, backtracking end point and backtracking map of the backtracking method are fixed, it is necessary to return to the step of clearing the visited points. If the timer reaches the preset time, the search should be stopped, and the computing performance test result is determined based on the total number of searches completed from the backtracking starting point to the backtracking end point recorded in the counter. Similar to the search map, the preset time can also be pre-set based on the processor performance parameters. That is, based on the processor performance parameters, the value of the preset time can also be flexibly adjusted to adapt to electronic devices with different performance.

[0079] The electronic device continuously uses the backtracking method to search from the backtracking starting point to the backtracking end point, and counts the number of completed searches. The computing performance of the electronic device is reflected in the total number of searches that can be completed from the backtracking starting point to the backtracking end point within the working time (i.e., the preset time). The more the total number of searches that can be completed from the backtracking starting point to the backtracking end point within the working time, the better the computing performance of the electronic device. In an embodiment of the present invention, it is necessary to count the total number of searches completed from the backtracking starting point to the backtracking end point within the preset time, and the computing performance test result can be determined based on the total number obtained by statistics. The specific statistical process is to add 1 to the number of searches each time the search process from the backtracking starting point to the backtracking end point is completed. The determined computing performance test result can be a specific scoring score, or a result indicating the performance level such as excellent, good, medium, or poor. The total number obtained by statistics can also be directly used as the computing performance test result, which is not specifically limited here.

[0080] In practical applications, the computing performance test results are generally fed back to users. In order to facilitate users to more intuitively see the quality of the computing performance of electronic devices, the computing performance test results are usually set as test scores. Accordingly, S104 can specifically be: calculating the average search speed according to the total number and the preset time; determining the computing performance test results based on the average search speed, wherein the computing performance test results are test scores, and the test scores are proportional to the average search speed.

[0081] The average search speed refers to the number of searches that the electronic device can complete from the backtracking starting point to the backtracking end point in a unit of time. When the test starts, the start time can be recorded, and when the preset time is reached, the end time can be recorded. Then the average search speed = total number / (end time-start time), or the total number can be directly divided by the preset time to obtain the average search speed. There is a positive proportional relationship between the test score and the average search speed. That is, the faster the average search speed, the better the computing performance of the electronic device, and a higher test score can be assigned accordingly. In specific applications, the full score of the test score can be set to 10 points or 100 points. When the test score is assigned based on the average search speed, it can be assigned within the range of 0 points to the full score.

[0082] based on Figure 1 In the embodiment shown, another computing performance testing method provided by the embodiment of the present invention is as follows: Figure 2 As shown, the following steps may be included.

[0083] S201, obtaining a preset backtracking starting point, a backtracking end point, and a backtracking map.

[0084] S202, based on the backtracking map, use the backtracking method to search from the backtracking starting point to the backtracking end point.

[0085] S203, counting the total number of searches completed from the backtracking starting point to the backtracking end point within a preset time period.

[0086] S204, determining a computing performance test result based on the total number.

[0087] S205, outputting the computing performance test results to the test interface.

[0088] In passing Figure 1 After the method of the illustrated embodiment determines the running performance test result, the obtained computing performance test result can be output to the test interface, which is a manual interaction interface. In this way, the user can intuitively see from the test interface the performance of the electronic device in solving complex mathematical problems, especially the performance of using the backtracking method to search for solving mathematical problems. Furthermore, if the computing performance test result of the electronic device is very good, the electronic device can be selected to process more complex mathematical problems.

[0089] For ease of understanding, the computing performance testing method provided by the embodiment of the present invention is introduced below in conjunction with a specific example. Taking the use of AnTuTu evaluation software to evaluate a PC as an example, the AnTuTu evaluation software uses the backtracking search performance test as a test item of the performance evaluation.

[0090] First, the user manually opens the AnTuTu testing software and clicks the test button to start the test.

[0091] Secondly, run the computing performance test method:

[0092] The first step is to enter the backtracking starting point, backtracking end point, backtracking map, and timeout (i.e. preset duration).

[0093] The second step is to start the timer, record the start time, and clear the counter C=0.

[0094] The third step is to clear the visited points. The visited points store the information points that have been explored, which is a first-in, last-out stack structure.

[0095] The fourth step is to start searching using the backtracking method. The backtracking method is as follows:

[0096] (1) Locate the backtracking starting point.

[0097] (2) Determine whether the current location is an obstacle or a visited point. If yes, exit this step; if no, proceed to step (3).

[0098] (3) Add the current location to the visited points.

[0099] (4) Determine whether the current position is the backtracking end point. If not, execute step (5). If so, add 1 to the counter and continue to execute step (6).

[0100] (5) Start searching from the current position in the four directions of the backtracking map, i.e., search to the left, top, right, and bottom. This step is a recursive operation that starts backtracking from the new position.

[0101] (6) Move the current position out of the visited points (because the visited points are a stack structure, you only need to pop the stack).

[0102] Step 5: Determine whether the timeout period has been reached. If not, continue with step 3. If it has been reached, end this step and record the end time.

[0103] Step 6. Calculate the average search speed: Average search speed = total number / (end time - start time).

[0104] Step 7: Output the computing performance test result to the test interface, wherein the computing performance test result is a test score determined based on the average search speed.

[0105] Finally, check out the results of the evaluation:

[0106] 1) Total processor performance score

[0107] 2) Common algorithms used by processors

[0108] 3) Processor single core performance

[0109] 4) Processor multi-core performance

[0110] Among them, the processor single-core performance test item includes the computing performance test method of the present invention.

[0111] Based on the above method embodiment, the present invention provides a computing performance testing device, such as Figure 3 As shown, the device may include:

[0112] An acquisition module 310 is used to acquire a preset backtracking starting point, a backtracking end point, and a backtracking map;

[0113] A search module 320 is used to search from a backtracking starting point to a backtracking end point using a backtracking method according to a backtracking map;

[0114] A statistics module 330 is used to count the total number of searches completed from the backtracking starting point to the backtracking end point within a preset time period;

[0115] The determination module 340 is used to determine the computing performance test result based on the total number.

[0116] Optionally, the acquisition module 310 may be specifically configured to acquire processor performance parameters; and select a backtracking map that satisfies the processor performance parameters from a plurality of pre-set backtracking maps.

[0117] Optionally, the search module 320 can be specifically used to start from the backtracking starting point and search in all directions of the backtracking map; if the current position searched is neither an obstacle nor a visited point, the current position is added to the visited points, where the visited points are used to record the positions that have been searched; if the current position is not the backtracking end point, the search in all directions of the backtracking map continues; if the current position is the backtracking end point, the current position is removed from the visited points so that the position that is one step back is searched from other directions of the backtracking map to the backtracking end point.

[0118] Optionally, the device may further include:

[0119] A start module is used to start the timer and clear the counter;

[0120] A clearing module is used to clear the visited points;

[0121] The statistical module 330 can be specifically used to add 1 to the value of the counter if the current position searched is the backtracking end point; if the timing duration of the timer has not reached the preset duration, return to execute the step of clearing the visited points; if the timing duration of the timer reaches the preset duration, read from the counter the total number of searches completed from the backtracking starting point to the backtracking end point within the preset duration.

[0122] Optionally, the determination module 340 can be specifically used to calculate the average search speed based on the total number and the preset duration; based on the average search speed, determine the computing performance test result, wherein the computing performance test result is a test score, and the test score is proportional to the average search speed.

[0123] Optionally, the device may further include:

[0124] The output module is used to output the computing performance test results to the test interface.

[0125] By applying the embodiment of the present invention, by obtaining the preset backtracking starting point, backtracking end point and backtracking map, the backtracking method is used to search from the backtracking starting point to the backtracking end point according to the backtracking map, and the total number of searches completed from the backtracking starting point to the backtracking end point within the preset time length is counted, and the computing performance test result is determined based on the total number. By using the backtracking method to search from the backtracking starting point to the backtracking end point, the total number of searches completed from the backtracking starting point to the backtracking end point within the preset time length is counted, and the ability of the electronic device to search using the backtracking method can be tested, that is, how many searches can be completed within a period of time to obtain the search results from the backtracking starting point to the backtracking end point, thereby realizing the performance test of the electronic device in solving complex mathematical problems.

[0126] The embodiment of the present invention further provides an electronic device, such as Figure 4 As shown, it includes a processor 401 and a memory 402, wherein the memory 402 is used to store computer programs; the processor 401 is used to implement the above-mentioned computing performance testing method when executing the computer program stored in the memory 402.

[0127] The memory may include a RAM (Random Access Memory), or may include a NVM (Non-volatile Memory), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor.

[0128] The above-mentioned processor can be a general-purpose processor, including CPU, NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0129] In this embodiment, the processor can achieve the following by reading the computer program stored in the memory and running the computer program: by obtaining the preset backtracking starting point, backtracking end point and backtracking map, searching from the backtracking starting point to the backtracking end point using the backtracking method according to the backtracking map, counting the total number of searches completed from the backtracking starting point to the backtracking end point within the preset time, and determining the computing performance test result based on the total number. By using the backtracking method to search from the backtracking starting point to the backtracking end point, counting the total number of searches completed from the backtracking starting point to the backtracking end point within the preset time, the ability of the electronic device to search using the backtracking method can be tested, that is, how many searches can be completed within a period of time, and the search results from the backtracking starting point to the backtracking end point are obtained, thereby achieving the performance test of the electronic device in solving complex mathematical problems.

[0130] In addition, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the above-mentioned computing performance testing method is implemented.

[0131] In this embodiment, the computer-readable storage medium stores a computer program that executes the computing performance test method provided by the embodiment of the present invention at runtime, so that it can be achieved: by obtaining the preset backtracking starting point, backtracking end point and backtracking map, according to the backtracking map, using the backtracking method to search from the backtracking starting point to the backtracking end point, counting the total number of searches completed from the backtracking starting point to the backtracking end point within the preset time length, and determining the computing performance test result based on the total number. Using the backtracking method to search from the backtracking starting point to the backtracking end point, counting the total number of searches completed from the backtracking starting point to the backtracking end point within the preset time length, it is possible to test the ability of the electronic device to search using the backtracking method, that is, how many searches can be completed within a period of time, and obtain the search results from the backtracking starting point to the backtracking end point, thereby achieving the performance test of the electronic device in solving complex mathematical problems.

[0132] In another embodiment of the present invention, a computer program product including instructions is provided, which enables the computer to execute the above-mentioned computing performance testing method when it is run on a computer.

[0133] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, DSL (Digital Subscriber Line, digital subscriber line)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD (Digital Versatile Disc)), or a semiconductor medium (such as an SSD (Solid State Disk)).

[0134] As for the computing performance testing device, electronic device, computer-readable storage medium and computer program product embodiments, since the method contents involved are basically similar to the aforementioned method embodiments, the description is relatively simple and the relevant parts can be referred to the partial description of the method embodiments.

[0135] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0136] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computing performance test device, electronic device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0137] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A computing performance testing method, characterized in that: The method comprises: Get the preset backtracking starting point, backtracking end point and backtracking map; According to the backtracking map, a backtracking method is used to search from the backtracking starting point to the backtracking end point; Count the total number of searches completed from the backtracking starting point to the backtracking end point within a preset time period; Determining a computing performance test result based on the total number; Before the step of searching from the backtracking starting point to the backtracking end point using a backtracking method according to the backtracking map, the method further includes: Start the timer and clear the counter to zero; Clearing visited points, wherein the visited points are used to record locations that have been searched; The step of counting the total number of searches completed from the backtracking starting point to the backtracking end point within a preset time period includes: If the current position found is the backtracking end point, the value of the counter is incremented by 1; If the timing duration of the timer does not reach the preset duration, returning to the step of clearing the visited points; If the timing duration of the timer reaches the preset duration, the total number of searches completed from the backtracking starting point to the backtracking end point within the preset duration is read from the counter.

2. The method according to claim 1, characterized in that The step of obtaining a preset backtracking map includes: Get processor performance parameters; A backtracking map that meets the processor performance parameter is selected from a plurality of preset backtracking maps.

3. The method according to claim 1, characterized in that The step of searching from the backtracking starting point to the backtracking end point using a backtracking method according to the backtracking map includes: Starting from the backtracking starting point, searching in all directions of the backtracking map; If the current location found is neither an obstacle nor a visited point, the current location is added to the visited points; If the current position is not the backtracking end point, continue searching in all directions of the backtracking map; If the current position is the backtracking end point, the current position is moved out of the visited point so that a position one step back is searched from other directions of the backtracking map to the backtracking end point.

4. The method according to claim 1, wherein The step of determining the computing performance test result based on the total number includes: Calculating an average search speed based on the total number and the preset time duration; Based on the average search speed, an operation performance test result is determined, wherein the operation performance test result is a test score, and the test score is proportional to the average search speed.

5. The method according to any one of claims 1 to 4, characterized in that After the step of determining a computing performance test result based on the total number, the method further includes: The computing performance test results are output to the test interface.

6. A computing performance testing device, characterized in that: The device comprises: An acquisition module is used to obtain a preset backtracking starting point, backtracking end point, and backtracking map; A search module, configured to search from the backtracking starting point to the backtracking end point using a backtracking method according to the backtracking map; A statistics module, used to count the total number of searches completed from the backtracking starting point to the backtracking end point within a preset time period; a determination module, configured to determine a computing performance test result based on the total number; The device further comprises: The start module is used to start the timer and clear the counter; a clearing module, configured to clear visited points, wherein the visited points are used to record locations that have been searched; The statistical module is specifically used to add 1 to the value of the counter if the current position searched is the backtracking end point; return to the reset module if the timing duration of the timer does not reach the preset duration; if the timing duration of the timer reaches the preset duration, read from the counter the total number of searches completed from the backtracking starting point to the backtracking end point within the preset duration.

7. The device according to claim 6, characterized in that The acquisition module is specifically configured to acquire processor performance parameters; and select a backtracking map that satisfies the processor performance parameters from a plurality of pre-set backtracking maps.

8. The device according to claim 6, characterized in that The search module is specifically configured to search in all directions of the backtracking map starting from the backtracking starting point; if the current position found is neither an obstacle nor a visited point, the current position is added to the visited points; If the current position is not the backtracking end point, continue searching in all directions of the backtracking map; if the current position is the backtracking end point, move the current position out of the visited point so that the position that goes back one step is searched from other directions of the backtracking map to the backtracking end point.

9. The device according to claim 6, characterized in that The determination module is specifically used to calculate the average search speed based on the total number and the preset time length; based on the average search speed, determine the computing performance test result, wherein the computing performance test result is a test score, and the test score is proportional to the average search speed.

10. The device according to any one of claims 6 to 9, characterized in that The device further comprises: The output module is used to output the computing performance test results to the test interface.

11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program; and the processor is used to implement the method according to any one of claims 1 to 5 when executing the computer program stored in the memory.

12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Database performance test system

    CN103425683A

  • Response time testing method and device, equipment and computer storage medium

    CN111858318A

  • A network performance testing method and the system, the device thereof

    WO2006105707A1