| 120 | //---------------------------------------------------------------------- |
| 121 | |
| 122 | double 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 | |
| 136 | double aggregate_templates() { |
| 137 | int count = 1000000; |