| 730 | }; |
| 731 | |
| 732 | void SetThroughputCounter(benchmark::State& state, size_t bytes_per_iteration) { |
| 733 | const double total_megabytes = |
| 734 | static_cast<double>(state.iterations()) * |
| 735 | static_cast<double>(bytes_per_iteration) / 1000000.0; |
| 736 | state.counters["Throughput"] = |
| 737 | benchmark::Counter(total_megabytes, benchmark::Counter::kIsRate); |
| 738 | } |
| 739 | |
| 740 | void SetCommandLineCounters(benchmark::State& state, size_t total_input_bytes, |
| 741 | double total_load_ms, double total_convert_ms, |
no test coverage detected