A Performance Testing Method and Related Device for Static Trusted Protection Files

Through time-consuming testing of static trusted protection files, the gap in performance testing of static trusted protection files is solved, providing accurate performance evaluation methods, and optimizing static trusted verification strategies.

CN120196529BActive Publication Date: 2025-07-29XIAN THERMAL POWER RES INST CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510683369.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2025-07-29
Estimated Expiration
2045-05-26

AI Technical Summary

Technical Problem

The lack of performance testing methods for static trusted protection files in the prior art, resulting in the inability to accurately optimize the static trusted verification strategy, affecting the user experience and business software operation.

Method used

Provide a performance testing method for static trusted protection files. By configuring a static trusted verification strategy for files to be read, written and executed, recording the operation time, and comparing the increase ratio with the threshold, and generating performance test results.

Benefits of technology

A comprehensive test of the operation performance of static trusted protection files was realized, and the impact of static trusted verification strategies was discovered early, providing an accurate basis for optimization and adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120196529B_ABST
    Figure CN120196529B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of performance testing of trusted files, and discloses a performance testing method and related device for static trusted protected files. The method includes: respectively performing read operations on the original file to be read and the first file to be tested, to obtain the read performance test result of the first file to be tested; respectively performing write operations on the original file to be written and the second file to be tested, to obtain the write performance test result of the second file to be tested; respectively performing execution operations on the original file to be executed and the third file to be tested, to obtain the execution performance test result of the third file to be tested; generating the performance test result of the static trusted protected file based on the read and write performance test result of the first file to be tested, the write performance test result of the second file to be tested, and the execution performance test result of the third file to be tested. The present invention can achieve a comprehensive test of the operation performance of static trusted protected files, and provide an accurate basis for optimizing and adjusting static trusted verification strategies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of performance testing for trusted files, and particularly relates to a performance testing method and related device for static trusted protection files. Background Art

[0002] A distributed control system (DCS) is a new type of control device that uses computer technology to centrally monitor, operate, manage, and decentralize the control of industrial production processes; a trusted DCS is based on a traditional DCS and improves the security of the system by introducing a trusted computing system.

[0003] Currently, the trusted controllers of domestic trusted DCSs are generally integrated with a static trusted verification function to perform trusted verification on the files of the trusted controller during the reading, writing, and execution processes; files that are verified to be trusted can be read, written, or executed in the trusted controller; while files that are verified to be untrusted cannot be read, written, or executed in the trusted controller; the specific implementation principle is: calculate the reference value of controlled objects, such as application programs, dynamic link libraries, kernel modules, configuration files, or data files, etc., during the initialization stage of the trusted controller, and store the calculated reference value in a preset database; when performing reading, writing, or execution operations on the controlled objects, process them according to the preset control methods in the configured static trusted verification policy.

[0004] A static trusted protection file is a file protected by a static trusted verification policy. Since the static trusted verification policy is configured in the file, its reading, writing, or execution operations usually take longer than those of files not protected by the static trusted verification policy; when the operation time of the static trusted protection file is too long, it will seriously affect the user experience and may also have an adverse impact on the operation of business software; however, in actual applications, there is no performance testing method for static trusted protection files, and thus the purpose of precisely optimizing the static trusted verification policy cannot be achieved. Summary of the Invention

[0005] Aiming at the technical problems existing in the prior art, the present invention provides a performance testing method and related device for static trusted protection files to solve the technical problem that there is no performance testing method for static trusted protection files in actual applications, and thus the purpose of precisely optimizing the static trusted verification policy cannot be achieved.

[0006] To achieve the above object, the technical solution adopted by the present invention is as follows:

[0007] The present invention provides a performance testing method for static trusted protection files, including:

[0008] Configure a static trusted verification policy for the original file to be read, and obtain the first file to be tested;

[0009] Perform read operations on the original file to be read and the first file to be tested respectively, record the time used for the read operation, and obtain the read performance test result of the first file to be tested based on the time used for the read operation;

[0010] Configure a static trusted verification policy for the original file to be written, and obtain the second file to be tested;

[0011] Perform write operations on the original file to be written and the second file to be tested respectively, record the time used for the write operation, and obtain the write performance test result of the second file to be tested based on the time used for the write operation;

[0012] Configure a static trusted verification policy for the original file to be executed, and obtain the third file to be tested;

[0013] Perform execution operations on the original file to be executed and the third file to be tested respectively, record the time used for the execution operation, and obtain the execution performance test result of the third file to be tested based on the time used for the execution operation;

[0014] Generate the performance test result of the static trusted protection file based on the read and write performance test result of the first file to be tested, the write performance test result of the second file to be tested, and the execution performance test result of the third file to be tested.

[0015] Further, perform read operations on the original file to be read and the first file to be tested respectively, record the time used for the read operation, and obtain the read performance test result of the first file to be tested, including:

