liveBook · Manning

Performance

As explained in Grokking Concurrency

Performance is the measured efficiency or speed with which a system completes computational work, commonly characterized by latency and throughput.

Think of a transportation system: one fast motorcycle may reach its destination quickly, while a bus may move far more people in the same hour. Computing performance works the same way: it measures how efficiently or quickly a system completes work, using different measures for different goals. section 1.2

Two common ways to measure performance are:

  • Latency measures how long one task takes from start to finish. Faster completion means lower latency. section 1.2
  • Throughput measures how many tasks a system handles during a period of time. A system can have higher throughput even when each individual task is slower. section 1.2

As processor clock speeds stopped rising because of physical limits, manufacturers added multiple processing resources instead. Concurrency and parallel hardware therefore aim to improve performance by using those resources efficiently. Choosing effective operations requires understanding the capabilities of the computer system executing the algorithm, even without focusing on a particular programming language. section 1.2 section 3.0

How Grokking Concurrency covers it

How deep it goes
Defines latency and throughput with an analogy, then connects performance to multicore hardware without detailing measurement procedures or optimization internals.
Examples
Uses motorcycle and bus travel to contrast latency with throughput.
What it assumes
Requires no specific programming language, but develops awareness of computer-system features and hardware capabilities.
What you can do after
Evaluate system performance by distinguishing individual-task latency from task throughput and relating improvements to processing resources.
How it connects
Connects performance to concurrency, parallel hardware, multiprocessors, multicore systems, and concurrent algorithms.

Also explained in

Compare how 40 books explain performance →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Concurrency. The section links point to the parts of the book it draws on.