liveBook · Manning

Performance testing

As explained in Delivering Machine Learning Projects: From design to deployment

A performance test checks whether a task meets specified resource-use or execution-time conditions.

Performance testing checks whether a data-pipeline task or model meets defined execution-time, resource-use, or evaluation conditions. Treat performance as context-dependent: accuracy alone may not represent what matters. section 5.4.3 section 8.6

Turn performance expectations into explicit checks:

  • Set absolute limits, such as completing a task in fewer than three seconds, or relative limits, such as staying within two standard deviations of normal runtime. section 5.4.3
  • Measure nonfunctional properties including time, memory, cost, and invocation count alongside functional results. section 5.4.3
  • Choose model metrics deliberately, potentially combining precision, recall, F1 score, and other measures rather than relying on accuracy. section 8.6
  • Record privacy and security constraints, testing trade-offs, and the reasoning behind model comparisons or selections. section 8.6

Pipeline runtime check

A pipeline step passes when it completes in under three seconds; a broader test can compare runtime with its normal distribution. Failures should feed monitoring, logging, notifications, and alerts. section 5.4.3

How Delivering Machine Learning Projects: From design to deployment covers it

How deep it goes
Defines absolute and relative thresholds, resource measures, metric choices, live testing, and transparent selection, but not detailed implementation code.
Examples
Uses three-second limits, runtime deviation bounds, resource counts, model metrics, cross-validation, A/B testing, and multi-armed bandits.
What it assumes
Assumes defined task expectations and chosen performance measures while teaching how to express limits as absolute or relative conditions.
What you can do after
Apply performance tests through thresholds, metric suites, cross-validation, A/B testing, or multi-armed bandits, then document selection decisions.
How it connects
Connects data pipelines, monitoring, machine learning models, precision, recall, F1 score, cross-validation, A/B testing, and model selection.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Delivering Machine Learning Projects: From design to deployment. The section links point to the parts of the book it draws on.