[0016] Perform several read operations on the original file to be read, and obtain the time used for the read operation of the original file to be read;

[0017] Perform several read operations on the first file to be tested, and obtain the time used for the read operation of the first file to be tested;

[0018] Calculate the difference between the time used for the read operation of the original file to be read and the time used for the read operation of the first file to be tested, and obtain the difference in read time;

[0019] Divide the difference in read time by the time used for the read operation of the original file to be read, and obtain the first increase ratio;

[0020] Compare the first increase ratio with the preset first threshold to obtain the read performance test result of the first file to be tested.

[0021] Further, perform several read operations on the original file to be read, and obtain the time used for the read operation of the original file to be read, including:

[0022] Perform several read operations on the original file to be read, and record the time taken for each read operation of the original file to be read;

[0023] Calculate the average value of the time taken for each read operation of the original file to be read as the time taken for the read operation of the original file to be read;

[0024] Perform several read operations on the first file to be tested to obtain the time taken for the read operation of the first file to be tested, including:

[0025] Perform several read operations on the first file to be tested, and record the time taken for each read operation of the first file to be tested;

[0026] Calculate the average value of the time taken for each read operation of the first file to be tested as the time taken for the read operation of the first file to be tested.

[0027] Furthermore, perform write operations on the original file to be written and the second file to be tested respectively, record the write time, and obtain the write performance test result of the second file to be tested based on the write time, including:

[0028] Perform several write operations on the original file to be written to obtain the write time of the original file to be written;

[0029] Perform several write operations on the second file to be tested to obtain the write time of the second file to be tested;

[0030] Calculate the difference between the write time of the original file to be written and the write time of the second file to be tested to obtain the write time difference;

[0031] Divide the write time difference by the write time of the original file to be written to obtain the second increase ratio;

[0032] Compare the second increase ratio with the preset second threshold to obtain the write performance test result of the second file to be tested.

[0033] Furthermore, perform several write operations on the original file to be written to obtain the write time of the original file to be written, including:

[0034] Perform several write operations on the original file to be written, and record the time taken for each write operation of the original file to be written;

[0035] Calculate the average value of the time taken for each write operation of the original file to be written as the write time of the original file to be written;

[0036] Perform several write operations on the second file to be tested to obtain the write time of the second file to be tested, including:

[0037] Perform a number of write operations on the second file to be tested, and record the time taken for each write operation on the second file to be tested;

[0038] Calculate the average value of the time taken for each write operation on the second file to be tested, and use it as the time taken for the write operation on the second file to be tested.

[0039] Furthermore, perform execution operations on the original file to be executed and the third file to be tested respectively, record the time taken for the execution operation, and obtain the execution performance test result of the third file to be tested based on the time taken for the execution operation, including:

[0040] Perform a number of execution operations on the original file to be executed, and obtain the time taken for the execution operation of the original file to be executed;

[0041] Perform a number of execution operations on the third file to be tested, and obtain the time taken for the execution operation of the third file to be tested;

[0042] Calculate the difference between the time taken for the execution operation of the original file to be executed and the time taken for the execution operation of the third file to be tested, and obtain the execution time difference;

[0043] Divide the execution time difference by the time taken for the execution operation of the original file to be executed, and obtain the third increase ratio;

[0044] Compare the third increase ratio with the preset third threshold value to obtain the execution performance test result of the third file to be tested.

[0045] Furthermore, perform a number of execution operations on the original file to be executed, and obtain the time taken for the execution operation of the original file to be executed, including:

[0046] Perform a number of execution operations on the original file to be executed, and record the time taken for each execution operation on the original file to be executed;

[0047] Calculate the average value of the time taken for each execution operation on the original file to be executed, and use it as the time taken for the execution operation of the original file to be executed;

[0048] Perform a number of execution operations on the third file to be tested, and obtain the time taken for the execution operation of the third file to be tested, including:

[0049] Perform a number of execution operations on the third file to be tested, and record the time taken for each execution operation on the third file to be tested;

[0050] Calculate the average value of the time taken for each execution operation on the third file to be tested, and use it as the time taken for the execution operation of the third file to be tested.

[0051] The present invention also provides a performance test system for a static trusted protection file, including:

[0052] The first file acquisition module is used to configure a static trusted verification policy for the original file to be read, and obtain a first file to be tested;

[0053] The read test module is used to perform read operations on the original file to be read and the first file to be tested respectively, record the time used for the read operation, and obtain the read performance test result of the first file to be tested based on the time used for the read operation;

[0054] The second file acquisition module is used to configure a static trusted verification policy for the original file to be written, and obtain a second file to be tested;

[0055] The write test module is used to perform write operations on the original file to be written and the second file to be tested respectively, record the time used for the write operation, and obtain the write performance test result of the second file to be tested based on the time used for the write operation;

