| 773 | } |
| 774 | |
| 775 | static void BM_ConvertLongText(benchmark::State& state, |
| 776 | const BenchmarkConfig& config) { |
| 777 | const std::string text = ReadText("zuozhuan.txt"); |
| 778 | const std::unique_ptr<SimpleConverter> converter(Initialize(config)); |
| 779 | for (auto _ : state) { |
| 780 | Convert(converter.get(), text); |
| 781 | } |
| 782 | SetThroughputCounter(state, text.size()); |
| 783 | } |
| 784 | |
| 785 | static void BM_Convert(benchmark::State& state, const BenchmarkConfig& config, |
| 786 | int iteration) { |
no test coverage detected