Double the input
transcript
Take a handler. Double the input size. How much more work? The ratio tells you the growth.
Handler A makes three thousand forty steps. At twice the events, six thousand forty. The ratio is about two. Double the input, double the work.
Handler B makes almost five hundred thousand. At twice the events, almost two million. The ratio is four. Double the input, four times the work.
Handler C makes ten thousand steps. At twice the events, twenty two thousand. The ratio is two point two. A little over double: n log n.
About two means linear. About four means quadratic. A little over two means n log n. Near two, test a third size.
A ratio of two point oh eight is close to two. Both linear and n log n can give it. Measure a third size. Then read the formula too.
The ratio is the growth. Full breakdown in the lecture.