You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules/I-Performance-testing-principles/01-Introduction-to-Performance-Testing.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ With performance testing, your team can:
9
9
10
10
-**Improve user experience.** Identify potential bottlenecks and issues early in the development process. Performance testing provides a complete picture of what the experience of a user accessing your application is like, beyond just the application functionality.
11
11
-**Prepare for unexpected demand.** Test beyond expected load to find the breaking points of the application and formulate better procedures for responding to and capitalizing on unprecedented success.
12
-
-**Increased confidence in the application.** Lower the overall risk of failure with systematic performance testing. This reduced risk also builds team confidence. Teams can work knowing their application can withstand unexpected conditions in production.
12
+
-**Increased confidence in the application.** Lower the overall risk of failure with systematic performance testing. This reduced risk also builds team confidence. Teams can work better knowing their application can withstand unexpected conditions in production.
13
13
-**Assess and optimize infrastructure.** Reduce unnecessary infrastructure costs without compromising performance. Simulate scenarios to observe horizontal and vertical scaling, and run experiments to verify the resources that the system under test actually requires.
14
14
15
15
If performance testing is so valuable, why don't more teams do it?
@@ -86,11 +86,11 @@ B: Performance testing is an activity that requires specialized expertise to car
86
86
87
87
C: Performance testing requires a production-like environment.
88
88
89
-
D: Observability and performance testing are complementary approaches to improving application quality.
89
+
D: Performance testing improves overall team morale by building confidence in what the application can withstand.
90
90
91
91
### Answers
92
92
93
93
1. C. Performance testing and observability complement each other. They do not replace each other, and instead work together to improve confidence in a system.
94
-
2. C. A and B are both incorrect because they apply to frontend performance testing.
94
+
2. C. Performance bottlenecks and other issues often cost more to fix when identified in production. Proactive performance testing can more than offset its cost when it identifies and fixes these defects earlier on in development.
95
95
3. D. A is incorrect because performance testing can be done at lower load levels. B is incorrect because anyone can do performance testing, not just specialized performance testers. C is incorrect because performance testing can be done in development, staging, and test environments as well.
Copy file name to clipboardExpand all lines: Modules/I-Performance-testing-principles/02-Frontend-vs-backend-performance-testing.md
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@ For a holistic view of performance, testers need to test both the front and back
2
2
3
3
## Frontend performance testing
4
4
5
-
Frontend performance testing verifies application performance on the interface level, measuring round-trip metrics that consider how and when page elements appear on the screen.
6
-
It is concerned with the end-user experience of an application, usually involving a browser.
5
+
Frontend performance testing verifies application performance on the interface level, measuring round-trip metrics that consider how and when page elements appear on the screen. It is concerned with the end-user experience of an application, usually involving a browser.
6
+
7
7
Frontend performance testing excels at identifying issues on a micro level but does not expose issues in the underlying architecture of a system.
8
8
9
9
Because it primarily measures a single user's experience of the system, frontend performance testing tends to be easier to carry out on a small scale.
@@ -38,8 +38,7 @@ Backend performance testing targets the underlying application servers to verify
38
38
-*Resiliency*: Can the system gracefully withstand unexpected events?
39
39
-*Latency*: How quickly does the system process and respond to requests?
40
40
41
-
Backend testing is broader in scope than frontend performance testing.
42
-
API testing can be used to target specific components or integrated components, meaning that application teams have more flexibility and higher chances of finding performance issues earlier. Backend testing is less resource-intensive than frontend performance testing and is thus more suitable for generating high load.
41
+
Backend testing is broader in scope than frontend performance testing. API testing can be used to target specific components or integrated components, meaning that application teams have more flexibility and higher chances of finding performance issues earlier. Backend testing is less resource-intensive than frontend performance testing and is thus more suitable for generating high load.
43
42
44
43
Some concerns when doing this type of testing are its inability to test "the first mile" of user experience and breadth. Backend testing involves messaging at the protocol level rather than interacting with page elements. It verifies the foundation of an application rather than the highest layer of it that a user ultimately sees. Depending on the complexity of the application architecture, backend testing may also be more expansive in scope.
45
44
@@ -69,13 +68,16 @@ D: A and B.
69
68
70
69
### Question 3
71
70
71
+
Which of the following statements is true?
72
72
73
+
A: Frontend performance testing results are not affected by bottlenecks in the backend of an application.
73
74
74
-
A:
75
-
76
-
B:
75
+
B: Frontend performance testing is always carried out with a single automated user.
77
76
78
-
C:
77
+
C: Frontend performance testing can verify user experience in ways that backend performance testing cannot.
79
78
80
79
### Answers
81
80
81
+
1. A. k6 cannot do either manual or accessibility testing at this point.
82
+
2. C. A and B are incorrect because they are referring to frontend performance testing. Backend performance testing does not provide frontend metrics like TTI and it does not interact with applications through a browser.
83
+
3. C. A is incorrect because backend performance bottlenecks can also affect frontend performance. B is incorrect because frontend testing scripts can be executed as part of a load test. C is correct because frontend performance testing measures a real user's experience from the browser, which is not something backend testing can measure.
0 commit comments