Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/fuzzing/fuzz_textflow.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-08-10 11:45:08 +0200
committerMartin Hořeňovský2026-08-10 11:53:22 +0200
commit97ec4e8e2e4a86719701746d1cb2426f16292ff8 (patch)
treeef8f99ce2dd607f360c3ae281c6b55786ff79596 /fuzzing/fuzz_textflow.cpp
parent0136276e15e140cc332630dc83e2a77b796c5fa7 (diff)
downloadcatch3-97ec4e8e2e4a86719701746d1cb2426f16292ff8.tar.gz
catch_discover_tests: Escape test-invariant parts of CTest script only once
Previously, the `catch_discover_tests` would prepare the entire CTest command (e.g. `add_test(...)` or `set_tests_properties(...)`) first, and then escape it when finished. However, this caused lot of the command args to be escaped over and over again (e.g. executable name or Catch2's reporter args), for no reason, as they were always the same, and thus their escaping was always the same. Until recently, the performance overhead didn't matter as there were many spots which had quadratic runtime in number of tests. However, the recent refactorings fixed these, and this commit now improves the throughput by 10-20%. Also extended the benchmarked COUNTS in `benchmark_discovery.py`, because the performance is now good enough that it is reasonable to benchmark 16k tests.
Diffstat (limited to 'fuzzing/fuzz_textflow.cpp')
0 files changed, 0 insertions, 0 deletions