Skip to content
Bugwise
Menu
Web Testing

Performance Testing in Depth: Responsiveness, Percentiles, Mobile and Load

Go past one Lighthouse run. Test responsiveness on slow devices, read averages and percentiles correctly, measure mobile app startup, jank and memory, and understand a load test report.

40–60 min advanced Web

The release notes said: “Search is 30% faster.” The team had measured it, and the average response time really had dropped. Two weeks later, support was flooded with complaints that search “hangs”. Both were true. Most searches had become faster, and a few had become five times slower. The average hid them.

Performance Basics taught you Core Web VitalsCore Web VitalsGoogle's key page experience metrics: loading (LCP), responsiveness (INP) and visual stability (CLS).Open in glossary →, the waterfall and LighthouseLighthouseA free tool in Chrome DevTools that audits a page's performance, accessibility, SEO and best practices.Open in glossary →: how fast one page loads for one user. This lesson goes further. It covers how the page reacts after loading, how to read numbers without being fooled, what performance means in a mobile app, and how to understand a load test report when the performance team sends you one.

Part Not started

Responsiveness: after the page has loaded

Users spend most of their time on a page after it has loaded: typing, filtering, opening menus, adding to cart. INP (Interaction to Next Paint) measures how quickly the page visibly reacts. Good is 200 ms or less, poor is over 500 ms.

Every interaction has three parts:

PartWhat happensTypical cause when it’s slow
Input delayThe tap waits because the browser is busy with something elseScripts still loading: ads, chat widgets, analytics
ProcessingThe page’s own code reacts to the tapHeavy work: filtering thousands of items, big state updates
PresentationThe browser draws the new frameHuge pages, many elements changing at once

All three happen on the browser’s main thread, which can only do one thing at a time. Any piece of work that keeps it busy for more than 50 ms is called a long taskLong taskWork that keeps the browser's main thread busy for more than 50 ms, so taps and key presses have to wait.Open in glossary →. While a long task runs, taps and key presses wait.

Why your laptop lies

A modern laptop is often 4–6 times faster than a mid-range or cheap Android phone at running JavaScript. Processing that takes 70 ms on your laptop takes around 300–400 ms on such a phone. That’s why responsiveness bugs are rarely seen by the people who write the code.

Try it: run the same interactions on each device, then turn on the busy third-party widget.

Responsiveness lab · product list page

Device

Interactions: press one to measure it

No interactions yet. Try the same one on the laptop and on the low-end phone.

Input delay Processing (event handlers) Presentation (next paint)

How to test interactions

  1. Open DevToolsDevToolsDeveloper tools built into browsers for inspecting pages, network traffic and errors.Open in glossary → › Performance. Its start screen shows live LCP, CLS and INP for your own clicks.
  2. Set CPU throttling to 4× or 6× slowdown in the Performance panel settings.
  3. Do the interactions users do most, one by one: type in search, open filters, add to cart, switch tabs, expand an accordion, open a long dropdown.
  4. Repeat them while the page is still loading and right after: that’s when third-party scripts compete for the main thread.
  5. Check pages with a lot of data: a list with 2,000 items behaves very differently from the 20 items in your test account.
Dev note: Finding the long task

Record a trace with Record (not “Record and reload”), do the slow interaction, stop. In the Main track, long tasks have a red triangle in the corner. Click one to see which script and function ran. For third-party scripts, the Summary tab at the bottom can group time by third party. Attach the trace file (Save profile) to the bug.

Check this part

  1. Typing in search takes about 100 ms on your laptop. Why is that not enough to call it good?

  2. A tap feels slow only while the page is still loading. Which part of the interaction is most likely slow?

What INP measures inside one interaction, why long tasks and slow phones make it worse, and how to test interactions with CPU throttling.

Part Not started

Reading performance numbers

Averages hide the slow users

An average mixes everyone together. If most requests get a bit faster and a few get much slower, the average can stay the same while real people wait seconds.

A percentilePercentileThe value that a given share of measurements is at or below: p95 = 800 ms means 95 out of 100 requests took 800 ms or less.Open in glossary → answers a better question: “how long did most users wait?”

Switch between the two builds and compare the average with p95:

GET /api/search · 40 requests

Average
369 ms
p50
363 ms
p75
393 ms
p95
450 ms
p99
485 ms
Max
485 ms

Build 4.11: the average (369 ms) is close to what most users get. Switch to 4.12.

When you report or review a performance result, always ask: “What is the p95?”

