Performance test method for static trusted protection file and related device

By reading, writing and executing operations time tests on static trusted protection files, the problem of lack of performance testing methods in the existing technology is solved, and comprehensive testing and policy optimization of the operation performance of static trusted protection files is achieved.

CN120196529AActive Publication Date: 2025-06-24XIAN THERMAL POWER RES INST CO LTD +2
View PDF 17 Cites 0 Cited by

Patent Information

Application Number
CN202510683369.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2025-06-24
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 static trusted verification strategies, affecting the user experience and the operation of business software.

Method used

It provides a performance testing method for static trusted protection files. By operating the original files to be read, written and executed, recording the operation time, and generating performance test results, to achieve a comprehensive test of the operation performance of static trusted protection files.

Benefits of technology

A comprehensive test of the operation performance of static trusted protection files is realized, and the impact of static trusted verification policies on file operations can be discovered earlier, providing an accurate basis for optimizing and adjusting static trusted verification policies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120196529A_ABST
    Figure CN120196529A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of credible file performance testing, and discloses a static credible protection file performance testing method and related device.The method comprises the steps that reading operation is conducted on a to-be-read original file and a first to-be-tested file, and a reading performance testing result of the first to-be-tested file is obtained; performing writing operation on the to-be-written original file and the second to-be-tested file to obtain a writing performance test result of the second to-be-tested file; executing the to-be-executed original file and the third to-be-tested file respectively to obtain an execution performance test result of the third to-be-tested file; generating a performance test result of the static credible protection file based on a read-write performance test result of the first to-be-tested file, a write-in performance test result of the second to-be-tested file and an execution performance test result of the third to-be-tested file; according to the method, the operation performance of the static credible protection file can be comprehensively tested, and an accurate basis is provided for optimizing and adjusting a static credible verification strategy.
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 of trusted files, and particularly relates to a performance testing method and related device for statically trusted protected 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 files during the reading, writing, and execution processes of the trusted controllers; files that are verified to be trusted can be read, written, or executed in the trusted controllers; while files that are verified to be untrusted cannot be read, written, or executed in the trusted controllers; the specific implementation principle is as follows: during the initialization stage of the trusted controller, the reference values of controlled objects, such as application programs, dynamic link libraries, kernel modules, configuration files, or data files, are calculated and stored in a preset database; when performing reading, writing, or execution operations on the controlled objects, they are processed according to the preset control methods in the configured static trusted verification policy.

[0004] A statically trusted protected file is a file protected by a static trusted verification policy. Since the static trusted verification policy is configured in the file, its time consumption during reading, writing, or execution operations is usually longer than that of a file not protected by the static trusted verification policy; when the operation time of the statically trusted protected 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 practical applications, there is no performance testing method for statically trusted protected files, and thus the purpose of precisely optimizing the static trusted verification policy cannot be achieved. Summary of the Invention

[0005] In view of the technical problems existing in the prior art, the present invention provides a performance testing method and related device for statically trusted protected files to solve the technical problem that there is no performance testing method for statically trusted protected files in practical 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: The present invention provides a performance testing method for statically trusted protected files, including: Configuring a static trusted verification policy for the original file to be read to obtain a first file to be tested; 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; Configure a static trusted verification policy for the original file to be written to obtain a second file to be tested; 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; Configure a static trusted verification policy for the original file to be executed to obtain a third file to be tested; 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; 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.

[0007] Further, 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, including: Perform a number of read operations on the original file to be read to 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 to 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 to obtain the difference in read time; Divide the difference in read time 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.

[0008] Further, perform a number of read operations on the original file to be read to obtain the time taken for the read operation of the original file to be read, including: Perform a number of 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; 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; Perform a number of 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: Perform a number of 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; Calculate the average value of the time used for each read operation of the first file to be tested, and use it as the time used for the read operation of the first file to be tested.

