« Back to Index

[CPU bound vs I/O bound]

View original Gist on GitHub

Tags: #cpu #io #bound

CPU bound vs IO bound.md

Note: the following is credited to yaoyao.codes.

This means a task that performs calculations on a small set of numbers, for example multiplying small matrices, is likely to be CPU bound. While a task that processes data from disk, for example, counting the number of lines in a file is likely to be I/O bound.

A program is CPU bound if it would go faster if the CPU were faster.

A program is I/O bound if it would go faster if the I/O subsystem was faster.