Chapter 8. Performance Testing
Time is money!
Benjamin Franklin
We’ve all been frustrated when our favorite websites suddenly become slow as sloths, leaving us wondering, “Is there a problem with my internet?” To save your application’s end users from such frustrations, you have to continuously measure and work to improve web performance. This chapter covers performance KPIs, API performance testing, frontend performance testing, and new AI capabilities to assist with both API and frontend performance testing and shift-left performance testing. You will also get a chance to try both frontend and API performance testing in the exercises.
Because performance testing is such a large topic and must be done both on the backend and the frontend, this chapter is structured a little differently from the previous ones. You’ll find all the familiar sections here, but split into two halves: first backend, including exercises and additional tools, and then frontend. A holistic strategy for shift-left performance testing is presented toward the end of the chapter.
Backend Performance Testing Building Blocks
How much can a few seconds’ delay really matter? There is a quantitative indicator for this: the bounce rate is the percentage of customers that leave a website after viewing just one page. A Google study found a strong (see Table 8-1) correlation between page load time and user bounce rates. The data confirms that with every additional second’s delay, businesses lose customers to their ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access