[0009] Furthermore, 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, including: Perform a number of write operations on the original file to be written to obtain the time used for the write operation of the original file to be written; Perform a number of write operations on the second file to be tested to obtain the time used for the write operation of the second file to be tested; Calculate the difference between the time used for the write operation of the original file to be written and the time used for the write operation of the second file to be tested to obtain the write time difference; Divide the write time difference by the time used for the write operation of the original file to be written to 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.

[0010] Furthermore, perform a number of write operations on the original file to be written to obtain the time used for the write operation of the original file to be written, including: Perform a number of write operations on the original file to be written and record the time used for each write operation of the original file to be written; Calculate the average value of the time used for each write operation of the original file to be written, and use it as the time used for the write operation of the original file to be written; Perform a number of write operations on the second file to be tested to obtain the time used for the write operation of the second file to be tested, including: Perform a number of write operations on the second file to be tested and record the time used for each write operation of the second file to be tested; Calculate the average value of the time used for each write operation of the second file to be tested, and use it as the time used for the write operation of the second file to be tested.

[0011] Furthermore, 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, including: Perform a number of execution operations on the original file to be executed to obtain the time used for the execution operation of the original file to be executed; Perform a number of execution operations on the third file to be tested to obtain the time used for the execution operation of the third file to be tested; Calculate the difference between the time used for the execution operation of the original file to be executed and the time used for the execution operation of the third file to be tested to obtain the execution time difference; Divide the execution time difference by the execution operation time of the original file to be executed to obtain the third increase ratio; Compare the third increase ratio with a preset third threshold to obtain the execution performance test result of the third file to be tested.

[0012] Further, 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.

[0013] The present invention also provides a performance test system for a static trusted protection file, including: A first file acquisition module for configuring a static trusted verification policy for the original file to be read to obtain a first file to be tested; A read test module for respectively performing read operations on the original file to be read and the first file to be tested, recording the read operation time, and obtaining the read performance test result of the first file to be tested based on the read operation time; A second file acquisition module for configuring a static trusted verification policy for the original file to be written to obtain a second file to be tested; A write test module for respectively performing write operations on the original file to be written and the second file to be tested, recording the write operation time, and obtaining the write performance test result of the second file to be tested based on the write operation time; 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 respectively performing execution operations on the original file to be executed and the third file to be tested, recording the execution operation time, and obtaining the execution performance test result of the third file to be tested based on the execution operation time; A test result output module for generating a 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.

[0014] The present invention also provides an electronic device, including: a processor, adapted to execute a computer program; a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by the processor, the performance testing method of the static trusted protection file is executed.

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

[0016] Compared with the prior art, the beneficial effects of the present invention are: The performance testing method of the static trusted protection file 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 file to be tested. According to the recorded time taken for the read, write, and execute operations of the original file and the file to be tested, the test results of the read performance, write performance, and execute performance of the file to be tested are obtained, realizing a comprehensive test of the operation performance of the static trusted protection file, being able to more quickly discover the impact on various operations of the file after configuring the static trusted verification policy, and providing an accurate basis for optimizing and adjusting the static trusted verification policy.

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

[0018] Figure 1 is a flowchart of the performance testing method of the static trusted protection file provided by the present invention; Figure 2 is a flowchart of the performance testing method of the static trusted protection file provided in Embodiment 1; Figure 3 is a structural block diagram of the performance testing system of the static trusted protection file provided in Embodiment 2; Figure 4 is a structural block diagram of the electronic device provided in Embodiment 3. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0019] 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.

[0020] As shown in the appendix Figure 1 shown in the appendix Figure 1 a schematic flowchart of a performance test method for a static trusted protected file provided by the present invention is given; the performance test method for the static trusted protected file includes the following steps: Step 100: Configure a static trusted verification policy for the original file to be read to obtain a first file to be tested.

[0021] Step 200: 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 operations, and obtain the read performance test result of the first file to be tested based on the time taken for the read operations.

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

[0023] Step 400: 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 operations, and obtain the write performance test result of the second file to be tested based on the time taken for the write operations.

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

