Instruction Latency and Throughput
Latency measures the time from one operation's start to its result. Throughput measures how often results can be completed under a sustained workload.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Use a simple pipeline
A three-stage ideal pipeline can take three cycles for one input and still finish one per cycle after filling if all stages have independent work. A clock period converts either cycle count to elapsed time.
Account for a dependency
If each operation needs the previous result before starting, the same pipeline may not sustain that throughput on this task. Pending-operation traces show why result availability can constrain the schedule.[1]
Follow several independent operations through a pipeline
Suppose an operation produces its result three cycles after starting, and the unit can accept a fresh independent operation each cycle. Starts at cycles zero, one and two finish at three, four and five. Its latency is three cycles while steady initiation spacing is one cycle. See pipeline dependencies.
Operation Start Result ready
A 0 3
B 1 4
C 2 5
Measure dependent work separately
If B needs A's result, it may have to wait until cycle three in this model. Repeated dependent operations expose latency. Independent streams expose throughput and shared-resource limits. State whether there are enough operations to reach steady behavior.