Several common methods of performance testing

 Load Test: Load testing is to test the behavior of the user's point of view. It simply is load testing is to make the system work properly under the pressure got to load, performance observation system can meet the needs of users.

  The needs of users come from? Analysis specific to the performance test requirements - requirements analysis. Seen in this light needs analysis is very important.

  Load test is to observe the perspective of users under certain conditions, the performance of the software system.

  Load test results are expected user performance requirements are met. This index reflects the general response time, transaction capacity, concurrent capacity, resource usage and so on.

  Load testing is the most commonly used method of performance testing, so there are a lot of people will be confused as a load test performance test.

  Stress Test: Keyword stress test is "extreme." By the extreme pressure of the system, which demonstrated the observed system performance issues. And then analyze this performance problem, so as to achieve system optimization. So the stress test is to be sure to let the system go wrong, if the system is not a problem, then the means and methods of stress testing would certainly be problematic.

  Concurrent test: concurrent capacity verification system. Through a certain amount of concurrent observation system has shown that in the case where the amount of concurrent behavioral characteristics, to determine whether the system needs to meet the concurrent design. Concurrent test is to test the behavior of the system point of view.

  Benchmarks: As the name suggests, there must be a benchmark reference point, that is to say for comparison basis points. When the software system to add a new module, the need to do benchmark tests to determine the performance impact of new modules for the entire software system. The method according to benchmarks, need to open / close the new module to do at least once each test. Prior to each performance index closed down as the reference module (Benchmark), then the system performance with the opening in the module status compared to determine the impact on system performance module.

  Stability test: very simple, time for load testing, thereby observe the stability of the system.

Recoverability testing: test system can quickly recover from the error state to a normal state. For example, in a system with load balancing, the hosts suffered the pressure does not work, the backup machine is able to quickly take over the load. Recoverable testing is usually done in conjunction with the stress test.

  Well, if the above concept is still too "surprising facility," people like Manchu ** birthday general Ruzhui foggy, I will be in the following analogy way to make you a better understanding of the foregoing.

↓↓↓↓↓↓

  "Journey to the West" in a scene called: "Pig Wife" Here we are in this fight than to direction we describe similarities and differences between several performance test methods.

  Pig comrades we will object being tested as performance testing.

  Load testing: Pig comrades carrying the body of Miss Gao can be considered added to the "pig man-pig hybrid system" load. Of course, Pig strong and healthy, back a Miss Gao should be less of a problem. Load testing is to let the Pig carrying Miss walk (walk here is got to system behavior, usually this kind of system behavior to be simulated by a script), we observed the pig physiological and psychological indicators of whether there is an exception to conclude that "the pig Mixed pig bottleneck "lies. If Pig carrying a carrying Yaosuanbeiteng leg cramps, then the pig incompetent comrades might be a calcium deficiency, need calcium; if he is carrying a carrying dizziness numbness, then the pig comrades should be a fatty liver, alcoholic liver three high patient outstanding representative, which proves the pig needs to lose weight. If Pig carrying a small daughter Shenqingruyan, eighty, then we can determine Pig comrades is a good comrade, "Pig people Pig hybrid system" is a good system. Of course, this is just the measure on the basis of no testing standards to the conclusion, in order to further testing "Pig people Pig hybrid system," we need to give this system a number of indicators, this indicator for example as follows: carrying a weight of 45 kilograms of high Rugged Mountain Path Miss embark on a total length of 10 km trail, in this process the average speed of the pig comrades not less than 8km / h, which is faster than the heart beat can not be 60 times / sec. Well, then a test, we found that eighty Pig comrades still in the testing process, Shenqingruyan, but its heart is higher than 60 times / sec. So in Pig comrades heartbeat higher than that moment 60 times / sec, we can stop the test to help identify bottlenecks Pig comrades, to be the bottleneck problem after this is resolved, we'll test it. Of course, if a pig's back Miss was extremely difficult, difficult, then we can think Miss should lose some weight (overload), we should let Miss diet for some time to reach the normal standard weight after testing. Above is a popular example of a load test.

  Stress Test: Pig comrades still Wife. We found him a wife back a surprisingly easy reason that we must increase the load, so Pig Wife activities carried out in extreme cases. We can make a Pig comrades back 10 wife, of course, does not comply with monogamy, so we choose to come back the Monkey King Pig comrades students. Sun students stones pop out, so high density, high quality, standards-compliant extreme loads.

Test began, a pig comrades back immediately SUN students sweat dripping, Kudiehanniang. Well, extreme load conditions are reached. We can observe the performance of the Pig Pig comrades to determine the body parts of the weakest. If we find insufficient Pig comrades abdominal strength resulting in extremely difficult students back Sun, then we can let the pig to abdominal training, so that his abdominal strength is enhanced. We also find the bottleneck of the system, the system is optimized.

  If Pig Monkey King back is still easy, Shenqingziruo, then we can guess Pig is not the Monkey King Sun classmates but Shangxiang. So we can choose a larger load test.

  Be sure to test out the stress tests, otherwise we have reason to believe that the pressure load is too small, does not meet the test requirements.

  Concurrent test: mainly to test the Pig once can recite a few wife. If the "Pig people Pig hybrid system" design goal is to "at least once a young lady back three or four high," then we have a yardstick to measure whether Pig's performance standards.

  Benchmarks: If the pig comrades in the Miss Gao when not taking any illegal drugs, then we can be the test results as a starting point, and then let the pig comrades drink Red Bull or Manchu ** students learn little nibbling point medicine, then the same load test to see if the drink Red Bull **** or pig back Miss this behavior on the pros and cons of influence. **** here may be worth a new software replacement algorithm, the system can also be replaced with a new understanding of middleware. Of course, we can not let Miss Pig comrades back high, while the Monkey King is to get students back into Miss Gao, observe the test results of these two tests to determine exactly what kind of system more competent "back high-Miss" this important task.

  Stability Test: Let Pig Miss back forty-nine days, students observe pig performance. If the design "pig man-pig hybrid system" requirements to at least be able to continuously back Miss Gao took 49 days, but the actual pig walked only 36 days, we can consider "pig man-pig hybrid system" of non-compliance, needs to be optimized.

  可恢复性测试:先让猪八戒背孙悟空同志走上半天,此时猪八戒已经累得接近崩溃,然后再让猪八戒背上高小姐,查看猪八戒是否能从疲劳中恢复,从而担当起背高小姐的重任。

原文转自:https://www.cnblogs.com/seven000/p/7278799.html

Guess you like

Origin www.cnblogs.com/zihkj/p/12563603.html