commit | 396ecf6021b9c0e2b6799d091adf49b0182b180f | [log] [tgz] |
---|---|---|
author | Neal Coombes <ncoombes@radix.trade> | Fri Jun 23 11:31:17 2017 -0500 |
committer | Martin Hořeňovský <martin.horenovsky@gmail.com> | Sun Jun 25 15:53:59 2017 +0200 |
tree | adac2932c16e45b0a7163f8df52452368b55ebd9 | |
parent | a6cdcd43aa24adf1e36edd5517a96feaeac18c25 [diff] |
Cache std::ostringstream between assertions. This is not thread safe, but I think that was already true of Catch. The construction/destruction of the std::ostringstream is where the vast majority of time is spent per assertion. A simple test of 100000000 CHECK()s is reduced from around 60s to 7.4s
The latest, single header, version can be downloaded directly using this link
Catch stands for C++ Automated Test Cases in Headers and is a multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C). It is implemented entirely in a set of header files, but is packaged up as a single header for extra convenience.
This documentation comprises these three parts: