| 210 | }; |
| 211 | |
| 212 | static void HashJoinBasicBenchmarkImpl(benchmark::State& st, |
| 213 | BenchmarkSettings& settings) { |
| 214 | uint64_t total_rows = 0; |
| 215 | for (auto _ : st) { |
| 216 | st.PauseTiming(); |
| 217 | { |
| 218 | JoinBenchmark bm(settings); |
| 219 | st.ResumeTiming(); |
| 220 | bm.RunJoin(); |
| 221 | st.PauseTiming(); |
| 222 | total_rows += (settings.stats_probe_rows ? bm.stats_.num_probe_rows |
| 223 | : bm.stats_.num_build_rows); |
| 224 | } |
| 225 | st.ResumeTiming(); |
| 226 | } |
| 227 | st.counters["rows/sec"] = |
| 228 | benchmark::Counter(static_cast<double>(total_rows), benchmark::Counter::kIsRate); |
| 229 | } |
| 230 | |
| 231 | template <typename... Args> |
| 232 | static void BM_HashJoinBasic_KeyTypes(benchmark::State& st, |
no test coverage detected