bat/tests
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
..
benchmarks run-benchmarks.sh: Add third 'Startup time' variant 2021-11-27 10:39:17 +01:00
examples Support for ignored-suffix CLI arguments (#1892) 2021-11-19 17:05:23 +01:00
mocked-pagers tests: Make mocked pagers work on Windows 2021-01-04 20:22:04 +01:00
scripts fix: spelling 2021-08-21 23:07:37 +02:00
snapshots update snapshot tests 2021-10-17 21:21:23 +02:00
syntax-tests Add MediaWiki syntax 2021-11-22 19:46:29 +01:00
utils tests: Move 'mocked pagers' utils to separate file 2021-01-10 14:05:39 +01:00
.gitattributes Modify Linguist overrides 2021-06-14 08:36:20 +02:00
assets.rs Add "Visual Studio Dark+" theme to vec of themes 2021-03-24 18:39:06 +05:00
integration_tests.rs Support for ignored-suffix CLI arguments (#1892) 2021-11-19 17:05:23 +01:00
no_duplicate_extensions.rs HighlightingAssets: Make .syntaxes() and syntax_for_file_name() failable 2021-07-29 08:26:18 +02:00
snapshot_tests.rs Use BatTester::default instead of BatTester::new 2021-01-09 19:43:39 +01:00
tester.rs Update dependencies; replace unmaintained (#1522) 2021-02-16 08:50:41 +01:00