MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / aggregate_customFunction

Function aggregate_customFunction

runtime/Perf.cc:122–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120//----------------------------------------------------------------------
121
122double aggregate_customFunction() {
123 int count = 1000000;
124 int total = 0;
125
126 uint64_t start = Cycles::rdtsc();
127 for (int j = 0; j < count; ++j) {
128 total += PerfHelper::sum4(j, j, j, j);
129 }
130 uint64_t stop = Cycles::rdtsc();
131
132 discard(&total);
133 return Cycles::toSeconds(stop - start)/count;
134}
135
136double aggregate_templates() {
137 int count = 1000000;

Callers

nothing calls this directly

Calls 3

rdtscFunction · 0.85
sum4Function · 0.85
discardFunction · 0.70

Tested by

no test coverage detected