[0056] The third file acquisition module is used to configure a static trusted verification policy for the original file to be executed, and obtain a third file to be tested;

[0057] The execution test module is used to perform execution operations on the original file to be executed and the third file to be tested respectively, record the time used for the execution operation, and obtain the execution performance test result of the third file to be tested based on the time used for the execution operation;

[0058] The test result output module is used to generate the performance test result of the static trusted protection file based on the read and write performance test result of the first file to be tested, the write performance test result of the second file to be tested, and the execution performance test result of the third file to be tested.

[0059] The present invention also provides an electronic device, including:

[0060] A processor, suitable for executing a computer program;

[0061] A computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by the processor, the performance test method of the static trusted protection file is executed.

[0062] The present invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the performance test method of the static trusted protection file is implemented.

[0063] Compared with the prior art, the beneficial effects of the present invention are:

[0064] The performance testing method for static trusted protection files provided by the present invention performs read, write, and execute operations on the original file to be read and the first file to be tested, the original file to be written and the second file to be tested, and the original file to be executed and the third file to be tested respectively, and records the time taken for the read, write, and execute operations of the original file and the files to be tested. According to the recorded time taken for the read, write, and execute operations of the original file and the files to be tested, the test results of the read performance, write performance, and execute performance of the files to be tested are obtained, realizing a comprehensive test of the operation performance of static trusted protection files, being able to detect earlier the impact of configuring static trusted verification policies on various file operations, and providing an accurate basis for optimizing and adjusting static trusted verification policies.

[0065] The performance testing system, electronic device, and computer-readable storage medium for static trusted protection files for a trusted controller provided by the present invention have all the advantages of the above-mentioned performance testing method for static trusted protection files. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 is a flowchart of the performance testing method for static trusted protection files provided by the present invention;

[0067] Figure 2 is a flowchart of the performance testing method for static trusted protection files provided in Embodiment 1;

[0068] Figure 3 is a structural block diagram of the performance testing system for static trusted protection files provided in Embodiment 2;

[0069] Figure 4 is a structural block diagram of the electronic device provided in Embodiment 3. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0070] In order to make the technical problems, technical solutions, and beneficial effects solved by the present invention clearer, the following specific embodiments are used to further elaborate on the present invention in detail. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0071] As shown in the Figure 1 accompanying Figure 1 drawings, a schematic flowchart of the performance testing method for a static trusted protection file provided by the present invention is given; the performance testing method for the static trusted protection file includes the following steps:

[0072] Step 100: Configure a static trusted verification policy for the original file to be read to obtain a first file to be tested.

[0073] Step 200: Read the original file to be read and the first file to be tested respectively, record the time taken for the read operation, and obtain the read performance test result of the first file to be tested based on the time taken for the read operation.

[0074] Step 300: Configure a static trusted verification policy for the original file to be written to obtain a second file to be tested.

[0075] Step 400: Write the original file to be written and the second file to be tested respectively, record the time taken for the write operation, and obtain the write performance test result of the second file to be tested based on the time taken for the write operation.

[0076] Step 500: Configure a static trusted verification policy for the original file to be executed to obtain a third file to be tested.

[0077] Step 600: Execute the original file to be executed and the third file to be tested respectively, record the time taken for the execution operation, and obtain the execution performance test result of the third file to be tested based on the time taken for the execution operation.

[0078] Step 700: Generate the performance test result of the static trusted protection file based on the read and write performance test result of the first file to be tested, the write performance test result of the second file to be tested, and the execution performance test result of the third file to be tested.

[0079] The present invention also provides a performance test system for a static trusted protection file, including a first file acquisition module, a read test module, a second file acquisition module, a write test module, a third file acquisition module, an execution test module, and a test result output module.

[0080] The first file acquisition module is used to configure a static trusted verification policy for the original file to be read, and obtain a first file to be tested; the read test module is used to perform read operations on the original file to be read and the first file to be tested respectively, record the time used for the read operation, and obtain the read performance test result of the first file to be tested based on the time used for the read operation; the second file acquisition module is used to configure a static trusted verification policy for the original file to be written, and obtain a second file to be tested; the write test module is used to perform write operations on the original file to be written and the second file to be tested respectively, record the time used for the write operation, and obtain the write performance test result of the second file to be tested based on the time used for the write operation; the third file acquisition module is used to configure a static trusted verification policy for the original file to be executed, and obtain a third file to be tested; the execution test module is used to perform execution operations on the original file to be executed and the third file to be tested respectively, record the time used for the execution operation, and obtain the execution performance test result of the third file to be tested based on the time used for the execution operation; the test result output module is used to generate the performance test result of the static trusted protection file based on the read and write performance test result of the first file to be tested, the write performance test result of the second file to be tested, and the execution performance test result of the third file to be tested.

