# Why is the speed of the algorithm is measured in number of operations, not in seconds?

Hello!
I wonder
Why is the speed of the algorithm is measured in number of operations, not in seconds?
Isn't it possible that some small program runs faster than the two line feature(built-in)?
April 3rd 20 at 18:29
April 3rd 20 at 18:31
Solution
And that will give you seconds?
Here you have two programs that process the same data and receive the same results by different algorithms. The first program does it for 10 seconds, the second for 20. How to estimate how much it will increase the processing time by increasing the volume of data 10 times?
No, we do not know the complexity of the algorithm. If the first has a complexity of O(n2) and the second is O(n), the time of the first will grow 100 times and will be 1000 seconds, and the second only 10 times (200 seconds). That is, a program that was faster on small dataset suddenly becomes much slower on a large set. And the most important parameter here is the computation complexity of the algorithm.