mirror of
https://github.com/catchorg/Catch2.git
synced 2025-07-01 07:05:32 +02:00

By using char const * instead of std::string we avoid significant copying per assertion. In a simple loop with 10000000 CHECKS on my system, this reduces the run time from 9.8s to 5.8s. This change is at the expense of no longer capturing the second arg, which no currently existing test notices.