[0081] The performance test method for the static trusted protection file according to the present invention realizes a comprehensive test of the operation performance of the static trusted protection file, can more quickly discover the impact on various file operations after configuring the static trusted verification policy, and provides an accurate basis for optimizing and adjusting the static trusted verification policy.

[0082] The following uses some specific embodiments to further explain the performance test method for the static trusted protection file provided by the present invention:

[0083] Embodiment 1

[0084] As shown in the appendix Figure 2 This Embodiment 1 provides a performance test method for a static trusted protection file, including the following steps:

[0085] Step 1: Determine the original file to be read and the read operation parameters.

[0086] Step 2: Configure a static trusted verification policy for the original file to be read, and obtain a first file to be tested. Specifically, through the static trusted verification policy configuration command provided in the static trusted verification function of the trusted controller, configure a preset static trusted verification policy for the original file to be read, and obtain a static trusted protection file for read test as the first file to be tested.

[0087] Step 3: Use a pre-determined read and write performance test tool to perform several read operations on the original file to be read according to the read operation parameters, and obtain the time used for the read operation of the original file to be read. The specific process includes:

[0088] Step 301: Use a pre-determined read performance test tool to perform a preset number of read operations on the original file to be read according to the read operation parameters, and record the time taken for each read operation of the original file to be read. Preferably, the preset number of read operations is 100 times.

[0089] Step 302: Calculate the average value of the time taken for each read operation of the original file to be read as the time taken for the read operation of the original file to be read. Specifically, remove the maximum and minimum values from the time taken for all read operations of the original file to be read, and then calculate the average value using the remaining time taken for the read operations of the original file to be read as the time taken for the read operation of the original file to be read.

[0090] Step 4: Use a pre-determined read performance test tool to perform a number of read operations on the first file to be tested according to the read operation parameters to obtain the time taken for the read operation of the first file to be tested. The specific process includes:

[0091] Step 401: Use a pre-determined read performance test tool to perform a preset number of read operations on the first file to be tested according to the read operation parameters, and record the time taken for each read operation of the first file to be tested. Preferably, the preset number of read operations is 100 times.

[0092] Step 402: Calculate the average value of the time taken for each read operation of the first file to be tested as the time taken for the read operation of the first file to be tested. Specifically, remove the maximum and minimum values from the time taken for all read operations of the first file to be tested, and then calculate the average value using the remaining time taken for the read operations of the first file to be tested as the time taken for the read operation of the first file to be tested.

[0093] Step 5: Obtain the read performance test result of the first file to be tested based on the time taken for the read operation of the original file to be read and the time taken for the read operation of the first file to be tested.

[0094] Specifically, calculate the difference between the time taken for the read operation of the original file to be read and the time taken for the read operation of the first file to be tested to obtain the difference in the read time of the first file to be tested; divide the difference in the read time of the first file to be tested by the time taken for the read operation of the original file to be read to obtain the first increase ratio; compare the first increase ratio with a preset first threshold to obtain the read performance test result of the first file to be tested.

[0095] Among them, if the first increase ratio is less than or equal to the preset first threshold, it indicates that the impact on the original file to be read after configuring the preset static trusted verification policy is small and meets the expectation; if the first increase ratio is greater than the preset first threshold, it indicates that the impact on the original file to be read after configuring the preset static trusted verification policy is large and does not meet the expectation. At this time, it is necessary to optimize the preset static trusted verification policy; preferably, the preset first threshold is 0.05.

[0096] Step 6: Determine the original file to be written and the write operation parameters.

[0097] Step 7: Configure a static trusted verification policy for the original file to be written to obtain a second file to be tested. Specifically, through the static trusted verification policy configuration command provided in the static trusted verification function of the trusted controller, configure the preset static trusted verification policy for the original file to be written to obtain a static trusted protection file for write testing, which is used as the second file to be tested.

[0098] Step 8: Use a pre-determined write performance test tool to perform a number of write operations on the original file to be written according to the write operation parameters, and obtain the write operation time of the original file to be written. The specific process includes:

[0099] Step 801: Use a pre-determined write performance test tool to perform a preset number of write operations on the original file to be written according to the write operation parameters, and record the write operation time of the original file to be written each time. Preferably, the preset number of write operations is 100 times.

[0100] Step 802: Calculate the average value of the write operation time of the original file to be written each time as the write operation time of the original file to be written. Specifically, remove the maximum and minimum values from all the write operation times of the original file to be written, and then calculate the average value using the remaining write operation times of the original file to be written as the write operation time of the original file to be written.

[0101] Step 9: Use a pre-determined write performance test tool to perform a number of write operations on the second file to be tested according to the write operation parameters, and obtain the write operation time of the second file to be tested. The specific process includes:

