By default, benchmark builds as a debug library. You will see a warning in the output when this is the case. To build it as a release library instead, use:
When using gcc, it is necessary to link against pthread to avoid runtime exceptions. This is due to how gcc implements std::thread. See [issue #67](https://github.com/google/benchmark/issues/67) for more details.