| 2180 | } |
| 2181 | |
| 2182 | static std::string PadCell(const std::string& value, size_t width) { |
| 2183 | if (value.size() >= width) |
| 2184 | return value.substr(0, width); |
| 2185 | return value + std::string(width - value.size(), ' '); |
| 2186 | } |
| 2187 | |
| 2188 | static void PrintResultTable(const std::vector<BenchmarkResult>& results) { |
| 2189 | struct Column { std::string title; size_t width; }; |