[0102] Step 901: Use a pre-determined write performance test tool to perform a preset number of write operations on the second file to be tested according to the write operation parameters, and record the write operation time of the second file to be tested each time. Preferably, the preset number of write operations is 100 times.

[0103] Step 902: Calculate the average value of the writing operation time for each second file to be tested as the writing operation time of the second file to be tested. Specifically, remove the maximum and minimum values from all the writing operation times of the second file to be tested, and then calculate the average value using the remaining writing operation times of the second file to be tested as the writing operation time of the second file to be tested.

[0104] Step 10: Obtain the writing performance test result of the second file to be tested based on the writing operation time of the original file to be written and the writing operation time of the second file to be tested.

[0105] Specifically, calculate the difference between the writing operation time of the original file to be written and the writing operation time of the second file to be tested to obtain the writing time difference of the second file to be tested; divide the writing time difference of the second file to be tested by the writing operation time of the original file to be written to obtain the second increase ratio; compare the second increase ratio with the preset second threshold to obtain the writing performance test result of the second file to be tested.

[0106] Among them, if the second increase ratio is less than or equal to the preset second threshold, it indicates that the impact on the original file to be written after configuring the preset static trusted verification policy is small and meets the expectation; if the second increase ratio is greater than the preset second threshold, it indicates that the impact on the original file to be written after configuring the preset static trusted verification policy is large and does not meet the expectation. At this time, the preset static trusted verification policy needs to be optimized; preferably, the preset second threshold is 0.05.

[0107] Step 11: Determine the original file to be executed and the execution operation parameters.

[0108] Step 12: Configure a static trusted verification policy for the original file to be executed to obtain a third file to be tested. Specifically, through the static trusted verification policy configuration command provided in the static trusted verification function of the trusted controller, configure the preset static trusted verification policy for the original file to be executed to obtain a static trusted protection file for execution testing as the third file to be tested.

[0109] Step 13: Use a pre-determined execution performance test tool to perform a number of execution operations on the original file to be executed according to the execution operation parameters to obtain the execution operation time of the original file to be executed. The specific process includes:

[0110] Step 131: Use a pre-determined execution performance test tool to perform a preset number of execution operations on the original file to be executed according to the execution operation parameters, and record the execution operation time of the original file to be executed each time. Preferably, the preset number of execution operations is 100 times.

[0111] Step 132: Calculate the average of the execution operation times of each original file to be executed as the execution operation time of the original file to be executed. Specifically, remove the maximum and minimum values from the execution operation times of all original files to be executed, and then calculate the average using the remaining execution operation times of the original files to be executed as the execution operation time of the original file to be executed.

[0112] Step 14: Use a predetermined execution performance testing tool to perform a number of execution operations on the third file to be tested according to the execution operation parameters to obtain the execution operation time of the third file to be tested. The specific process includes:

[0113] Step 141: Use a predetermined execution performance testing tool to perform a preset number of execution operations on the third file to be tested according to the execution operation parameters, and record the execution operation time of the third file to be tested each time. Preferably, the preset number of execution operations is 100 times.

[0114] Step 142: Calculate the average of the execution operation times of the third file to be tested each time as the execution operation time of the third file to be tested. Specifically, remove the maximum and minimum values from the execution operation times of all third files to be tested, and then calculate the average using the remaining execution operation times of the third files to be tested as the execution operation time of the third file to be tested.

[0115] Step 15: Obtain the execution performance test result of the third file to be tested based on the execution operation time of the original file to be executed and the execution operation time of the third file to be tested.

[0116] Specifically, calculate the difference between the execution operation time of the original file to be executed and the execution operation time of the third file to be tested to obtain the execution time difference of the third file to be tested; divide the execution time difference of the third file to be tested by the execution operation time of the original file to be executed to obtain the third increase ratio; compare the third increase ratio with the preset third threshold to obtain the execution performance test result of the third file to be tested.

[0117] Among them, if the third increase ratio is less than or equal to the preset third threshold, it indicates that the impact on the original file to be executed after configuring the preset static trusted verification policy is small and meets the expectations; if the third increase ratio is greater than the preset third threshold, it indicates that the impact on the original file to be executed after configuring the preset static trusted verification policy is large and does not meet the expectations. At this time, it is necessary to optimize the preset static trusted verification policy; preferably, the preset third threshold is 0.05.

[0118] Step 16: Generate a test report based on the read-write performance test results, write performance test results, and execution performance test results of the file to be tested; output the test report to obtain the performance test results of the static trusted protection file.

[0119] It should be noted that the pre-determined read performance test tool, pre-determined write performance test tool, and pre-determined execution performance test tool all adopt the pre-determined trusted controller in the domestic trusted DCS.

