liveBook · Manning

Performance

As explained in The Well-Grounded Python Developer: How the pros use Python and Flask

A performance metric is a quantitative measure used to evaluate an application's speed or resource efficiency.

A performance metric turns “make it faster” into a measurable target for application speed or resource efficiency. Establish a baseline before changing code, then compare each optimization against the target. section 12.3.2

Use performance metrics to keep optimization focused and worthwhile:

  • Define which feature matters and how much faster it must become; a vague goal cannot guide an optimization effort. section 12.3.2
  • Measure current performance before making changes, then profile iteratively to confirm whether improvements are incremental or substantial. section 1.3.3 section 12.3.2
  • Concentrate effort on the small portion of code where the application spends most of its time, while weighing speed gains against added complexity. section 1.3.3 section 12.3.2
  • Stop when the application meets its target and ship instead of spending time on marginal improvements. section 1.3.3 section 12.3.2

Comparing database performance

A MyBlog application can treat query performance as a decision point: compare how an SQLite design handles its relationships, then consider whether redundancy or another database approach would better serve retrieval speed and application needs. section 12.3.4

How The Well-Grounded Python Developer: How the pros use Python and Flask covers it

How deep it goes
Explains targets, baselines, profiling, the 90/10 rule, and trade-offs, but names no specific profiling tools or measurement formulas.
Examples
Uses application feature targets, baseline comparisons, 90/10 optimization, and MyBlog database query-performance trade-offs.
What you can do after
Evaluate/understand whether application changes improve speed enough to justify their complexity and delivery cost.
How it connects
Connects performance metrics to optimization, profiling, performance targets, baseline performance, query performance, and databases.

Also explained in

Compare how 40 books explain performance →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Well-Grounded Python Developer: How the pros use Python and Flask. The section links point to the parts of the book it draws on.