the purpose and phase of benchmark is different from that of unit testing.
Unit testing occurs in the development stage, and when a new function, a new program is developed, or a change is made to the original program, unit testing is needed to verify its correctness. Unit tests can occur multiple times, each size version, and sometimes multiple times.
There are two main purposes of
benchmark, one is to verify performance, and the other is to obtain some benchmark data so that it can be compared with other versions of this software or other similar software. Benchmark is not usually used for correctness verification.
benchmark testing does not necessarily occur during the development of each version. It is possible that a benchmark test will be conducted only when there are major changes. Therefore, the frequency is much lower than that of unit testing.
Quick row, bubble row and bucket row are all used to sort
then for a test case, running benchmark can measure the relatively fast one between them (for the magnitude of the test case or other indicators)
is generally used for comparison with other frameworks. The purpose of
is to keep up with competitors.
generally speaking, when there is a competitive product, there will be benchmark in the new framework.
my understanding is to let you compare with other frameworks. To attract you to use it.
seems to remember that an organization will handle this directory for testing by testing institutions. There seems to be a corresponding test protocol.