| 89 | } |
| 90 | |
| 91 | void printTimeStats(const string &name, const BenchmarkStats &stats) |
| 92 | { |
| 93 | cout << std::left << std::setw(35) << name << ": " |
| 94 | << "\033[33m" << std::fixed << std::setprecision(3) << stats.mean_us |
| 95 | << " us\033[0m" |
| 96 | << " (std: " << std::setprecision(3) << stats.std_us |
| 97 | << ", min: " << std::setprecision(3) << stats.min_us << ")" << endl; |
| 98 | } |
| 99 | |
| 100 | void generateRandomData(int N, |
| 101 | std::vector<double> ×, |
no outgoing calls
no test coverage detected