Benchmarks is a directory in many github projects. What on earth is it for?

there is a benchmarks directory in some open source projects, such as vue , which is very popular now. The literal translation of benchmark means benchmark test. It seems that some functional performance tests can be done.
given that there is a test directory for special functional testing, who is the "benchmark" for performance testing? Where is the writing of the code under this folder in the development of an open source project? Or, when do I have to use the files in this folder? All valid discussions about benchmark are welcome.


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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bdb363-31267.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bdb363-31267.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?