[0120] The performance test method for the static trusted protection file described in Embodiment 1 of the present invention realizes the accurate test of the operation performance of the static trusted protection file by obtaining the time taken for reading, writing, and executing operations on the original file and the time taken for reading, writing, and executing operations after configuring the static trusted verification policy for the original file, and comparing the time taken for reading, writing, and executing operations on the original file with the time taken for reading, writing, and executing operations on the file to be tested, providing a basis for the optimization and adjustment of the static trusted verification policy and the static trusted verification function.

[0121] Embodiment 2

[0122] As shown in the Figure 3 accompanying figure, Embodiment 2 of the present invention provides a performance test system for a static trusted protection file, including a first file determination module, a first file acquisition module, a read test module, a second file determination module, a second file acquisition module, a write test module, a third file determination module, a third file acquisition module, an execution test module, and a test result output module.

[0123] The first file determination module is used to determine the original file to be read and the read operation parameters.

[0124] The first file acquisition module is used to configure a static trusted verification policy for the original file to be read to obtain a first file to be tested.

[0125] The read test module is used to perform read operations on the original file to be read and the first file to be tested respectively, record the time taken for the read operation, and obtain the read performance test result of the first file to be tested based on the time taken for the read operation.

[0126] The second file determination module is used to determine the original file to be written and the write operation parameters.

[0127] The second file acquisition module is used to configure a static trusted verification policy for the original file to be written to obtain a second file to be tested.

[0128] The write test module is used to perform write operations on the original file to be written and the second file to be tested respectively, record the time taken for the write operation, and obtain the write performance test result of the second file to be tested based on the time taken for the write operation.

[0129] A third file determination module, configured to determine an original file to be executed and execution operation parameters.

[0130] A third file acquisition module, configured to configure a static trusted verification policy for the original file to be executed, and obtain a third file to be tested.

[0131] An execution test module, configured to perform execution operations on the original file to be executed and the third file to be tested respectively, record the time taken for the execution operation, and obtain an execution performance test result of the third file to be tested based on the time taken for the execution operation.

[0132] A test result output module, configured to generate a test report based on the read-write performance test result of the file to be tested, the write performance test result of the file to be tested, and the execution performance test result of the file to be tested; output the test report to obtain the performance test result of the static trusted protection file.

[0133] Optionally, a read test module, specifically configured to: use a pre-determined read-write performance test tool to perform a plurality of read operations on the original file to be read according to the read operation parameters, and obtain the time taken for the read operation of the original file to be read; use a pre-determined read performance test tool to perform a plurality of read operations on the first file to be tested according to the read operation parameters, and obtain the time taken for the read operation of the first file to be tested; obtain the read performance test result of the first file to be tested based on the time taken for the read operation of the original file to be read and the time taken for the read operation of the first file to be tested.

[0134] Optionally, a write test module, specifically configured to: use a pre-determined write performance test tool to perform a plurality of write operations on the original file to be written according to the write operation parameters, and obtain the time taken for the write operation of the original file to be written; use a pre-determined write performance test tool to perform a plurality of write operations on the second file to be tested according to the write operation parameters, and obtain the time taken for the write operation of the second file to be tested; obtain the write performance test result of the second file to be tested based on the time taken for the write operation of the original file to be written and the time taken for the write operation of the second file to be tested.

[0135] Optionally, the execution test module, specifically configured to: use a pre-determined execution performance test tool to perform a plurality of execution operations on the original file to be executed according to the execution operation parameters, and obtain the time taken for the execution operation of the original file to be executed; use a pre-determined execution performance test tool to perform a plurality of execution operations on the third file to be tested according to the execution operation parameters, and obtain the time taken for the execution operation of the third file to be tested; obtain the execution performance test result of the third file to be tested based on the time taken for the execution operation of the original file to be executed and the time taken for the execution operation of the third file to be tested.

[0136] Embodiment 3

[0137] As shown in the appendix Figure 4 As shown, Embodiment 3 provides an electronic device, including: a memory for storing a computer program; a processor for implementing the steps of the performance test method for static trusted protection files when executing the computer program; or, when the processor executes the computer program, implementing the functions of each module in the above-mentioned performance test system for static trusted protection files.

[0138] Exemplarily, the computer program can be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of completing preset functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.

[0139] The electronic device can be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the above are examples of electronic devices and do not constitute a limitation on the electronic device. It may include more components than the above, or combine certain components, or different components. For example, the electronic device further includes a communication interface, input / output devices, network access devices, and a bus.

[0140] The so-called processor may be a central processing unit, or may also be other general-purpose processors, digital signal processors, application-specific integrated circuits, off-the-shelf programmable gate arrays, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may also be any conventional processor, etc. The processor is the control center of the electronic device and connects various parts of the entire electronic device through various communication interfaces and lines.

[0141] The memory can be used to store the computer program and / or module. The processor realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory.

