Non-FictionInformativeEducational

Performance Testing Basics eBook

A Coursebook on Performance Testing Basics

by Curtis Marcella

  • English
  • 159 pages
  • 2026
  • SamEnrico

A Coursebook on Performance Testing Basics

Formats

Free sample

Chapter 1: The Speed Tax...–- Every morning, Maya stared at the same dashboard. Green checkmarks everywhere. All tests passed. The e-commerce site she helped maintain worked flawlessly—for exactly one user. Last Black Friday, when 8,000 people tried to buy at once, the site fell over in eleven minutes.

The engineering team spent the next four days apologizing on Twitter, refunding angry customers, and watching their bonus checks evaporate. Maya’s functional tests had been perfect. But functional tests only ask one question: does it work? They never ask the question that destroys companies: does it work when everyone shows up at once?This chapter establishes why performance testing separates successful systems from spectacular failures. You will learn the concrete cost of poor performance, the five distinct types of performance tests, and why every team—from startups to banks—eventually wishes they had started performance testing earlier.

By the end, you will understand that performance testing is not a technical checkbox. It is a risk management activity that protects revenue, reputation, and your career.The Day the Shopping Cart Died In October 2014, a major Canadian electronics retailer launched a highly anticipated gaming console for pre-order. Within minutes of going live, the website slowed to a crawl. Then it stopped responding entirely. Customers who had clicked “place order” twenty minutes earlier received no confirmation.

Some were charged three times. Others never knew if their order went through. The company sold out in theory, but in practice, they had no idea which orders were real, which were duplicates, and which were lost forever. They spent the next week manually reconciling spreadsheets against credit card statements.This story repeats everywhere. In 2019, a well-known airline’s website crashed during a holiday sale, leaving passengers unable to check in for flights they had already boarded.

In 2021, a government health portal collapsed under vaccination appointment traffic, delaying appointments for thousands. In 2023, a major bank’s mobile app failed on payday, preventing customers from accessing their own money.What do all these failures share? Every system passed functional testing. Every login worked. Every search returned results.

Every checkout processed a transaction—when exactly one user was testing. The failures appeared only under load.This is the fundamental difference between functional testing and performance testing.Functional testing asks: Does the system do what it is supposed to do, under controlled conditions, with one user?Performance testing asks: Does the system do what it is supposed to do, under realistic conditions, with many users?A car that drives perfectly on an empty road but overheats in traffic has a performance problem. A restaurant that serves delicious food to one table but collapses when full has a performance problem. Software is no different.The Anatomy of a Performance Failure To understand why performance failures happen, you must understand what actually breaks when load increases. The answer is rarely one thing.

Performance failures are cascading events.Consider a typical web application. A user clicks a button. The browser sends an HTTP request. The web server receives it and passes it to an application server. The application server queries a database.

The database retrieves data and returns it. The application server assembles a response. The web server sends it back. The browser renders it.Under normal load, this chain works. Under high load, every link can break.The web server might run out of connection threads.

The application server might exhaust its memory pool. The database might deadlock on concurrent writes. The network might saturate. The load balancer might misbehave. Caches might thrash.

Garbage collection might freeze everything.Here is what actually happened during the Canadian electronics retailer crash: The database had an index missing on the orders table. Under low load, the query was fast enough. Under high load, every order insertion required a full table scan. The database CPU hit 100 percent. Queries queued.

Timeouts began. The application server, waiting for database responses, held open connections. It reached its connection limit. New requests could not connect. The web server, seeing unresponsive application servers, marked them as failed and sent traffic elsewhere.

Every server eventually failed. The site went down.One missing index. Eleven minutes of uptime. Four days of cleanup.Performance testing exists to find these specific breaking points before customers do.The Five Questions Performance Testing Answers Not all performance tests are the same. Each type answers a different business question.

The original outline introduced five types, but those definitions were too brief. Here are the expanded, corrected definitions with concrete examples.1. Load Testing: What Happens Under Normal Conditions?Load testing simulates expected user traffic to verify that the system meets performance targets under normal operating conditions.Business question: “Our marketing team predicts 500 concurrent users during the peak hour. Can the system handle that with response times under two seconds?”How it works: You determine your expected peak load—from analytics, business forecasts, or capacity planning—and simulate that exact load. You run the test for a sustained period (typically 30 to 60 minutes) to observe steady-state behavior.What you learn: Whether your system meets its SLAs (Service Level Agreements) at expected traffic levels.

Whether response times are consistent or degrade over time. Whether any component approaches its limit (e.g., database CPU at 80 percent).Example: An online learning platform expects 2,000 students logged in simultaneously during exam week. A load test simulates 2,000 virtual users browsing videos, taking quizzes, and submitting assignments. The test measures whether every transaction completes within the required five seconds.2. Stress Testing: Where Does It Break?Stress testing pushes the system beyond expected limits to find the breaking point.Business question: “How much headroom do we have?

If traffic spikes unexpectedly, at what point will we fail?”How it works: You gradually increase load—starting below expected peak and continuing until the system fails or becomes unusable. The goal is not to see if it breaks but to find the exact threshold where breakage occurs.What you learn: Your system’s maximum capacity. The shape of degradation—does it fail gradually or collapse suddenly? Which component fails first? How much warning do you have before failure?Example: The same learning platform expects 2,000 users.

A stress test starts at 1,000 users and increases by 250 every ten minutes. At 2,500 users, response times triple. At 2,750 users, the database connection pool exhausts and the site returns 500 errors. The breaking point is 2,700 users. The team now knows they have a 700-user safety margin.3.

Volume Testing: What Happens with Large Data?Volume testing focuses on data scale, not user count.Business question: “Our database grows by 10,000 records per day. Will the system still be fast in six months?”How it works: You populate the system with production-scale or larger data volumes—millions of records, thousands of files, years of history—then run load or stress tests against that large dataset.What you learn: Whether queries that are fast on small datasets become slow on large ones. Whether indexes are correctly designed. Whether batch processes finish within maintenance windows. Whether archiving or purging is needed.Example: An email marketing system stores years of campaign data.

A volume test populates the database with five years of history (50 million email records) then runs the reporting feature. A query that…

This is the end of the free sample. Get the eBook to keep going. Buy now

About this book

A Coursebook on Performance Testing Basics

Details

Author
Curtis Marcella
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, Informative, Educational
Released
2026-05-18
Pages (approx.)
159
Available as
eBook, Audiobook

Read better in the ZLOADR app

Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.

More by Curtis Marcella

See all

You may also like

See all