| 148 | } |
| 149 | |
| 150 | double 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 |