M. Kodirov

STAGE 08 / LESSON 05

Measure performance and cost

Improve the bottleneck you can observe, then verify the result.

THE IDEA

Understand it.

Measure user experience and server behavior separately. Web Vitals includes metrics such as LCP, INP and CLS. For APIs, examine latency distributions and error rates rather than only an average.

Connect cloud cost to usage: runtime hours, storage, requests and data transfer can all matter. Use budgets and billing reports, compare a change against a baseline, and watch for a new bottleneck or degraded reliability.

SEE IT IN CONTEXT

A simple investigation

1. Measure: task page feels slow.
2. Inspect: network and server timings.
3. Change: optimize one confirmed bottleneck.
4. Re-measure: compare the same conditions.
5. Review: errors and cost did not worsen.

These are investigation steps, not a claim that any particular optimization will improve every application.

LEARN FROM REAL WEBSITES

See it in the real world.

These simplified structures come from public sources. Company systems change, and the sources may describe only one project or an earlier design.

GitHub

GitHub engineering, 2026

Measure the effect of CSS changes

GitHub reported performance improvements after moving Primer components from CSS-in-JS to CSS Modules.

  1. Measure rendering
  2. Change styling approach
  3. Compare performance

What to learn: A performance decision should be backed by measurements and a safe rollout, not an assumption about a technology.

Read the source: GitHub CSS performance

Wix

AWS customer story, date not stated

Monitor a changing workload

AWS describes Wix using CloudWatch for operational visibility into its cloud environment.

  1. Cloud workload
  2. CloudWatch signals
  3. Operational decisions

What to learn: Monitoring helps identify where to investigate performance and usage. It does not by itself prove a specific cost reduction.

Read the source: Wix CloudWatch case study

TRY IT YOURSELF

Practice.

Why is an average response time alone sometimes misleading?

Show one possible answer

A small group of very slow requests can be hidden by many fast ones. Look at a distribution or percentiles as well as errors and request volume.

GO DEEPER

Official references.