One run is not a result

Performance numbers vary between runs: other programs on your computer, the network, the server’s other users. Lighthouse scores can move by several points with nothing changed.

Comparing two builds fairly

“3.12 is 40% faster than 3.11” is only true if both were measured the same way. Change one thing at a time:

Keep the sameWhy
Device, browser and throttlingA faster machine or no throttling changes everything
Cache stateA first visit (empty cache) is much slower than a repeat visit
Data volume20 orders in a test account vs 2,000 in a real one
Environment and server loadStaging shared with an automated test run is slower
Build typeDebug builds of apps are often several times slower than release builds

Check this part

  1. Build 4.12 has the same average response time as 4.11, but p95 went from 450 ms to 1,320 ms. What do you report?

  2. What does p95 = 800 ms mean?

  3. You measured 3.11 with an empty cache and 3.12 after browsing for ten minutes. Can you compare them?

Why averages hide slow users, what p50, p95 and p99 mean, why one run isn't a result, and how to compare two builds fairly.

Part Not started

Mobile app performance

Native apps don’t have Core Web Vitals, but users judge them on the same things: how fast they open, how smoothly they scroll and whether they drain the battery.

Startup

StartWhat happensHow to test it
Cold startThe app isn’t running at all, so everything is loaded from scratchForce-stop the app (or restart the phone), then open it
Warm startThe process is alive but the screen must be rebuiltOn Android, turn on Developer options › Don’t keep activities, press Home, then reopen
Hot startThe app simply comes back to the foregroundPress Home, then reopen

A cold startCold startLaunching an app whose process isn't running, the slowest kind of launch, compared with a warm or hot start.Open in glossary → is the slowest and the one users notice most, especially on the first launch after an update. A common mistake is to “test the cold start” by pressing Home and reopening: that’s a hot start, and it will always look fast.

Android’s Play Console reports a cold start of 5 seconds or more as excessive. Most teams aim for well under 2 seconds on a mid-range phone.

Dev note: Measuring startup

Android: adb shell am force-stop com.quickbite.app, then adb shell am start -W -n com.quickbite.app/.MainActivity. The TotalTime line is the startup time in milliseconds (see ADB Basics). iOS: Xcode Instruments has an App Launch template. Without tools, record the screen and count from the tap to the first usable screen. Always measure a release build: debug builds are much slower.

Smooth scrolling and jank

At 60 frames per second the app has about 16 ms to draw each frame (8 ms on a 120 Hz screen). When a frame isn’t ready in time, it’s skipped, and the user sees a stutter called jankJankVisible stutter when an app or page misses frames while scrolling or animating.Open in glossary →.

Look for it while scrolling long lists with images, during animations and transitions, and while the app loads data in the background. A screen recording played in slow motion makes stutters easy to show in a bug report.

Dev note

On Android, Developer options › Profile HWUI rendering › On screen as bars draws a bar per frame. Bars above the green line missed the 16 ms budget. Android Studio’s Profiler and Xcode Instruments (Animation Hitches) give exact numbers.

Memory, battery and data

  • Memory leaks grow slowly. Repeat one flow 20–30 times (open a product, go back) and watch the app’s memory in the profiler or in the OS’s app settings. Memory that only goes up is a leak. Eventually the OS kills the app.
  • Battery: location, background refresh and animations that keep running off screen. Compare the battery screen after an hour of normal use with a similar app.
  • Mobile data: images that are much larger than the screen needs, videos that autoplay on cellular, the same data downloaded again on every screen.
  • ANR (Android): if the app doesn’t respond to a tap within about 5 seconds, Android shows “App isn’t responding”. Any ANRANRApplication Not Responding: Android's dialog when an app freezes for about 5 seconds.Open in glossary → is a bug.

Check this part

  1. You open the app, press Home and open it again in 0.6 s. What did you measure?

  2. How long does an app have to draw each frame at 60 frames per second?

App startup types, smooth scrolling and jank, memory, battery and data, and how a manual tester measures them without special tools.

Part Not started

Load tests: what they are and how to read them

Load tests are usually written and run by performance engineers or developers with tools like k6, JMeter, Gatling or Locust. You don’t need to write them to be useful. You need to know the types, help design realistic scenarios, and read the results.

