Report Freq in additional benchmarks
PiperOrigin-RevId: 272021416
diff --git a/bench/softargmax.cc b/bench/softargmax.cc
index 630475c..cff4023 100644
--- a/bench/softargmax.cc
+++ b/bench/softargmax.cc
@@ -13,6 +13,7 @@
#include <xnnpack.h>
#include <benchmark/benchmark.h>
+#include "bench/utils.h"
static void softargmax_q8(benchmark::State& state) {
@@ -69,6 +70,8 @@
return;
}
+ state.counters["Freq"] = benchmark::utils::GetCurrentCpuFrequency();
+
const size_t elements_per_iteration = batch_size * channels;
state.counters["elements"] =
benchmark::Counter(uint64_t(state.iterations()) * elements_per_iteration, benchmark::Counter::kIsRate);