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

Function aggregate_va_args

runtime/Perf.cc:150–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150double aggregate_va_args() {
151 int count = 1000000;
152 int total = 0;
153
154 uint64_t start = Cycles::rdtsc();
155 for (int j = 0; j < count; ++j) {
156 total += PerfHelper::va_argSum(4, j, j, j, j);
157 }
158 uint64_t stop = Cycles::rdtsc();
159
160 discard(&total);
161 return Cycles::toSeconds(stop - start)/count;
162}
163
164/**
165 * Reads a number of bytes from an ifstream repeatedly and times it

Callers

nothing calls this directly

Calls 3

rdtscFunction · 0.85
va_argSumFunction · 0.85
discardFunction · 0.70

Tested by

no test coverage detected