Performance test method, device and equipment for embedded multimedia card and storage medium
By conducting benchmarking and dynamic power adjustment on embedded multimedia cards, analyzing and optimizing the power outage notification mechanism, the problem of lack of effective testing methods in the existing technology is solved, and the rapid response and stability improvement of the equipment under different conditions is achieved.
Patent Information
- Application Number
- CN202510333911.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2025-07-04
AI Technical Summary
The prior art lacks a method to effectively test the power outage notification mechanism of embedded multimedia cards, resulting in the inability to optimize its response time and affect the performance and stability of the equipment.
By benchmarking the embedded multimedia card, dynamically adjusting the power supply strategy, analyzing the response performance of the power outage notification mechanism, and optimizing the power outage notification mechanism based on the performance analysis results, and generating a performance test report.
The response speed of the power outage notification mechanism of embedded multimedia cards is optimized, which improves the performance and stability of the equipment under different working conditions and improves the user experience.
Smart Images

Figure CN120260663A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of storage testing, and in particular to a method, device, equipment and storage medium for testing the performance of an embedded multimedia card. Background Art
[0002] An embedded Multi Media Card (eMMC) is a storage solution that integrates a flash memory and a controller. This integrated design not only simplifies the system design process but also significantly improves the speed and efficiency of data access. With the increasing popularity of embedded systems and mobile devices in modern life, eMMC has been widely used in smart phones, tablets, smart home devices and other various embedded systems due to its advantages of high performance, low power consumption, cost effectiveness, good compatibility and scalability.
[0003] The Power Off Notification (PON) mechanism of eMMC is used to notify the eMMC before the device is powered off, so that all unfinished operations can be completed before power off, thereby avoiding data loss and device damage. By optimizing the response time of PON, it can be ensured that the storage device can quickly enter the sleep state or be reawakened when the system needs it, thereby improving the performance of the entire device. However, there is a lack of an effective method for testing the PON of eMMC in existing technical solutions. Summary of the Invention
[0004] In view of the above deficiencies of the prior art, the present invention provides a method, device, equipment and storage medium for testing the performance of an embedded multimedia card, effectively solving the problem that there is a lack of an effective method for testing the power off notification mechanism of an embedded multimedia card in existing technical solutions.
[0005] In a first aspect, the present invention provides a method for testing the performance of an embedded multimedia card, the method comprising:
[0006] Performing a benchmark test on the embedded multimedia card to obtain benchmark performance data;
[0007] Dynamically adjusting the power supply during the read and write operations of the embedded multimedia card according to the benchmark performance data to obtain test performance data of different adjustment strategies;
[0008] Analyzing the response performance of the power off notification mechanism function of the embedded multimedia card according to the test performance data to obtain performance analysis results of different adjustment strategies;
[0009] Optimizing the power off notification mechanism of the embedded multimedia card according to the performance analysis results;
[0010] Test the optimized embedded multimedia card under various power fluctuation conditions to obtain a performance test report.
[0011] Furthermore, perform a benchmark test on the embedded multimedia card to obtain benchmark performance data, including:
[0012] Initialize the embedded multimedia card and configure its initial parameters;
[0013] Perform read and write tests on the embedded multimedia card under stable power conditions to obtain the benchmark response time and benchmark performance data.
[0014] Furthermore, dynamically adjust the power supply during the read and write operations of the embedded multimedia card according to the benchmark performance data, including:
[0015] Gradually adjust the power supply voltage during the read and write operations of the embedded multimedia card to simulate voltage fluctuations;
[0016] Quickly power on after power off during the read and write operations of the embedded multimedia card;
[0017] Slowly power on after power off during the read and write operations of the embedded multimedia card.
[0018] Furthermore, analyze the response performance of the power-off notification mechanism function of the embedded multimedia card according to the test performance data to obtain the performance analysis results of different adjustment strategies, including:
[0019] Obtain the power-off notification signal reception time and the embedded multimedia card preparation time according to the test performance data;
[0020] Calculate the response time according to the power-off notification signal reception time and the embedded multimedia card preparation time;
[0021] Analyze the performance of different adjustment strategies according to the response time to obtain the performance analysis results.
[0022] Furthermore, optimize the power-off notification mechanism of the embedded multimedia card according to the performance analysis results, including:
[0023] Adjust the response threshold of the power-off notification mechanism according to the wake-up rate of the embedded multimedia card;
[0024] Adjust the strength of the data protection strategy according to the data writing speed of the embedded multimedia card.
[0025] Furthermore, adjust the response threshold of the power-off notification mechanism according to the wake-up rate of the embedded multimedia card, including:
[0026] If the wake-up rate of the embedded multimedia card is greater than or equal to the first set threshold, increase the response threshold of the power-off notification mechanism;
[0027] If the wake-up rate of the embedded multimedia card is less than the first set threshold, decrease the response threshold of the power-off notification mechanism.
[0028] Further, adjusting the strength of the data protection policy according to the data writing speed of the embedded multimedia card includes:
[0029] If the data writing speed is less than the second set threshold, increase the data synchronization frequency of the embedded multimedia card;
[0030] If the data writing speed is greater than or equal to the second set threshold, decrease the data synchronization frequency of the embedded multimedia card.
[0031] In a second aspect, the present invention provides a performance testing device for an embedded multimedia card, the device includes:
[0032] A benchmark testing module for performing a benchmark test on the embedded multimedia card to obtain benchmark performance data;
[0033] A dynamic testing module for dynamically adjusting the power supply during the read and write operations of the embedded multimedia card according to the benchmark performance data to obtain test performance data of different adjustment strategies;
[0034] A performance analysis module for analyzing the response performance of the power-off notification mechanism function of the embedded multimedia card according to the test performance data to obtain performance analysis results of different adjustment strategies;
[0035] A parameter optimization module for optimizing the power-off notification mechanism of the embedded multimedia card according to the performance analysis results;
[0036] A performance testing module for testing the optimized embedded multimedia card under various power fluctuation conditions to obtain a performance test report.
[0037] In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the performance testing method for the embedded multimedia card as described in the first aspect of the present invention.
[0038] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the performance testing method for the embedded multimedia card as described in the first aspect of the present invention.
[0039] The performance testing method, device, electronic device, and storage medium of the embedded multimedia card provided by the present invention can dynamically adjust the test conditions and parameters according to real-time feedback, and can adjust the parameters to the optimal configuration in real time according to the test results, thereby reducing the response time of the power-off notification mechanism. By testing different parameter combinations, the power management and data transmission mechanisms of the embedded multimedia card can be optimized, thereby improving the response speed of the power-off notification mechanism. Dynamic testing can adapt to different workloads and environmental conditions, ensuring that the power-off notification mechanism can maintain the best performance in various situations, ensuring that the embedded multimedia card can provide a consistent response time and performance under different working conditions, thereby enhancing the user experience and making the embedded multimedia card more smooth and fast during user operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0041] Figure 1 It is the first schematic diagram of the performance testing method flow of the embedded multimedia card provided by the embodiment of the present invention;
[0042] Figure 2 It is the working flowchart of the hardware testing device in the embodiment of the present invention;
[0043] Figure 3 It is the second schematic diagram of the performance testing method flow of the embedded multimedia card provided by the embodiment of the present invention;
[0044] Figure 4 It is the third schematic diagram of the performance testing method flow of the embedded multimedia card provided by the embodiment of the present invention;
[0045] Figure 5 It is the fourth schematic diagram of the performance testing method flow of the embedded multimedia card provided by the embodiment of the present invention;
[0046] Figure 6 It is the fifth schematic diagram of the performance testing method flow of the embedded multimedia card provided by the embodiment of the present invention;
[0047] Figure 7 It is the sixth schematic diagram of the performance testing method flow of the embedded multimedia card provided by the embodiment of the present invention;
[0048] Figure 8 It is the seventh schematic diagram of the performance testing method flow of the embedded multimedia card provided by the embodiment of the present invention;
[0049] Figure 9 It is a schematic structural diagram of a performance testing device for an embedded multimedia card provided by an embodiment of the present invention;
[0050] Figure 10 It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
[0051] Main component symbol description:
[0052] 900, performance testing device for embedded multimedia card; 910, benchmark testing module; 920, dynamic testing module; 930, performance analysis module; 940, parameter optimization module; 950, performance testing module; 1000, electronic device; 1010, processor; 1020, communication interface; 1030, memory; 1040, communication bus. Detailed implementation manners
[0053] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be further described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. It should be noted that the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0054] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality of" means two or more unless otherwise specifically defined.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0056] The power-off notification mechanism (PON) of eMMC is used to notify eMMC before the device is powered off, so as to complete all unfinished operations before power-off, thereby avoiding data loss and device damage. By optimizing the response time of PON, it can be ensured that the storage device can quickly enter the sleep state or be reawakened when the system needs it, thereby improving the performance of the entire device. However, there is a lack of an effective method for testing the PON of eMMC in the existing technical solutions.
[0057] Example 1
[0058] The embodiment of the present invention provides a method for testing the performance of an embedded multimedia card, effectively solving the problem in the prior art solution that there is a lack of an effective test method for the power-off notification mechanism of the embedded multimedia card. Figure 1 It is the first schematic diagram of the process of the method for testing the performance of the embedded multimedia card provided by the embodiment of the present invention, as Figure 1 shown, the method includes the following steps:
[0059] S100. Conduct a benchmark test on the embedded multimedia card to obtain benchmark performance data.
[0060] In the embodiment of the present invention, it is necessary to ensure that the hardware test equipment works properly before the test. The hardware test equipment includes but is not limited to a power supply, a test board, and an embedded multimedia card storage device. The power parameter configuration of the power supply can be adjusted so as to dynamically adjust the voltage and current during the test. The embedded multimedia card storage device is a storage device based on eMMC5.0. eMMC5.0 (Embedded MultiMediaCard 5.0) is a storage standard used for embedded storage devices, such as flash memories in smart phones and tablet computers.
[0061] At the same time, set the temperature and humidity of the test environment according to the actual usage conditions to ensure the accuracy and reliability of the test results. Figure 2 It is the working flowchart of the hardware test equipment in the embodiment of the present invention, as Figure 2 shown, the working process includes:
[0062] First, apply power to the embedded multimedia card storage device through the power supply. The PON hardware signal will be activated. The PON hardware signal usually includes a dedicated pin or a group of pins, which are directly connected to the power management circuit. When the PON pin detects the power-on, it will trigger the internal circuit and send a trigger signal to notify the control logic of the embedded multimedia card storage device. The internal logic circuit starts to work, and at this time, device initialization and abnormal power detection can be performed.
[0063] During the power supply stability period, the power-off notification mechanism continuously monitors the power supply status. When a power supply fluctuation or power-off is detected, the PON hardware signal can quickly detect this change. Once a power supply anomaly is detected, the embedded multimedia card storage device can immediately take measures, such as interrupting the current operation, closing the data interface, or saving the internal state to a non-volatile memory, to prevent data corruption. When the power supply resumes stability, the PON hardware signal is triggered again, and the device can resume operations from the previously saved state, thus ensuring data consistency and integrity. Through this mechanism, the embedded multimedia card device can effectively protect data in an environment with unstable power supply and prevent data loss or corruption caused by power supply problems.
[0064] Figure 3 It is the second schematic diagram of the performance test method flow of the embedded multimedia card provided by the embodiment of the present invention. As Figure 3 shown, the benchmark test mainly includes the following steps:
[0065] S110. Initialize the embedded multimedia card and configure the initial parameters of the embedded multimedia card.
[0066] In the embodiment of the present invention, after receiving the PON hardware signal, the control logic of the embedded multimedia card will be initialized to configure the initial parameters of the embedded multimedia card, such as device configuration, wake-up of the memory array, and preparation of the data interface. If the device was previously in a sleep or low-power mode, the PON hardware signal will wake it up.
[0067] S120. Perform read and write tests on the embedded multimedia card under stable power supply conditions to obtain the benchmark response time and benchmark performance data.
[0068] To ensure the stability and reliability of the storage device performance, it is necessary to perform read and write tests on the embedded multimedia card under stable power supply conditions, record key performance indicators such as response time and throughput, so as to obtain the benchmark response time and benchmark performance data. Optionally, the test can be repeated multiple times and the average value can be taken to improve the accuracy of the data.
[0069] S200. Dynamically adjust the power supply during the read and write operations of the embedded multimedia card according to the benchmark performance data to obtain the test performance data of different adjustment strategies.
[0070] In the embodiment of the present invention, the power supply is dynamically adjusted according to the benchmark performance data to test the response time of the PON function under different power supply adjustment strategies. Figure 4 It is the third schematic diagram of the performance test method flow of the embedded multimedia card provided by the embodiment of the present invention. As Figure 4 shown, the dynamic power supply adjustment includes the following steps:
[0071] S210. Gradually adjust the power supply voltage during the read / write operation of the embedded multimedia card to simulate voltage fluctuations.
[0072] In an embodiment of the present invention, the first power supply adjustment strategy is the power supply fluctuation strategy, that is, the power supply experiences multiple fluctuations during the power-on process. Specifically, gradually adjust the power supply voltage during the read / write operation of the embedded multimedia card to simulate voltage fluctuations. For example, the power supply fluctuates within 0 - 200 milliseconds, first rises to 50%, then drops to 25%, and then rises to 100%, and monitor the PON response time and the activation situation of the data protection mechanism.
[0073] S220. After power-off during the read / write operation of the embedded multimedia card, quickly power on.
[0074] In an embodiment of the present invention, the second power supply adjustment strategy is the quick power-on strategy, that is, the power supply quickly reaches a stable state within a short time. Specifically, suddenly power off during the read / write operation of the embedded multimedia card, and then quickly power on. For example, within 0 - 100 milliseconds after power-off, the power supply rises from 0% to 100%, and record the PON function response time and the activation situation of the data protection mechanism.
[0075] S230. After power-off during the read / write operation of the embedded multimedia card, slowly power on.
[0076] In an embodiment of the present invention, the third power supply adjustment strategy is the slow power-on strategy, that is, the power supply gradually reaches a stable state within a certain time. Specifically, suddenly power off during the read / write operation of the embedded multimedia card, and then slowly power on. For example, within 0 - 500 milliseconds after power-off, the power supply linearly rises from 0% to 100%, and record the PON function response time and the activation situation of the data protection mechanism.
[0077] S300. Analyze the response performance of the power-off notification mechanism function of the embedded multimedia card according to the test performance data, and obtain the performance analysis results of different adjustment strategies.
[0078] Figure 5 It is the fourth schematic diagram of the performance test method flow of the embedded multimedia card provided by the embodiment of the present invention. As Figure 5 shown, the performance analysis specifically includes the following steps:
[0079] S310. Obtain the power-off notification signal reception time and the embedded multimedia card preparation time according to the test performance data.
[0080] In the embodiments of the present invention, under the power fluctuation strategy, when the power supply rises to 50%, the reception time of the first power-off notification signal is 50 milliseconds. When the power supply drops, the embedded multimedia card attempts to start but is not ready. When the power supply rises to 100% again, the reception time of the second power-off notification signal is 150 milliseconds, and the preparation time of the embedded multimedia card is 250 milliseconds. The reception time of the power-off notification signal and the preparation time of the embedded multimedia card under the fast power-on strategy are 10 milliseconds and 20 milliseconds respectively. The reception time of the power-off notification signal and the preparation time of the embedded multimedia card under the slow power-on strategy are 200 milliseconds and 300 milliseconds respectively.
[0081] S320. Calculate the response time according to the reception time of the power-off notification signal and the preparation time of the embedded multimedia card.
[0082] The PON function response time is the time when the embedded multimedia card device receives the PON signal and is ready, that is, the sum of the reception time of the power-off notification signal and the preparation time of the embedded multimedia card. In the embodiments of the present invention, the response time of the power fluctuation strategy is 450 milliseconds, and the time of the first attempt failure is considered at this time. The response time of the fast power-on strategy is 30 milliseconds, and the response time of the slow power-on is 500 milliseconds.
[0083] S330. Analyze the performance of different adjustment strategies according to the response time to obtain the performance analysis result.
[0084] In the embodiments of the present invention, due to voltage fluctuations in the power fluctuation strategy, the PON function response time is unstable, which may cause the embedded multimedia card device to attempt to start multiple times, affecting the device stability, and the total response time is relatively long. It is not recommended for scenarios with high requirements for startup speed and stability. The PON function response time of the fast power-on strategy is the shortest because the power supply quickly stabilizes, which is suitable for application scenarios with high requirements for startup speed. Due to the power supply taking a longer time to reach the stable state in the slow power-on strategy, the PON function response time is longer, but it provides a more stable power environment, which may be more beneficial to the long-term reliability of the embedded multimedia card.
[0085] S400. Optimize the power-off notification mechanism of the embedded multimedia card according to the performance analysis result.
[0086] In the embodiments of the present invention, adjust the parameters of the power-off notification mechanism of eMMC5.0 according to the performance analysis result, mainly including adjusting the response threshold of the power-off notification mechanism and optimizing the data protection strategy, which usually need to be carried out according to specific application scenarios and requirements. Figure 6 It is the fifth schematic diagram of the performance test method flow of the embedded multimedia card provided by the embodiments of the present invention. As Figure 6 shown, the parameter optimization specifically includes the following steps:
[0087] S410. Adjust the response threshold of the power-off notification mechanism according to the wake-up rate of the embedded multimedia card.
[0088] The response threshold of the power-off notification mechanism determines when the embedded multimedia card wakes up from the low-power state. Adjusting this parameter can optimize the response time and power consumption of the storage device. Figure 7 It is the sixth schematic diagram of the performance test method flow of the embedded multimedia card provided by the embodiment of the present invention. As Figure 7 shown, the adjustment of the response threshold of the power-off notification mechanism includes the following steps:
[0089] S411. If the wake-up rate of the embedded multimedia card is greater than or equal to the first set threshold, increase the response threshold of the power-off notification mechanism.
[0090] For non-real-time devices or systems, if the requirement for startup speed is not high, if the wake-up rate is greater than or equal to the first set threshold, it means that the storage device is easy to wake up. At this time, the response threshold of the power-off notification mechanism can be increased, so that the embedded multimedia card is activated only when receiving more or stronger wake-up signals, thereby reducing the false wake-up rate to save power. Optionally, the first set threshold can be set according to the actual situation.
[0091] S412. If the wake-up rate of the embedded multimedia card is less than the first set threshold, decrease the response threshold of the power-off notification mechanism.
[0092] For devices or systems that require fast response, such as a real-time operating system RTOS, if the wake-up rate of the embedded multimedia card is less than the first set threshold, it means that the storage device is not easy to wake up. At this time, the response threshold of the power-off notification mechanism can be decreased, so that the embedded multimedia card can respond to smaller wake-up signals and achieve fast wake-up of the device.
[0093] S420. Adjust the strength of the data protection policy according to the data writing speed of the embedded multimedia card.
[0094] The data protection policy determines the speed and frequency at which the embedded multimedia card transfers data from the cache to non-volatile storage before power-off. Figure 8 It is the seventh schematic diagram of the performance test method flow of the embedded multimedia card provided by the embodiment of the present invention. As Figure 8 shown, the adjustment of the data protection policy specifically includes the following steps:
[0095] S421. If the data writing speed is less than the second set threshold, increase the data synchronization frequency of the embedded multimedia card.
[0096] In an environment with unstable power supply, it is necessary to ensure that data is not lost. If the data writing speed is less than the second set threshold, the data synchronization frequency is relatively low, resulting in a relatively high risk. At this time, increase the data synchronization frequency of the embedded multimedia card, quickly synchronize the data to the non-volatile storage, and reduce the risk of data loss. Optionally, the second set threshold can be set according to the actual situation.
[0097] S422: If the data writing speed is greater than or equal to the second set threshold, then reduce the data synchronization frequency of the embedded multimedia card.
[0098] In a device or system with stable power supply and high requirements for startup speed, if the data writing speed is greater than or equal to the second set threshold, it will result in a high data synchronization frequency, affecting the device performance. At this time, reduce the data synchronization frequency of the embedded multimedia card, thereby reducing the impact of data synchronization on the device performance.
[0099] S500: Test the optimized embedded multimedia card under various power fluctuation conditions to obtain a performance test report.
[0100] In the embodiment of the present invention, finally test the optimized embedded multimedia card under various power fluctuation conditions to ensure that the optimized power-off notification function can quickly respond and protect data in various situations.
[0101] Power fluctuations can affect the embedded multimedia card device and need to be managed and tested through the power-off notification function. Such power fluctuations can include the following various situations:
[0102] Power fluctuations during device startup and shutdown. For example, when the device starts up, the power supply may be unstable, resulting in an instantaneous rise or fall in voltage; during the device shutdown process, the power supply may suddenly cut off.
[0103] Battery power fluctuations. For example, when the battery power is about to run out, the power output may be unstable; during battery replacement or when the battery contact is poor, the power supply may be interrupted briefly.
[0104] External power adapter problems. For example, the power adapter is overheated, damaged, or the output voltage is unstable; for example, the power cord is damaged or the connection is loose, which may cause the power supply to be interrupted.
[0105] System load changes. For example, when the system runs high-load applications, the power demand increases, which may cause the power supply to be unstable; during multitasking, the power demand changes frequently, which may cause power fluctuations.
[0106] Environmental factors. For example, extreme temperature conditions may cause changes in the performance of power supply equipment; a high-humidity environment may cause internal circuit problems in power supply equipment.
[0107] Grid problems, such as unstable grid frequency, may affect the output of the power adapter; fluctuations in grid voltage will affect the power supply.
[0108] To address the above power fluctuations, the power-off notification function of the embedded multimedia card can adopt the following optimization measures: The embedded multimedia card device can detect the power on and off through the PON hardware signal to quickly respond to power fluctuations. When the power is unstable, the embedded multimedia card device can automatically enter the protection mode and stop all operations to prevent data damage. When a power fluctuation occurs, the embedded multimedia card device can interrupt the current transaction and resume operations after the power stabilizes. The embedded multimedia card device can detect power failures and protect data through hardware or software mechanisms.
[0109] After completing tests under various power fluctuation conditions, a test report can be generated, including the test process, results, optimization strategies, and final performance evaluation. Optionally, the parameters of the optimized power-off notification mechanism can be applied to the actual product for on-site testing to verify the actual effect of the optimization strategy.
[0110] The performance test method for the embedded multimedia card provided by the embodiments of the present invention can dynamically adjust the test conditions and parameters according to real-time feedback, which can accelerate the startup time of the storage device, reduce the time from the sleep state to the fully operational state of the device, and improve the overall responsiveness of the storage system. When the storage device can respond to the power-off notification mechanism signal faster, the efficiency of the entire storage system will also increase because other components do not need to wait for the storage device to be ready, ensuring that the storage device can provide a consistent response time and performance under different working conditions, which is crucial for the stability of the storage system. At the same time, optimizing the response time of the power-off notification mechanism helps to better manage the power of the device, reduce unnecessary power consumption, and extend the battery life.
[0111] Embodiment 2
[0112] Based on the same technical concept, the embodiments of the present invention provide a performance test device for an embedded multimedia card. Figure 9 It is a schematic structural diagram of the performance test device for the embedded multimedia card provided by the embodiments of the present invention, as Figure 9 shown. The performance test device 900 for the embedded multimedia card includes:
[0113] A benchmark test module 910 for performing a benchmark test on the embedded multimedia card to obtain benchmark performance data;
[0114] A dynamic test module 920 for dynamically adjusting the power during the read and write operations of the embedded multimedia card according to the benchmark performance data to obtain test performance data for different adjustment strategies.
[0115] A performance analysis module 930 is configured to analyze the response performance of the power-off notification mechanism function of the embedded multimedia card based on the test performance data, and obtain the performance analysis results of different adjustment strategies;
[0116] A parameter optimization module 940 is configured to optimize the power-off notification mechanism of the embedded multimedia card according to the performance analysis results;
[0117] A performance test module 950 is configured to test the optimized embedded multimedia card under various power fluctuation conditions, and obtain a performance test report.
[0118] The performance test device for the embedded multimedia card provided by the embodiment of the present invention can ensure that the power-off notification mechanism can maintain the best performance in various situations, ensure that the embedded multimedia card can provide a consistent response time and performance under different working conditions, thereby improving the user experience and making the embedded multimedia card more fluent and fast during user operations.
[0119] It can be understood that the implementation manners in the performance test method for the embedded multimedia card described in the above Embodiment 1 are equally applicable to this embodiment and can achieve the same technical effects, so they will not be repeated here.
[0120] Embodiment 3
[0121] Based on the same concept, the embodiment of the present invention further provides an electronic device. Figure 10 It is a schematic structural diagram of an electronic device provided by the embodiment of the present invention. As Figure 10 shown, the electronic device 1000 may include: a processor 1010, a communications interface 1020, a memory 1030, and a communication bus 1040. Among them, the processor 1010, the communications interface 1020, and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute the steps of the performance test method for the embedded multimedia card as described in the above embodiments. For example, it includes:
[0122] S100. Perform a benchmark test on the embedded multimedia card to obtain benchmark performance data.
[0123] S200. Dynamically adjust the power supply during the read and write operations of the embedded multimedia card according to the benchmark performance data to obtain test performance data of different adjustment strategies;
[0124] S300. Analyze the response performance of the power-off notification mechanism function of the embedded multimedia card based on the test performance data to obtain the performance analysis results of different adjustment strategies;
[0125] S400. Optimize the power-off notification mechanism of the embedded multimedia card according to the performance analysis results;
[0126] S500. Test the optimized embedded multimedia card under various power fluctuation conditions to obtain a performance test report.
[0127] Among them, the processor 1010 can be a central processing unit (CPU). The processor can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., or a combination of the above types of chips.
[0128] In addition, when the logical instructions in the above-mentioned memory 1030 can be implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs, etc., all kinds of media that can store program codes.
[0129] The memory 1030 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created by the processor, etc. In addition, the memory can include high-speed random access memory and can also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory optionally includes a memory remotely set relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above network include but are not limited to the Internet, enterprise intranets, local area networks, mobile communication networks, and combinations thereof.
[0130] Embodiment 4
[0131] Based on the same concept, an embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and the computer program includes at least one piece of code. The at least one piece of code can be executed by a main control device to control the main control device to implement the steps of the performance testing method of the embedded multimedia card as described in the above embodiments. For example, it includes:
[0132] S100. Conduct a benchmark test on the embedded multimedia card to obtain benchmark performance data.
[0133] S200. Dynamically adjust the power supply during the read and write operations of the embedded multimedia card according to the benchmark performance data to obtain test performance data of different adjustment strategies;
[0134] S300. Analyze the response performance of the power-off notification mechanism function of the embedded multimedia card according to the test performance data to obtain performance analysis results of different adjustment strategies;
[0135] S400. Optimize the power-off notification mechanism of the embedded multimedia card according to the performance analysis results;
[0136] S500. Test the optimized embedded multimedia card under various power fluctuation conditions to obtain a performance test report.
[0137] Based on the same technical concept, an embodiment of the present invention further provides a computer program, which is used to implement the above method embodiment when executed by a main control device.
[0138] The computer program can be stored in whole or in part on a computer-readable storage medium packaged together with the processor, or can be stored in whole or in part on a memory not packaged together with the processor.
[0139] Based on the same technical concept, an embodiment of the present invention further provides a processor, which is used to implement the above method embodiment. The above processor can be a chip.
[0140] In summary, the performance testing method, device, electronic device and storage medium of the embedded multimedia card provided by the present invention can dynamically adjust the test conditions and parameters according to real-time feedback, and can adjust the parameters to the optimal configuration in real time according to the test results, thereby reducing the response time of the power-off notification mechanism. By testing different parameter combinations, the power management and data transmission mechanisms of the embedded multimedia card can be optimized, thereby improving the response speed of the power-off notification mechanism. Dynamic testing can adapt to different workloads and environmental conditions, ensuring that the power-off notification mechanism can maintain the best performance in various situations, ensuring that the embedded multimedia card can provide a consistent response time and performance under different working conditions, thereby enhancing the user experience and making the embedded multimedia card more fluent and fast during user operations.
[0141] Reference to "embodiments" in this specification means that the particular features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of the present application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0142] The above-described embodiments merely represent several implementation manners of the present invention. The description thereof is relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the appended claims.
[0143] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments or perform equivalent replacements for some of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A performance testing method for an embedded multimedia card, characterized in that, The method includes: Performing a benchmark test on the embedded multimedia card to obtain benchmark performance data; Dynamically adjusting the power supply during the read and write operations of the embedded multimedia card according to the benchmark performance data to obtain test performance data of different adjustment strategies; Analyzing the response performance of the power-off notification mechanism function of the embedded multimedia card according to the test performance data to obtain performance analysis results of different adjustment strategies; Optimizing the power-off notification mechanism of the embedded multimedia card according to the performance analysis results; Testing the optimized embedded multimedia card under various power fluctuation conditions to obtain a performance test report.
2. The performance testing method of the embedded multimedia card according to claim 1, wherein The performing a benchmark test on the embedded multimedia card to obtain benchmark performance data includes: Initializing the embedded multimedia card and configuring the initial parameters of the embedded multimedia card; Performing read and write tests on the embedded multimedia card under stable power supply conditions to obtain the benchmark response time and benchmark performance data.
3. The performance testing method of the embedded multimedia card according to claim 1, characterized in that The dynamically adjusting the power supply during the read and write operations of the embedded multimedia card according to the benchmark performance data includes: Gradually adjusting the power supply voltage during the read and write operations of the embedded multimedia card to simulate voltage fluctuations; Quickly powering on after power-off during the read and write operations of the embedded multimedia card; Slowly powering on after power-off during the read and write operations of the embedded multimedia card.
4. The performance testing method of the embedded multimedia card according to claim 1, characterized in that, The analyzing the response performance of the power-off notification mechanism function of the embedded multimedia card according to the test performance data to obtain performance analysis results of different adjustment strategies includes: Obtaining the power-off notification signal reception time and the embedded multimedia card preparation time according to the test performance data; Calculating the response time according to the power-off notification signal reception time and the embedded multimedia card preparation time; Analyzing the performance of different adjustment strategies according to the response time to obtain the performance analysis results.
5. The performance testing method of the embedded multimedia card according to claim 4, characterized in that The optimizing the power-off notification mechanism of the embedded multimedia card according to the performance analysis results includes: Adjusting the response threshold of the power-off notification mechanism according to the wake-up rate of the embedded multimedia card; Adjusting the strength of the data protection strategy according to the data writing speed of the embedded multimedia card.
6. The performance testing method of the embedded multimedia card according to claim 5, characterized in that, The adjusting the response threshold of the power-off notification mechanism according to the wake-up rate of the embedded multimedia card includes: If the wake-up rate of the embedded multimedia card is greater than or equal to the first set threshold, increasing the response threshold of the power-off notification mechanism; If the wake-up rate of the embedded multimedia card is less than the first set threshold, decreasing the response threshold of the power-off notification mechanism.
7. The performance testing method of the embedded multimedia card according to claim 5, characterized in that, The adjusting the strength of the data protection strategy according to the data writing speed of the embedded multimedia card includes: If the data writing speed is less than the second set threshold, increasing the data synchronization frequency of the embedded multimedia card; If the data writing speed is greater than or equal to the second set threshold, decreasing the data synchronization frequency of the embedded multimedia card.
8. A performance testing device for an embedded multimedia card, characterized in that, The device includes: A benchmark test module for performing a benchmark test on the embedded multimedia card to obtain benchmark performance data; A dynamic test module, which is used to dynamically adjust the power supply during the read and write operations of the embedded multimedia card according to the benchmark performance data, and obtain the test performance data of different adjustment strategies; A performance analysis module, which is used to analyze the response performance of the power-off notification mechanism function of the embedded multimedia card according to the test performance data, and obtain the performance analysis results of different adjustment strategies; A parameter optimization module, which is used to optimize the power-off notification mechanism of the embedded multimedia card according to the performance analysis results; A performance test module, which is used to test the optimized embedded multimedia card under various power fluctuation conditions and obtain a performance test report.
9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the performance test method of the embedded multimedia card according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the performance test method of the embedded multimedia card according to any one of claims 1 to 7.
Citation Information
Cited By
Storage device test method and test system
CN121096411A