CodingNeed.

Big-O growth explorer

Compare how common operation-count models grow as input size changes.

Compare abstract growth with a coefficient of one. This is not a benchmark or an automatic analysis of pasted code. The logarithmic model has a minimum of one operation for display.

Estimated growth at n = 100
ModelUnits of workExample
O(1)1Read an array slot
O(log n)6.64Binary search
O(n)100Scan every record
O(n log n)664.39Typical comparison sort
O(n²)10,000Compare every pair

Bars use a logarithmic scale so small values remain visible. Constants, input distribution, memory use and hardware affect real performance.

Turn the result into understanding

Increase the input by a factor of ten. Compare linear and quadratic growth. Then identify which operation repeats in your own algorithm; counting only the number of visible loops can miss work performed inside a function call.

Reference: Official documentation

Essential cookies keep your account signed in. Optional analytics is not configured on this site. Your choice does not affect access to lessons.

Read the Privacy Policy. You can change this choice in the footer.