[0025] Step 600: 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 operations, and obtain the execution performance test result of the third file to be tested based on the time taken for the execution operations.

[0026] Step 700: Generate a performance test result for 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.

[0027] The present invention also provides a performance test system for a static trusted protected 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.

[0028] The first file acquisition module is used to configure a static trusted verification policy for the original file to be read, and 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 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 the 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 the 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.

[0029] The performance test method of the static trusted protection file described in 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.

[0030] The following uses some specific embodiments to further explain the performance test method of the static trusted protection file provided by the present invention: Embodiment 1 As shown in the appendix Figure 2 This Embodiment 1 provides a performance test method of a static trusted protection file, including the following steps: Step 1: Determine the original file to be read and the read operation parameters.

[0031] Step 2: Configure a static trusted verification policy for the original file to be read, and obtain the 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 the static trusted protection file for read test as the first file to be tested.

[0032] 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: 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.

[0033] 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.

[0034] 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, and obtain the time taken for the read operation of the first file to be tested. The specific process includes: 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.

[0035] 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.

[0036] 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.

[0037] 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 time difference for the read operation of the first file to be tested; divide the time difference for the read operation 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.

[0038] 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 expectations; 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 expectations. At this time, the preset static trusted verification policy needs to be optimized; preferably, the preset first threshold is 0.05.

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

[0040] 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 a preset static trusted verification policy for the original file to be written to obtain a static trusted protection file for write testing as the second file to be tested.

[0041] Step 8: Use a pre-determined write performance testing 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: Step 801: Use a pre-determined write performance testing 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.

[0042] 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 value and the minimum value 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.

[0043] Step 9: Use a pre-determined write performance testing 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: Step 901: Use a pre-determined write performance testing 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.

[0044] Step 902: 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. Specifically, remove the maximum value and the minimum value from all the write operation times of the second file to be tested, and then calculate the average value using the remaining write operation times of the second file to be tested as the write operation time of the second file to be tested.

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

[0046] 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.

[0047] 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 expectations; 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 expectations. At this time, it is necessary to optimize the preset static trusted verification policy; preferably, the preset second threshold is 0.05.

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

[0049] 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 performing tests, which is used as the third file to be tested.

[0050] 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: 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.

[0051] Step 132: 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. Specifically, remove the maximum and minimum values from all the execution operation times of the original file to be executed, and then calculate the average value using the remaining execution operation times of the original file to be executed as the execution operation time of the original file to be executed.

[0052] Step 14: Use a pre-determined execution performance test 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: Step 141: Use a pre-determined execution performance testing tool to perform a pre-set number of execution operations on the third file to be tested according to the execution operation parameters, and record the execution operation time for each time the third file to be tested is executed. Preferably, the pre-set number of execution operations is 100 times.

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

[0054] 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.

[0055] 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 a pre-set third threshold to obtain the execution performance test result of the third file to be tested.

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

[0057] Step 16: 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.

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

[0059] The performance testing method for the static trusted protection file described in Embodiment 1 realizes the accurate testing of the operation performance of the static trusted protection file by obtaining the time taken for reading, writing, and executing operations of 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 of the original file with those of 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.

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

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

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

[0063] The read testing 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.

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

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

[0066] The write testing 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.

[0067] The third file determination module is used to determine the original file to be executed and the execution operation parameters.

[0068] The third file acquisition module is used to configure the static trusted verification policy for the original file to be executed to obtain the third file to be tested.

[0069] The execution testing 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 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.

[0070] A test result output module, configured to generate a test report based on the read-write performance test result, the write performance test result, 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.

[0071] Optionally, a read test module, specifically configured to: use a predetermined 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 to obtain the read operation time of the original file to be read; use a predetermined read performance test tool to perform a plurality of read operations on the first file to be tested according to the read operation parameters to obtain the read operation time of the first file to be tested; obtain the read performance test result of the first file to be tested based on the read operation time of the original file to be read and the read operation time of the first file to be tested.

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