TypeQuestion it answers
Load testLoad testingChecking the system copes with the expected number of users at the same time.Open in glossary →Does it work at the expected peak, such as Black Friday traffic?
Stress testStress testingPushing the system beyond expected load to find where it breaks and how it recovers.Open in glossary →Where does it break, and does it fail gracefully and recover?
Spike testSpike testingChecking what happens when traffic jumps suddenly, not gradually.Open in glossary →What happens when traffic jumps suddenly, such as after a push notification to all users?
Soak testSoak testingRunning normal load for many hours to find problems that grow slowly, such as memory leaks.Open in glossary →Does it stay healthy for hours at normal load (memory leaks, full disks, connection pools)?

What testers add

  • Realistic scenarios. You know how users really move through the app: how many browse vs buy, how long they pause between steps, which searches are common.
  • Realistic data. A test against 1,200 restaurants says little about productionProductionThe live environment that real users use.Open in glossary → with 48,000.
  • Eyes on the product during the test. Use the app manually while the load runs. Do pages time out, do error messages make sense, do orders get lost or duplicated?
  • Checks after the test. Does the system recover when the load stops? Are there stuck orders or wrong totals in the database?

Reading a load test report

Three numbers matter at every load level:

A healthy system handles more requests as more users arrive. When it’s saturated, adding users adds almost no throughput, and response times climb. After that, it often starts failing, and failures can be fast: a 503 error returns in milliseconds, so times suddenly look better. Never read the times without the error rate next to them.

Answer the three questions by choosing a step:

Step load test · POST /api/checkout · 5 minutes per step

Bars show p95 response time. Press a step to see its numbers and to answer the question.

50100150200250300350400450500

virtual users · red = 1% errors or more

No step selected.

1/3 · What is the last step where the system still scales (more users → proportionally more requests per second)?

  • Question 1 open
  • Question 2 open
  • Question 3 open

Check this part

  1. At 450 users, p95 drops from 2.6 s to 0.64 s and 21% of requests fail. What happened?

  2. Which test checks whether the system stays healthy over many hours at normal load?

Load, stress, spike and soak tests, what a manual tester adds to them, and how to read throughput, percentiles and errors in a load test report.

Part ProNot started

Lab: review a performance report

The team sends this report before a big marketing campaign and asks QA to sign it off. Every number in it was really measured. The mistakes are in how they were measured and in what the report concludes from them. Find them.

🐞 Bug hunt: QuickBite 3.12 performance report

This demo has 7 hidden bugs. Explore it like a tester, then check your findings.

Found0/7

Performance test report · QuickBite 3.12

Ready for the Friday campaign ✅

Environment: staging (1,200 restaurants; production has 48,000)

1 · Web home page

Lighthouse score 98 (one run, Chrome on Marko’s MacBook Pro, throttling off). LCP 0.9 s. The page is fast for all users.

2 · Compared with 3.11

Restaurant page loads in 0.8 s in 3.12 vs 1.4 s in 3.11: 43% faster. (3.11 measured right after deploy with an empty cache; 3.12 measured after browsing for 10 minutes.)

3 · Checkout API load test

UsersAvgp95Errors
200180 ms310 ms0.1%
300390 ms2,400 ms0.6%
450150 ms380 ms21%

Target: p95 under 1 s. Result: the average stays under 400 ms at every step, so the target is met. At 450 users the API even gets faster under load.

4 · Android app

Cold start: 0.6 s on a Pixel 8 (opened the app, pressed Home, opened it again, average of 5).

Soak test: 20 minutes of browsing, memory stayed flat. No memory leaks.

Conclusion

Performance is good. No risks for Friday’s campaign (expected peak: 400 users).

  1. 1

    Hint: Read section 1: how many runs, on which machine, with which settings?

  2. 2

    Hint: Section 2: look at the note in brackets.

  3. 3

    Hint: Section 3: which column does the target talk about, and which column does the result use?

  4. 4

    Hint: Section 3: what else changes at 450 users?

  5. 5

    Hint: Read the environment line under the title.

  6. 6

    Hint: Section 4: how was the app closed before each measurement?

  7. 7

    Hint: Section 4: how long does a soak test usually run?

Check this part

  1. The expected peak is 400 users and p95 is 2.4 s at 300 users. Is the system ready?

  2. Why doesn't a 20-minute soak test prove there are no memory leaks?

A performance test report with seven mistakes in how it was measured and what it concludes.

The rest of this lesson is in Bugwise Pro

The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.

Part ProNot started

Budgets, regressions and test cases

Performance budgets

