| 19 | }; |
| 20 | |
| 21 | Y_FORCE_INLINE static void BenchFormatStream(auto&& formatFn, benchmark::State& state) { |
| 22 | TTimestampGenerator gen; |
| 23 | TStringStream ss; |
| 24 | for (auto _ : state) { |
| 25 | ss << formatFn(gen()); |
| 26 | Y_DO_NOT_OPTIMIZE_AWAY(ss.Str()); |
| 27 | ss.clear(); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | Y_FORCE_INLINE static void BenchToString(auto&& toStringFn, benchmark::State& state) { |
| 32 | TTimestampGenerator gen; |
no test coverage detected