[0142] The memory may mainly include a program storage area and a data storage area. Among them, the program storage area may store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area may store data created according to the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0143] Embodiment 4

[0144] Embodiment 4 of the present invention also provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the performance testing method of the static trusted protection file are implemented.

[0145] If the modules / units integrated in the performance testing system of the static trusted protection file are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.

[0146] Based on such an understanding, all or part of the processes in the performance testing method of the static trusted protection file of the present invention can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the performance testing method of the static trusted protection file can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or a preset intermediate form, etc.

[0147] The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disc, a computer memory, a read-only memory, a random access memory, an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0148] The performance testing method of the static trusted protection file of the present invention can discover earlier the impact of setting the static trusted verification policy on various operations of the file, analyze the test results based on the test data, and provide a basis for optimizing and adjusting the static trusted verification function.

[0149] The above embodiments are only one of the implementation manners capable of implementing the technical solution of the present invention. The scope of protection required by the present invention is not limited to this embodiment only, but also includes any changes, substitutions and other implementation manners that are easily conceivable by any person skilled in the art within the technical scope disclosed by the present invention.

Claims

1. A performance testing method for static trusted protected files, characterized in that Including: Configure a static trusted verification policy for the original file to be read, and obtain the first file to be tested; Perform read operations on the original file to be read and the first file to be tested respectively, record the time taken for the read operation, and obtain the read performance test result of the first file to be tested based on the time taken for the read operation; Configure a static trusted verification policy for the original file to be written, and obtain the second file to be tested; Perform write operations on the original file to be written and the second file to be tested respectively, record the time taken for the write operation, and obtain the write performance test result of the second file to be tested based on the time taken for the write operation; Configure a static trusted verification policy for the original file to be executed, and obtain the third file to be tested; Perform execution operations on the original file to be executed and the third file to be tested respectively, record the time taken for the execution operation, and obtain the execution performance test result of the third file to be tested based on the time taken for the execution operation; Generate the performance test result of the static trusted protection file based on the read and write performance test result of the first file to be tested, the write performance test result of the second file to be tested, and the execution performance test result of the third file to be tested; Perform read operations on the original file to be read and the first file to be tested respectively, record the time taken for the read operation, and obtain the read performance test result of the first file to be tested, including: Perform a number of read operations on the original file to be read, and obtain the time taken for the read operation of the original file to be read; Perform a number of read operations on the first file to be tested, and obtain the time taken for the read operation of the first file to be tested; Calculate the difference between the time taken for the read operation of the original file to be read and the time taken for the read operation of the first file to be tested, and obtain the read time difference; Divide the read time difference by the time taken for the read operation of the original file to be read, and obtain the first increase ratio; Compare the first increase ratio with a preset first threshold to obtain the read performance test result of the first file to be tested; Perform write operations on the original file to be written and the second file to be tested respectively, record the time taken for the write operation, and obtain the write performance test result of the second file to be tested, including: Perform a number of write operations on the original file to be written, and obtain the time taken for the write operation of the original file to be written; Perform a number of write operations on the second file to be tested, and obtain the time taken for the write operation of the second file to be tested; Calculate the difference between the time taken for the write operation of the original file to be written and the time taken for the write operation of the second file to be tested, and obtain the write time difference; Divide the write time difference by the time taken for the write operation of the original file to be written, and obtain the second increase ratio; Compare the second increase ratio with a preset second threshold to obtain the write performance test result of the second file to be tested; Perform execution operations on the original file to be executed and the third file to be tested respectively, record the time taken for the execution operation, and obtain the execution performance test result of the third file to be tested, including: Perform a number of execution operations on the original file to be executed, and obtain the time taken for the execution operation of the original file to be executed; Perform a number of execution operations on the third file to be tested, and obtain the time taken for the execution operation of the third file to be tested; Calculate the difference between the execution time of the original file to be executed and the execution time of the third file to be tested to obtain the execution time difference; Divide the execution time difference by the execution time of the original file to be executed to obtain the third increase ratio; Compare the third increase ratio with the preset third threshold to obtain the execution performance test result of the third file to be tested.

2. The performance testing method for a static trusted protection file according to claim 1, characterized in that, Perform a number of read operations on the original file to be read to obtain the read operation time of the original file to be read, including: Perform a number of read operations on the original file to be read, and record the read operation time of the original file to be read each time; Calculate the average value of the read operation time of the original file to be read each time as the read operation time of the original file to be read; Perform a number of read operations on the first file to be tested to obtain the read operation time of the first file to be tested, including: Perform a number of read operations on the first file to be tested, and record the read operation time of the first file to be tested each time; Calculate the average value of the read operation time of the first file to be tested each time as the read operation time of the first file to be tested.

