| 67 | } |
| 68 | |
| 69 | static void ToString(benchmark::State& state) { // NOLINT non-const reference |
| 70 | static const std::vector<DecimalValueAndScale> values = GetDecimalValuesAndScales(); |
| 71 | for (auto _ : state) { |
| 72 | for (const DecimalValueAndScale& item : values) { |
| 73 | auto string = item.decimal.ToString(item.scale); |
| 74 | benchmark::DoNotOptimize(string); |
| 75 | } |
| 76 | } |
| 77 | state.SetItemsProcessed(state.iterations() * values.size()); |
| 78 | } |
| 79 | |
| 80 | constexpr int32_t kValueSize = 12; |
| 81 |
nothing calls this directly
no test coverage detected