mirror of
https://github.com/sharkdp/bat.git
synced 2024-09-07 20:01:30 +02:00
Using Markdown for a startup test is useful since it has so many dependencies on other syntaxes. So such a test makes sure that lazy-loading of syntaxes work. It is however also useful to measure the startup time of bat when the time to load a syntax is very small, and the measured startup time has mostly non-syntax related causes. Such as: * Parsing arguments * Setting up syntax mapping * Loading themes This commit adds such a test. It uses the CpuInfo syntax which is very small. Only 14 lines, compared to the 1581 lines that Markdown is (not including the size of its included syntaxes). This command can be used to get an approximation of the size of syntaxes, and thus how expensive they are to load: find -name *.sublime-syntax -print0 | xargs --null wc -l | sort -n -r |
||
---|---|---|
.. | ||
test-src | ||
.gitignore | ||
.ignore | ||
run-benchmarks.sh |