People usually compare math libraries to choose the one that minimizes the runtime of their program. For such tests, two things need to be considered: the performance of the libraries at a given input and if that input is representative of your use case.
If we assume that each task (for example, for vector scaling) requires the same number of floating-point operations, then we can expect that work with FLOPS itself will be completed first.
It is assumed that in some cases, each library will perform the same number of floating point operations. But it is quite possible that two libraries will require a different number of floating point operations for one task (for example, matrix matrix multiplication). If so, the library can do less FLOPS, but ends in less time than the library that does more FLOPS. Therefore, in these cases, the total duration of the work is reasonable to watch. If authors publish comparisons in FLOPS, it means that they believe that each library does the same amount of operations in general; or they simply divide the number of operations that are required for the theoretical completion of the task by the total duration of the execution (which is also general). You want to check if there is a reference methodology.
The goal of comparing performance (such as FLOPS) and size is to help people understand performance on representative input for their use. If you know that you will have many small vectors, for example less than 10, then you do not care how fast the library is designed for 1 GB vectors and does not want these inputs to affect the comparison.
Typically, counting FLOPS was popular (perhaps in part because it is easy to explain to mathematicians). I believe that one motivation is that "you can sell a vector of size = 10 per 10,000 FLOPS, but a vector of size = 100 per 100 FLOPS" is easier to digest than saying "you can scale a size = 10 vector in 0.001 seconds, but size = 100 vector in 1 second. " If you report a total runtime, you probably want to scale the size of the input for comparison.
source share