bat/tests/benchmarks/test-src
Martin Nordholts 747b15436a run-benchmarks.sh: Add third 'Startup time' variant
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
2021-11-27 10:39:17 +01:00
..
grep-output-ansi-sequences.txt Add test for ANSI sequence loop-through 2021-11-23 08:14:49 +01:00
jquery.js Rename jquery file 2021-11-23 08:14:49 +01:00
miniz.c Add simple benchmark scripts 2018-05-14 22:20:26 +02:00
numpy_test_multiarray.py Add Python highlighting test 2021-11-23 08:14:49 +01:00
small-CpuInfo-file.cpuinfo run-benchmarks.sh: Add third 'Startup time' variant 2021-11-27 10:39:17 +01:00
small-Markdown-file.md run-benchmarks.sh: Add new test 'Startup time with syntax highlighting' 2021-11-26 20:14:30 +01:00