[0073] Optionally, an execution test module, specifically configured to: use a predetermined execution performance test tool to perform a plurality 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; use a predetermined execution performance test tool to perform a plurality 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; 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.

[0074] Embodiment 3 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 of the static trusted protection file when executing the computer program; or, the processor implements the functions of each module in the above-mentioned performance test system of the static trusted protection file when executing the computer program.

[0075] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may 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.

[0076] The electronic device may 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 the electronic device, which do not constitute a limitation on the electronic device. It may include more components than the above, or combine some components, or different components. For example, the electronic device further includes a communication interface, input and output devices, a network access device, and a bus.

[0077] 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 uses various communication interfaces and lines to connect all parts of the entire electronic device.

[0078] The memory may 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.

[0079] 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, a 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.

[0080] Embodiment 4 This Embodiment 4 further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the performance test method for a static trusted protection file are implemented.

[0081] If the modules / units integrated in the performance test system of the static trusted protection file are 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.

[0082] Based on such an understanding, all or part of the processes in the above-mentioned performance test method for 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 above-mentioned performance test method for 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 preset intermediate form, etc.

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

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

[0085] The above-mentioned 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 only by this embodiment, but also includes any changes, substitutions and other implementation manners that are easily conceivable by those skilled in the art within the technical scope disclosed by the present invention.

Claims

1. A performance testing method for statically trusted protected files, characterized in that, Including: Configure a static trusted verification policy for the original file to be read to obtain a 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 operations, and obtain the read performance test result of the first file to be tested based on the time taken for the read operations; Configure a static trusted verification policy for the original file to be written to obtain a 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 operations, and obtain the write performance test result of the second file to be tested based on the time taken for the write operations; Configure a static trusted verification policy for the original file to be executed to obtain a 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 operations, and obtain the execution performance test result of the third file to be tested based on the time taken for the execution operations; 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.

2. The performance testing method for a static trusted protection file according to claim 1, characterized in that, 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 operations, and obtain the read performance test result of the first file to be tested, including: Perform several 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; Perform several 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; Calculate 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 difference in read time; Divide the difference in read time by the time taken for the read operations 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.

3. The performance testing method for a static trusted protection file according to claim 2, wherein Perform several 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, including: 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; 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 operations of the original file to be read; Perform several 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, including: 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; 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 operations of the first file to be tested.

4. A performance testing method for static trusted protection files according to claim 1, characterized in that 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 operations, and obtain the write performance test result of the second file to be tested, including: Perform several 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; Perform several 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; 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; Divide the writing time difference 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.

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

6. The performance testing method for a static trusted protection file according to claim 1, characterized in that Perform execution operations on the original file to be executed and the third file to be tested respectively, record the execution operation time, and obtain the execution performance test result of the third file to be tested based on the execution operation time, including: 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; 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; 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; Divide the execution time difference 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.

7. A performance testing method for statically trusted protected files according to claim 6, 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.

8. 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 reading test module is used to perform reading operations on the original file to be read and the first file to be tested respectively, record the reading operation time, and obtain the reading performance test result of the first file to be tested based on the reading 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, configured 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 operations, and obtain 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, configured to configure a static trusted verification policy for the original file to be executed to obtain a third file to be tested; 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 operations, and obtain 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, configured to generate a 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.

9. An electronic device, characterized in that, Comprising: A processor, adapted to execute a computer program; A computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by the processor, it executes the performance test method of the static trusted protection file according to any one of claims 1-7.

10. 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 of the static trusted protection file according to any one of claims 1-7.

Citation Information

Patent Citations

  • Librgw performance test method and device and computer device

    CN109976957A

  • File reading performance test method and device, equipment and storage medium

    CN111986726A

  • Fuzzy testing method and system for trusted execution environment of Internet of Things

    CN114610640A

  • File testing method and system, electronic equipment and readable storage medium

    CN115114230A

  • Virtual machine trusted security enhancement method and system

    CN115934245A