A performance budgetPerformance budgetAn agreed limit for a metric or size that a build must not exceed.Open in glossary → is an agreed limit that a build must not exceed, written down like any other acceptance criterion:

  • Metrics: LCP under 2.5 s and INP under 200 ms on a mid-range phone with throttling; API p95 under 500 ms at expected load; cold start under 2 s.
  • Sizes: JavaScript under 300 KB compressed on the home page; hero image under 200 KB; app download size under 60 MB.
  • Counts: no more than 50 requests for the first screen.

Budgets turn “it feels slower” into a pass or fail. When a story adds a big library or a new third-party script, the budget is the reason to ask about it in refinement.

Dev note

Teams often check budgets automatically in CI, for example with Lighthouse CI, which runs Lighthouse on every build and fails it when a metric or size goes over the limit. Ask whether your team has one, and where its reports are.

A performance bug report

Performance bugs are rejected when they’re vague. Include:

Example test cases

TC-PERF2-001Search responds within 200 ms on a mid-range phone

Preconditions

  • Production-like product catalog (at least 2,000 items)
  • DevTools CPU throttling 4×

Steps

  1. Load the product list page and wait until it is idle
  2. Type two letters in search
  3. Read INP in the Performance panel
  4. Repeat 5 times

Expected result

Median INP 200 ms or less. No long task over 200 ms during typing.

TC-PERF2-002Interactions stay responsive while third-party scripts load

Preconditions

  • CPU throttling 4×
  • Slow 4G network throttling

Steps

  1. Reload the page
  2. Within the first 3 seconds, open the menu and tap Add to cart
  3. Note how long each reaction takes

Expected result

Each interaction reacts within 200 ms, or shows immediate feedback (pressed state, spinner) and completes without a second tap.

TC-PERF2-003Build comparison uses the same conditions

Steps

  1. Measure the page in the previous build: empty cache, mobile throttling, 5 runs
  2. Measure the new build the same way
  3. Compare the medians and the worst runs

Expected result

The new build is within the budget and not more than 10% slower than the previous build on any Core Web Vital.

TC-PERF2-004Cold start is under 2 seconds on a mid-range Android phone

Preconditions

  • Release build installed
  • Mid-range test phone

Steps

  1. Force-stop the app
  2. Open it from the home screen and record the time to the first usable screen
  3. Repeat 5 times

Expected result

Median cold start under 2 s. No run over 5 s.

TC-PERF2-005Long list scrolls without jank

Preconditions

  • Account with 500+ orders
  • Profile HWUI rendering bars turned on (Android)

Steps

  1. Open Order history
  2. Fling quickly to the bottom and back
  3. Watch the frame bars and record the screen

Expected result

Almost all bars stay under the 16 ms line. No visible stutter or blank rows that stay empty.

TC-PERF2-006Memory does not grow when a flow is repeated

Steps

  1. Note the app memory in the profiler
  2. Open a restaurant and go back, 30 times
  3. Note the memory again after waiting 1 minute

Expected result

Memory returns to roughly the starting level. It does not keep growing with each repetition.

TC-PERF2-007Checkout works for a real user during a load test

Preconditions

  • Agreed load test running at the expected peak

Steps

  1. Place an order manually in the app
  2. Check the order list and the confirmation email
  3. Check the database for duplicates after the test

Expected result

The order is placed once, within the agreed time, with a correct confirmation. Error messages, if any, are clear and nothing is charged twice.

Tip: click a test case to expand it.

Key takeaways

  • Responsiveness after loading matters as much as load time. Test interactions with CPU throttling and while the page is still loading.
  • Long tasks over 50 ms block taps. Your laptop hides them; mid-range phones show them.
  • Averages hide slow users. Ask for p95 and p99, and report a median of several runs with the conditions.
  • Compare builds only under the same conditions: device, throttling, cache state, data volume and build type.
  • In apps, test the real cold start, scrolling jank, memory over repeated flows, battery and data.
  • In load test reports, read throughput, percentiles and errors together. Fast responses with many errors mean failure.
  • Performance budgets turn “feels slow” into pass or fail.

Check this part

  1. What makes a performance budget useful?

  2. Which belongs in a performance bug report?

Performance budgets that stop slow builds, a performance bug report with percentiles and conditions, and ready-made test cases.

The rest of this lesson is in Bugwise Pro

The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.

Checklist

Performance testing in depth

0 of 13 checked

Finished this page?Nice work, this page is complete!

Mark it as done to track your progress. It's saved in this browser, no account needed.

Its cards are now in your Bites review ⚡
Esc

Type to search the whole site.