3. A performance testing method for a static trusted protection file according to claim 1, characterized in that, Perform a number of write operations on the original file to be written to obtain the write operation time of the original file to be written, including: Perform a number of write operations on the original file to be written, and record the write operation time of the original file to be written each time; Calculate the average value of the write operation time of the original file to be written each time as the write operation time of the original file to be written; Perform a number of write operations on the second file to be tested to obtain the write operation time of the second file to be tested, including: Perform a number of write operations on the second file to be tested, and record the write operation time of the second file to be tested each time; Calculate the average value of the write operation time of the second file to be tested each time as the write operation time of the second file to be tested.

4. A performance testing method for statically trusted protected files according to claim 1, characterized in that, Perform a number of execution operations on the original file to be executed to obtain the execution operation time of the original file to be executed, including: Perform a number of execution operations on the original file to be executed, and record the execution operation time of the original file to be executed each time; Calculate the average value of the execution operation time of the original file to be executed each time as the execution operation time of the original file to be executed; Perform a number of execution operations on the third file to be tested to obtain the execution operation time of the third file to be tested, including: Perform a number of execution operations on the third file to be tested, and record the execution operation time of the third file to be tested each time; Calculate the average value of the execution operation time of the third file to be tested each time as the execution operation time of the third file to be tested.

5. A performance testing system for statically trusted protected files, characterized in that, Including: The first file acquisition module is used to configure a static trusted verification policy for the original file to be read to obtain the first file to be tested; The read test module is used to perform read operations on the original file to be read and the first file to be tested respectively, record the read operation time, and obtain the read performance test result of the first file to be tested based on the read operation time; The second file acquisition module is used to configure a static trusted verification policy for the original file to be written to obtain the second file to be tested; A write test module for performing write operations on the original file to be written and the second file to be tested respectively, recording the time taken for the write operations, and obtaining the write performance test result of the second file to be tested based on the time taken for the write operations; A third file acquisition module for configuring a static trusted verification policy for the original file to be executed to obtain a third file to be tested; An execution test module for performing execution operations on the original file to be executed and the third file to be tested respectively, recording the time taken for the execution operations, and obtaining the execution performance test result of the third file to be tested based on the time taken for the execution operations; A test result output module for generating the performance test result of the static trusted protection file based on the read-write performance test result of the first file to be tested, the write performance test result of the second file to be tested, and the execution performance test result of the third file to be tested; Performing read operations on the original file to be read and the first file to be tested respectively, recording the time taken for the read operations, and obtaining the read performance test result of the first file to be tested based on the time taken for the read operations, including: Performing a number of read operations on the original file to be read to obtain the time taken for the read operations of the original file to be read; Performing a number of read operations on the first file to be tested to obtain the time taken for the read operations of the first file to be tested; Calculating the difference between the time taken for the read operations of the original file to be read and the time taken for the read operations of the first file to be tested to obtain the read time difference; Dividing the read time difference by the time taken for the read operations of the original file to be read to obtain the first increase ratio; Comparing the first increase ratio with a preset first threshold to obtain the read performance test result of the first file to be tested; Performing write operations on the original file to be written and the second file to be tested respectively, recording the time taken for the write operations, and obtaining the write performance test result of the second file to be tested based on the time taken for the write operations, including: Performing a number of write operations on the original file to be written to obtain the time taken for the write operations of the original file to be written; Performing a number of write operations on the second file to be tested to obtain the time taken for the write operations of the second file to be tested; Calculating the difference between the time taken for the write operations of the original file to be written and the time taken for the write operations of the second file to be tested to obtain the write time difference; Dividing the write time difference by the time taken for the write operations of the original file to be written to obtain the second increase ratio; Comparing the second increase ratio with a preset second threshold to obtain the write performance test result of the second file to be tested; Performing execution operations on the original file to be executed and the third file to be tested respectively, recording the time taken for the execution operations, and obtaining the execution performance test result of the third file to be tested based on the time taken for the execution operations, including: Performing a number of execution operations on the original file to be executed to obtain the time taken for the execution operations of the original file to be executed; Performing a number of execution operations on the third file to be tested to obtain the time taken for the execution operations of the third file to be tested; Calculating the difference between the time taken for the execution operations of the original file to be executed and the time taken for the execution operations of the third file to be tested to obtain the execution time difference; Dividing the execution time difference by the time taken for the execution operations of the original file to be executed to obtain the third increase ratio; Compare the third amplification ratio with a preset third threshold value to obtain the execution performance test result of the third file to be tested.

6. An electronic device, characterized in that, Including: A processor suitable for executing computer programs; A computer-readable storage medium storing a computer program, which when executed by the processor, implements the performance test method for the static trusted protection file according to any one of claims 1-4.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the performance test method for the static trusted protection file according to any one of claims 1-4.

Citation Information

Patent Citations

  • Performance evaluation of solid state memory device

    US20170032847A1

  • Attestation of a device under test

    US20240143766A1