Report Freq in additional benchmarks
PiperOrigin-RevId: 272021416
diff --git a/bench/global-average-pooling.cc b/bench/global-average-pooling.cc
index df0e5b0..9f16449 100644
--- a/bench/global-average-pooling.cc
+++ b/bench/global-average-pooling.cc
@@ -16,6 +16,7 @@
#include <xnnpack.h>
#include <benchmark/benchmark.h>
+#include "bench/utils.h"
static void global_average_pooling_q8(benchmark::State& state) {
@@ -67,6 +68,7 @@
}
global_pooling_op = nullptr;
+ state.counters["Freq"] = benchmark::utils::GetCurrentCpuFrequency();
state.counters["bytes"] = benchmark::Counter(
uint64_t(state.iterations()) *
batch_size * (input_height * input_width + 1) * channels * sizeof(uint8_t),