Skip to content

Commit 3c17c54

Browse files
lemirejkeiser
authored andcommitted
This adds a frequency column (useful because if the frequency tanks, then other numbers are suspect).
1 parent c0e750a commit 3c17c54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

benchmark/parse_records_benchmark.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ template<typename B, typename R> static void ParseRecordsBenchmark(benchmark::St
4141
state.counters["BranchMiss"] = round(counts.branch_misses() / double(state.iterations()));
4242
state.counters["CacheMiss"] = round(counts.cache_misses() / double(state.iterations()));
4343
state.counters["CacheRef"] = round(counts.cache_references() / double(state.iterations()));
44+
state.counters["Frequency"] = (counts.cycles() / counts.elapsed_sec()) / 1000000000.0;
4445
}
4546
}

0 commit comments

Comments
 (0)