Intelligent computer performance test system based on Shell script
By designing an intelligent computer performance testing system based on Shell scripts, the problem of low degree of automation of computer performance testing in the existing technology and the inability to customize the test content is solved, and efficient and accurate automated testing and optimization solutions are achieved.
Patent Information
- Application Number
- CN202411556031.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-03-07
AI Technical Summary
The existing computer performance testing system cannot obtain test information in advance and cannot customize the test content according to user needs, resulting in the test effect not meeting user needs and requires human-computer interaction, resulting in manual misoperation and reduced testing efficiency and accuracy.
Design an intelligent computer performance testing system based on Shell scripts, including test package program installation module, file generation module, file update module, execution module, test preparation module, test item composition module, test item change module, performance test module, maximum CPU peak extraction module, test result generation module, display module, optimization partition module and optimization strategy recommendation module to realize automated testing, data transmission and result display.
It improves the degree of automation of computer performance testing, reduces human-computer interaction, improves testing efficiency and accuracy, can customize test content according to user needs, meets the testing needs of different users, and provides optimization solutions to improve the overall performance of the computer system.
Smart Images

Figure CN119576762A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of computer performance testing, in particular to an intelligent computer performance testing system based on Shell scripts. Background Art
[0002] Shell script is a scripting language used for programming and automating tasks in Unix / Linux systems. It can be executed directly in the command line through the interpreter. It can call system commands, manage file systems, perform process control and other operations. Computer use is becoming more and more popular, and corporate office systems are becoming more and more intelligent. If you want to improve the work efficiency of your company, you can make full use of computer systems. With the increase in computer utilization, the performance requirements for computer systems are also increasing, so it is necessary to test the performance of computer systems. However, with the development of computer systems, the types of business are gradually increasing, making system configuration complicated.
[0003] Common computer performance testing systems cannot obtain test information in advance when testing computer systems, and generally use a consistent test sequence and test items for performance testing. The test content cannot be customized according to user needs, resulting in test results that do not meet user needs. In the past, computer performance stress testing often required testers to manually install the compiler environment and configure the mpich2 environment, which required a lot of human-computer interaction. Once operators participated in more testing processes, manual misoperation and other problems may occur, reducing test efficiency and test accuracy, resulting in imperfect computer system performance.
[0004] Therefore, how to improve the automation level of computer performance testing, avoid human-computer interaction, and thus improve testing efficiency and accuracy is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The technical task of the present invention is to provide an intelligent computer performance testing system based on Shell scripts to solve the problem of how to improve the automation level of computer performance testing, avoid human-computer interaction, and thus improve testing efficiency and accuracy.
[0006] The technical task of the present invention is achieved in the following manner: an intelligent computer performance testing system based on Shell script, the system comprising:
[0007] A test package program installation module is used to trigger and automatically install the software test package program;
[0008] The file generation module is used to generate HPL.Dat file when the mpich software is installed;
[0009] A file update module, used to update the HPL.Dat file generated during the installation of the software test package program;
[0010] An execution module, used for transmitting data;
[0011] A test preparation module is used to provide test information for the computer performance test and process the test information;
[0012] A test item construction module is used to construct test items according to separated test information, thereby obtaining computer system performance test content and recording test item information;
[0013] Test item change module, used to set up unique test plans for computer performance according to user needs;
[0014] The performance test module is used to perform performance test on the computer to be tested according to the installed test software package program and the generated HPL.Dat file;
[0015] Maximum CPU peak value extraction module, used to extract the maximum CPU peak value of the computer;
[0016] The test result generation module is used to generate the performance test result of the computer to be tested according to the theoretical CPU peak value and the test threshold of the computer to be tested;
[0017] The display module is used to intuitively display the performance test results and optimization strategy recommendations of the computer under test in the form of text, charts or tables on the display screen;
[0018] The optimized partition module is used to mark the advantages and disadvantages of various performance tests after multiple computer performance tests, which is convenient for users to view;
[0019] The optimization strategy recommendation module is used to analyze the appropriate optimization plan based on the advantages and disadvantages of multiple computer performance tests and computer information, and recommend the optimization plan to the corresponding user to promote the improvement of computer performance and improve the overall performance of the computer.
[0020] Preferably, the test package program installation module includes:
[0021] Compiler installation submodule, used to install the Ccompiler compiler;
[0022] The mpich software installation submodule is used to install the mpich software;
[0023] The environment variable adding submodule is used to add environment variables to the installation path of the mpich software.
[0024] Preferably, the file update module includes:
[0025] The device information acquisition submodule is used to obtain the number of CPU cores and memory size of the computer under test after the computer under test is started and running;
[0026] The first calculation submodule is used to calculate P (the number of rows of the process grid) and Q (the number of columns of the process grid) values according to the obtained number of CPU cores of the computer to be tested;
[0027] The second calculation submodule is used to calculate the NS (solver iteration number) value according to the acquired memory size of the computer to be tested;
[0028] The file parameter modification submodule is used to modify the P, Q and NS values in the generated HPL.Dat file according to the calculated P, Q and NS values.
[0029] Preferably, the test result generating module comprises:
[0030] A pre-calculation submodule is used to pre-calculate the theoretical CPU peak value and test threshold of the computer to be tested;
[0031] A comparison and judgment submodule is used to compare the extracted maximum CPU peak value of the computer to be tested with the pre-calculated theoretical CPU peak value, and judge the ratio parameter of the maximum CPU peak value to the pre-calculated theoretical CPU peak value;
[0032] A first generating submodule, for generating a performance test result including a test pass when the ratio parameter is greater than or equal to a test threshold;
[0033] The second generating submodule is used to generate a performance test result including a test failure when the ratio parameter is less than the test threshold.
[0034] Preferably, the performance test module includes a load test submodule, a stress test submodule, a benchmark test submodule, a matching test submodule, a capacity test submodule, a stability test submodule and an extensibility test submodule. The load test submodule can test the performance change curve of the computer system under various loads, find the performance inflection point of the computer system and find the best performance of the computer system. The benchmark test submodule compares the changes of various performance indicators of the computer system during the iteration process to provide a reference for the version iteration optimization of the computer system. The matching test submodule finds the best allocation ratio of various resource indicators of the computer system, so as to achieve the purpose of comprehensive analysis and prediction of computer performance, which is helpful to improve the performance of the computer system and promote the improvement of the computer system.
[0035] The stress test submodule is used to evaluate performance under extreme load conditions, including CPU, memory, and disk resource usage, as well as key performance indicators such as response time and throughput, and to detect stability and reliability under high-stress environments. The details are as follows:
[0036] Shell script loop and timing: Use the loop structure and timing function of Shell script to simulate a large number of user requests or high-load tasks, and record key performance indicators such as response time and throughput;
[0037] Sysbench tool: Use Sysbench professional performance testing tool to perform stress tests on key resources such as CPU, memory, and disk to obtain detailed performance data;
[0038] Custom scripts and tools: Write custom Shell scripts and tools based on specific needs to simulate specific stress scenarios, including large-scale file reading and writing and database queries;
[0039] The capacity test submodule is used to determine the maximum load that can be handled while meeting performance indicators; the details are as follows:
[0040] Load generation tools: Use load generation tools (such as ab, jmeter, etc.) to simulate user requests, gradually increase the load, and observe performance changes;
[0041] Shell script automated testing: Write Shell scripts to automatically execute load generation tools and record performance indicators at each load point;
[0042] Data analysis and visualization: Use Shell scripts or third-party tools to process and analyze test data, generate charts and reports, and intuitively display capacity test results to find the maximum capacity point;
[0043] The stability test submodule is used to detect stability under high load or long-term operation conditions; the details are as follows:
[0044] Long-running test: Write Shell scripts, set long-running test tasks, and detect stability under high load or long-running conditions;
[0045] Abnormal detection and recording: During the test, the monitoring and logging functions of the Shell script are used to detect in real time whether there are abnormal crashes or restarts, and record abnormal information;
[0046] Fault recovery test: simulate fault scenarios and test stability and performance after fault recovery;
[0047] The scalability test submodule is used to evaluate the performance changes when adding hardware resources (such as CPU, memory, disk, etc.) or the number of users; the details are as follows:
[0048] Resource expansion simulation: Use virtualization technology or physical hardware to simulate the expansion of resources (such as CPU, memory, disk, etc.);
[0049] Simulation of increasing the number of users: Use load generation tools or custom shell scripts to simulate a gradual increase in the number of users and observe changes in performance;
[0050] Performance testing and comparison: Perform performance testing at each extension point and record the test results. Use Shell scripts or third-party tools to compare and analyze the test results to evaluate scalability.
[0051] Preferably, the test preparation module cleans the test information, deletes useless and duplicate information in the test information, makes the computer performance more accurate in the test, separates the test information by type, and constructs test items using the separated test information to obtain the test content. When the user conducts a computer performance test, the user selects the test items in the test content according to the needs. After the selection is completed, the test items are directly extracted for testing to meet the testing needs of different users.
[0052] Preferably, the display module uses Shell scripts to write scripts for display, including interface displays of "test passed" and "test failed" and a data display interface.
[0053] Preferably, the test item change module uses Shell script to write a script for managing test item changes, and the script for managing test item changes includes commands and logic for adding, deleting, and modifying test items.
[0054] As a preferred embodiment, the working process of the system is as follows:
[0055] S1. The test package program installation module will trigger and automatically install the software test package program;
[0056] S2. When the mpich software is installed, the file generation module generates the HPL.Dat file;
[0057] S3, after the computer to be tested is started and running, the HPL.Dat file generated during the installation of the software test package program is updated through the file update module;
[0058] S4, the file update module transmits the data to the performance test module through the execution module;
[0059] S5, the performance test module tests the computer to be tested according to the installed software test package program and the generated HPL.Dat file, and the test preparation module provides test information for the test of computer performance;
[0060] S6. The test item composition module simulates various test items according to the test information and records the test item information;
[0061] S7, the test item change module sets the test plan of computer performance according to user needs;
[0062] S8, the maximum CPU peak value extraction module extracts the maximum CPU peak value of the computer, and generates a test result through the test result generation module;
[0063] S9. Analyze the advantages and disadvantages of computer performance by optimizing and distinguishing modules;
[0064] S10, the optimization strategy recommendation module recommends optimization solutions based on the computer's performance and parameter information;
[0065] S11. Display optimization solution recommendations and test results through a display module.
[0066] The Shell script-based intelligent computer performance testing system of the present invention has the following advantages:
[0067] (i) The present invention can construct test items according to separated test information through the test item composition module, so as to obtain the system performance test content of the computer. The test information needs to be stored in the record first, which can increase the reliability and stability of information transmission. When the user performs computer performance testing, the test items in the test content can be selected according to the needs. After the selection is completed, the test items are directly extracted for testing, which meets the testing needs of different users, makes the performance testing system more targeted, constructs test items in advance, and improves the efficiency and accuracy of computer performance testing;
[0068] (ii) The present invention can test the performance change curve of the computer system under various loads through the load testing unit, find the performance inflection point of the computer system and find the optimal performance of the system. The benchmark testing unit can compare the changes of various performance indicators of the system during the iteration process, provide a reference for the version iteration optimization of the system, and find the optimal allocation ratio of various resource indicators of the system through the allocation test unit, so as to achieve the purpose of comprehensive analysis and prediction of computer performance, which is helpful to improve the performance of the computer system and promote the improvement of the computer system.
[0069] (III) The present invention triggers and automatically installs the software test package program through the test package program installation module, tests the computer to be tested according to the installed software test package program and the generated HPL.Dat file, extracts the maximum CPU peak value of the computer to be tested, compares the extracted maximum CPU peak value with the pre-calculated theoretical CPU peak value, generates the performance test result of the computer to be tested, and displays it through the display module, thereby realizing the test of computer performance, with a high degree of automation, avoiding human-computer interaction, and improving the test efficiency and accuracy;
[0070] (iv) The present invention sets an optimization differentiation module, and after multiple computer performance tests are performed, the advantages and disadvantages of multiple performance tests can be marked, which is convenient for users to view. The optimization strategy recommendation module is used to analyze the advantages, disadvantages and computer information of multiple computer performance tests to find a suitable optimization plan, and then the optimization plan is recommended to the user, thereby promoting the improvement of the computer system and improving the overall performance of the computer;
[0071] (V) The present invention can test the performance change curve of the computer system under various loads through the load test submodule, find the performance inflection point of the system and find the optimal performance of the system. The benchmark test submodule can compare the changes of various performance indicators of the system during the iteration process, providing a reference for the version iteration optimization of the system. The allocation test submodule can find the optimal allocation ratio of various resource indicators of the system, so as to achieve the purpose of comprehensive analysis and prediction of computer performance.
[0072] (VI) The present invention can construct test items according to separated test information through the test item composition module, thereby obtaining the system performance test content of the computer. The test information needs to be stored in the record first, which can increase the reliability and stability of information transmission. When the user performs computer performance testing, the user can select the test items in the test content according to the needs. After the selection is completed, the test items can be directly extracted for testing, thereby meeting the testing needs of different users and making the performance testing system more targeted. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] The present invention is further described below in conjunction with the accompanying drawings.
[0074] Attached Figure 1 It is a schematic diagram of the structure of the intelligent computer performance testing system based on Shell script;
[0075] Attached Figure 2 Flowchart of the working process of installing modules for the test package program. DETAILED DESCRIPTION
[0076] The Shell script-based intelligent computer performance testing system of the present invention is described in detail below with reference to the accompanying drawings and specific embodiments of the specification.
[0077] Example:
[0078] As attached Figure 1 As shown, this embodiment provides an intelligent computer performance testing system based on Shell script, which includes a test package program installation module, a file generation module, a file update module, an execution module, a test preparation module, a test item composition module, a test item change module, a performance testing module, a maximum CPU peak extraction module, a test result generation module, a display module, an optimization distinction module, and an optimization strategy recommendation module, and a computer performance testing script is written based on Shell.
[0079] In this embodiment, the test item composition module can construct test items according to the separated test information, so as to obtain the system performance test content of the computer. The test information needs to be stored in the record first, which can increase the reliability and stability of information transmission. When performing computer performance testing, the user can select the test items in the test content according to the needs. After the selection is completed, the test items can be directly extracted for testing to meet the testing needs of different users, so that the performance testing system has stronger pertinence, and the test items are constructed in advance to improve the efficiency and accuracy of computer performance testing. An optimization distinction module is set. After multiple computer performance tests, the advantages and disadvantages of multiple performance tests can be marked for user viewing. The optimization strategy recommendation module is used to analyze the appropriate optimization plan in combination with the advantages, disadvantages and computer information of multiple computer performance tests, and then the optimization plan is recommended to the user, which promotes the improvement of the computer system and improves the overall performance of the computer.
[0080] As attached Figure 2 As shown, the test package program installation module is used to trigger and automatically install the software test package program, and the test package program installation module includes:
[0081] Compiler installation submodule, used to install the Ccompiler compiler;
[0082] The mpich software installation submodule is used to install the mpich software;
[0083] The environment variable adding submodule is used to add environment variables to the installation path of the mpich software.
[0084] The file generation module is used to generate the HPL.Dat file when the mpich software is installed.
[0085] The file update module includes:
[0086] The device information acquisition submodule obtains the number of CPU cores and memory size of the computer under test after the computer under test is started and running;
[0087] The first calculation submodule calculates P and Q values according to the obtained number of CPU cores of the computer to be tested;
[0088] The second calculation submodule calculates the NS value according to the acquired memory size of the computer to be tested;
[0089] The file parameter modification submodule modifies the P, Q and NS values in the generated HPL.Dat file according to the calculated P, Q and NS values. Among them, in the HPL test, P, Q and NS are key configuration parameters. P (Process grid size, the number of rows of the process grid): indicates the number of processes along one dimension in the process grid (usually the number of rows). In parallel computing, this determines how to distribute the rows of the matrix among processors. Q (Process grid size, the number of columns of the process grid): indicates the number of processes along another dimension in the process grid (usually the number of columns). Together with P, it defines the two-dimensional grid layout of the process for parallelization of matrix operations. Q determines how to distribute the columns of the matrix among processors. NS (Number of solveriterations, the number of solver iterations): indicates the number of iterations to solve the linear equations in the HPL test. This value affects the depth of the test and the overall scale of the calculation. NS is usually adjusted according to the available memory of the system and the expected performance test results.
[0090] The test item change module is used to set up unique test plans for computer performance according to user needs, and use Shell scripts to write scripts for managing test item changes, including commands and logic for adding, deleting, and modifying test items.
[0091] The performance test module includes a load test submodule, a stress test submodule, a benchmark test submodule, a matching test submodule, a capacity test submodule, a stability test submodule, and an extensibility test submodule; the performance test module is used to perform performance tests on the computer to be tested according to the installed software test package program and the generated HPL.Dat file; the load test submodule can test the performance change curve of the computer system under various loads, find the system's performance inflection point and find the system's optimal performance; the benchmark test submodule can compare the changes in various performance indicators of the system during the iteration process, and provide a reference for the system's version iteration optimization; the matching test submodule can find the optimal allocation ratio of various resource indicators of the system, so as to achieve the purpose of comprehensive analysis and prediction of computer performance, which is helpful to improve the system's performance and promote the improvement of the computer system;
[0092] The stress test submodule is used to evaluate performance under extreme load conditions, including CPU, memory, and disk resource usage, as well as key performance indicators such as response time and throughput, and to detect stability and reliability under high-stress environments. The details are as follows:
[0093] ① Shell script loop and timing: Use the loop structure and timing function of Shell script to simulate a large number of user requests or high-load tasks, and record key performance indicators such as response time and throughput;
[0094] ② Sysbench tool: Use sysbench professional performance testing tool to perform stress tests on key resources such as CPU, memory, and disk to obtain detailed performance data;
[0095] ③ Custom scripts and tools: Write custom Shell scripts and tools based on specific needs to simulate specific stress scenarios, including large-scale file reading and writing and database queries;
[0096] The capacity test submodule is used to determine the maximum load that can be handled while meeting performance indicators; the details are as follows:
[0097] ① Load generation tools: Use load generation tools (such as ab, jmeter, etc.) to simulate user requests, gradually increase the load, and observe performance changes;
[0098] ② Shell script automated testing: Write Shell scripts to automatically execute load generation tools and record performance indicators at each load point;
[0099] ③Data analysis and visualization: Use Shell scripts or third-party tools to process and analyze test data, generate charts and reports, and intuitively display capacity test results to find the maximum capacity point;
[0100] The stability test submodule is used to detect stability under high load or long-term operation conditions; the details are as follows:
[0101] ① Long-running test: Write Shell scripts, set long-running test tasks, and detect stability under high load or long-running conditions;
[0102] ② Abnormal detection and recording: During the test, the monitoring and logging functions of the Shell script are used to detect in real time whether there are abnormal situations such as crashes or restarts, and record abnormal information;
[0103] ③Fault recovery test: simulate fault scenarios and test stability and performance after fault recovery;
[0104] The scalability test submodule is used to evaluate the performance changes when adding hardware resources (such as CPU, memory, disk, etc.) or the number of users; the details are as follows:
[0105] ① Resource expansion simulation: Use virtualization technology or physical hardware to simulate the expansion of resources (such as CPU, memory, disk, etc.);
[0106] ② User number increase simulation: Use load generation tools or custom Shell scripts to simulate the gradual increase in the number of users and observe performance changes;
[0107] ③Performance testing and comparison: Perform performance testing at each extension point and record the test results. Use Shell scripts or third-party tools to compare and analyze the test results to evaluate scalability.
[0108] The test result generation module includes:
[0109] A pre-calculation submodule is used to pre-calculate the theoretical CPU peak value and test threshold of the computer to be tested;
[0110] The comparison and judgment submodule compares the extracted maximum CPU peak value of the computer to be tested with the pre-calculated theoretical CPU peak value, and judges the ratio parameter of the maximum CPU peak value to the pre-calculated theoretical CPU peak value;
[0111] A first generating submodule generates a performance test result including a test pass when the ratio parameter is greater than or equal to a test threshold;
[0112] The second generation submodule generates a performance test result including a test failure when the ratio parameter is less than the test threshold.
[0113] The display module is used to display the performance test results and optimization strategy recommendations of the computer under test. It can be displayed intuitively on the display screen and presented to the user in the form of text, charts or tables. The script for display is written using Shell scripts, including interface displays of "test passed" and "test failed" and data display interfaces.
[0114] The software test package program is triggered and automatically installed through the test package program installation module. According to the installed software test package program and the generated HPL.Dat file, the computer to be tested is tested, and the maximum CPU peak value of the computer to be tested is extracted. The extracted maximum CPU peak value is compared with the pre-calculated theoretical CPU peak value to generate the performance test result of the computer to be tested, which is displayed through the display module to realize the test of computer performance. The automation degree is high, human-computer interaction is avoided, and the test efficiency and accuracy are improved.
[0115] In summary, the software test package program is triggered and automatically installed through the test package program installation module. According to the installed software test package program and the generated HPL.Dat file, the test preparation module can provide test information for the computer performance test, clean the test information, delete useless information and duplicate information in the test information, make the computer performance more accurate in the test, separate the test information according to the type, and use the separated test information to build the test items, so as to obtain the test content. When the user conducts the computer performance test, the test items in the test content can be selected according to the needs. After the selection is completed, the test items can be directly extracted for testing to meet the test needs of different users. The performance test system is more targeted, and the test items are built in advance to improve the efficiency and accuracy of computer performance testing. At this time, a temporary database is established, and computer performance information is obtained based on the temporary database. The computer performance is tested through the performance test module. The load test submodule can test the performance change curve of the computer system under various loads, find the performance inflection point of the system and find the best performance of the system. The benchmark test submodule can compare the changes of various performance indicators of the system during the iteration process, and provide a reference for the version iteration optimization of the system. The best allocation ratio of various resource indicators of the system can be found through the allocation test submodule to achieve comprehensive analysis. The purpose of analyzing and predicting computer performance is to help improve the performance of the system and promote the improvement of the computer system. The computer performance information is recorded, and a parameter table is drawn according to the computer information. At the same time, the parameter adjustment range without affecting the computer performance is calculated. The user can adjust the content in the parameter table according to the needs, and then the adjusted parameters are fed back to the system. The computer performance is adjusted according to the feedback parameters, and it is summarized as computer performance. Then the computer performance is tested again, and the advantages and disadvantages of two or more groups of performance are viewed. The comprehensive score of the performance is calculated, and the comprehensive score of the computer performance is sorted and processed, so that the user can view the best computer performance. Combined with multiple computer performance and computer information, the appropriate computer parameter configuration is analyzed to obtain the optimization plan, and the optimization plan is displayed to the user. When the user confirms and records the optimization plan, the computer information will be deleted immediately, so as to better protect the computer information. The optimization distinction module is set. After multiple computer performance tests, the advantages and disadvantages of multiple performance tests can be marked, which is convenient for users to view. The optimization strategy recommendation module is used to analyze the appropriate optimization plan in combination with the advantages, disadvantages and computer information of multiple computer performance tests, and then the optimization plan is recommended to the user, which promotes the improvement of the computer system and improves the comprehensive performance of the computer.
[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An intelligent computer performance testing system based on Shell script, characterized in that: The system includes: A test package program installation module is used to trigger and automatically install the software test package program; The file generation module is used to generate HPL.Dat file when the mpich software is installed; A file update module, used to update the HPL.Dat file generated during the installation of the software test package program; An execution module, used for transmitting data; A test preparation module is used to provide test information for the computer performance test and process the test information; A test item construction module is used to construct test items according to separated test information, thereby obtaining computer system performance test content and recording test item information; Test item change module, used to set up unique test plans for computer performance according to user needs; The performance test module is used to perform performance test on the computer to be tested according to the installed test software package program and the generated HPL.Dat file; Maximum CPU peak value extraction module, used to extract the maximum CPU peak value of the computer; The test result generation module is used to generate the performance test result of the computer to be tested according to the theoretical CPU peak value and the test threshold of the computer to be tested; The display module is used to intuitively display the performance test results and optimization strategy recommendations of the computer under test in the form of text, charts or tables on the display screen; The optimized partition module is used to mark the advantages and disadvantages of various performance tests after multiple computer performance tests, which is convenient for users to view; The optimization strategy recommendation module is used to analyze the appropriate optimization plan based on the advantages and disadvantages of multiple computer performance tests and computer information, and recommend the optimization plan to the corresponding user.
2. The Shell script-based intelligent computer performance testing system according to claim 1, characterized in that: The test package program installation module includes: Compiler installation submodule, used to install the Ccompiler compiler; The mpich software installation submodule is used to install the mpich software; The environment variable adding submodule is used to add environment variables to the installation path of the mpich software.
3. The Shell script-based intelligent computer performance testing system according to claim 1, characterized in that: The file update module includes: The device information acquisition submodule is used to obtain the number of CPU cores and memory size of the computer under test after the computer under test is started and running; The first calculation submodule is used to calculate the P and Q values according to the obtained number of CPU cores of the computer to be tested; The second calculation submodule is used to calculate the NS value according to the acquired memory size of the computer to be tested; The file parameter modification submodule is used to modify the P, Q and NS values in the generated HPL.Dat file according to the calculated P, Q and NS values.
4. The Shell script-based intelligent computer performance testing system according to claim 1, characterized in that: The test result generating module comprises: A pre-calculation submodule is used to pre-calculate the theoretical CPU peak value and test threshold of the computer to be tested; A comparison and judgment submodule is used to compare the extracted maximum CPU peak value of the computer to be tested with the pre-calculated theoretical CPU peak value, and judge the ratio parameter of the maximum CPU peak value to the pre-calculated theoretical CPU peak value; A first generating submodule, for generating a performance test result including a test pass when the ratio parameter is greater than or equal to a test threshold; The second generating submodule is used to generate a performance test result including a test failure when the ratio parameter is less than the test threshold.
5. The Shell script-based intelligent computer performance testing system according to claim 1, characterized in that: The performance test module includes a load test submodule, a stress test submodule, a benchmark test submodule, a matching test submodule, a capacity test submodule, a stability test submodule and an extensibility test submodule. The load test submodule can test the performance change curve of the computer system under various loads, find the performance inflection point of the computer system and find the best performance of the computer system. The benchmark test submodule compares the changes of various performance indicators of the computer system during the iteration process, and provides a reference for the version iteration optimization of the computer system. The matching test submodule finds the best allocation ratio of various resource indicators of the computer system, so as to achieve the purpose of comprehensive analysis and prediction of computer performance, which is helpful to improve the performance of the computer system and promote the improvement of the computer system. The stress test submodule is used to evaluate performance under extreme load conditions, including CPU, memory, and disk resource usage, as well as key performance indicators such as response time and throughput, and to detect stability and reliability under high-stress environments. The details are as follows: Shell script loop and timing: Use the loop structure and timing function of Shell script to simulate user requests or high-load tasks and record key performance indicators such as response time and throughput; Sysbench tool: Use Sysbench professional performance testing tool to perform stress tests on key resources such as CPU, memory, and disk to obtain detailed performance data; Custom scripts and tools: Write custom Shell scripts and tools based on specific needs to simulate specific stress scenarios, including large-scale file reading and writing and database queries; The capacity test submodule is used to determine the maximum load that can be handled while meeting performance indicators; the details are as follows: Load generation tools: Use load generation tools to simulate user requests, gradually increase the load, and observe performance changes; Shell script automated testing: Write Shell scripts to automatically execute load generation tools and record performance indicators at each load point; Data analysis and visualization: Use Shell scripts or third-party tools to process and analyze test data, generate charts and reports, and intuitively display capacity test results to find the maximum capacity point; The stability test submodule is used to detect stability under high load or long-term operation conditions; the details are as follows: Long-running test: Write Shell scripts, set long-running test tasks, and detect stability under high load or long-running conditions; Abnormal detection and recording: During the test, the monitoring and logging functions of the Shell script are used to detect in real time whether there are abnormal crashes or restarts, and record abnormal information; Fault recovery test: simulate fault scenarios and test stability and performance after fault recovery; The scalability test submodule is used to evaluate the performance changes when adding hardware resources or the number of users; the details are as follows: Resource expansion simulation: Use virtualization technology or physical hardware to simulate resource expansion; Simulation of increasing the number of users: Use load generation tools or custom shell scripts to simulate a gradual increase in the number of users and observe changes in performance; Performance testing and comparison: Perform performance testing at each extension point and record the test results. Use Shell scripts or third-party tools to compare and analyze the test results to evaluate scalability.
6. The Shell script-based intelligent computer performance testing system according to claim 1, characterized in that: The test preparation module cleans the test information, deletes useless and duplicate information in the test information, makes the computer performance more accurate in the test, separates the test information by type, and uses the separated test information to construct test items to obtain the test content. When the user conducts a computer performance test, the user selects the test items in the test content according to the needs. After the selection is completed, the test items are directly extracted for testing to meet the testing needs of different users.
7. The Shell script-based intelligent computer performance testing system according to claim 1, characterized in that: The display module uses Shell scripts to write scripts for display, including "test passed" and "test failed" interface displays and data display interfaces.
8. The Shell script-based intelligent computer performance testing system according to claim 1, characterized in that: The test item change module uses Shell script to write a script for managing test item changes. The script for managing test item changes includes commands and logic for adding, deleting, and modifying test items.
9. The Shell script-based intelligent computer performance testing system according to claim 1, characterized in that: The working process of the system is as follows: S1. The test package program installation module will trigger and automatically install the software test package program; S2. When the mpich software is installed, the file generation module generates the HPL.Dat file; S3, after the computer to be tested is started and running, the HPL.Dat file generated during the installation of the software test package program is updated through the file update module; S4, the file update module transmits the data to the performance test module through the execution module; S5, the performance test module tests the computer to be tested according to the installed software test package program and the generated HPL.Dat file, and the test preparation module provides test information for the test of computer performance; S6. The test item composition module simulates various test items according to the test information and records the test item information; S7, the test item change module sets the test plan of computer performance according to user needs; S8, the maximum CPU peak value extraction module extracts the maximum CPU peak value of the computer, and generates a test result through the test result generation module; S9. Analyze the advantages and disadvantages of computer performance by optimizing and distinguishing modules; S10, the optimization strategy recommendation module recommends optimization solutions based on the computer's performance and parameter information; S11. Display optimization solution recommendations and test results through a display module.
Citation Information
Cited By
Microcomputer host aging test method and system
CN119847898A
A method and system for aging test of a microcomputer host
CN119847898B