Skip to content

Commit 26e4977

Browse files
committed
Minor tweak
1 parent 3f3cb04 commit 26e4977

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

benchmarks/bulk-insert-and-query.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,13 @@ Statistics FilterBenchmark(
199199
#ifdef __linux__
200200
unified.end(results);
201201
printf("add ");
202-
printf("cycles: %5.1f/key, instructions: (%5.1f/key, %4.2f/cycle) cache misses: %5.2f/key branch misses: %4.2f/key\n",
202+
printf("cycles: %5.1f/key, instructions: (%5.1f/key, %4.2f/cycle) cache misses: %5.2f/key branch misses: %4.2f/key effective frequency %4.2f GHz\n",
203203
results[0]*1.0/add_count,
204204
results[1]*1.0/add_count ,
205205
results[1]*1.0/results[0],
206206
results[2]*1.0/add_count,
207-
results[3]*1.0/add_count);
207+
results[3]*1.0/add_count,
208+
results[0]*1.0/time);
208209
#else
209210
std::cout << "." << std::flush;
210211
#endif

benchmarks/linux-perf-events.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ template <int TYPE = PERF_TYPE_HARDWARE> class LinuxEvents {
3737
const unsigned long flags = 0;
3838

3939
num_events = config_vec.size();
40-
uint32_t i = 0;
4140
for (auto config : config_vec) {
4241
attribs.config = config;
4342
int fd = syscall(__NR_perf_event_open, &attribs, pid, cpu, group, flags);
@@ -92,4 +91,4 @@ template <int TYPE = PERF_TYPE_HARDWARE> class LinuxEvents {
9291
working = false;
9392
}
9493
};
95-
#endif
94+
#endif

0 commit comments

Comments
 (0)