Measure the cost of cpuid
| 1118 | |
| 1119 | // Measure the cost of cpuid |
| 1120 | double serialize() { |
| 1121 | int count = 1000000; |
| 1122 | uint64_t start = Cycles::rdtsc(); |
| 1123 | for (int i = 0; i < count; i++) { |
| 1124 | Util::serialize(); |
| 1125 | } |
| 1126 | uint64_t stop = Cycles::rdtsc(); |
| 1127 | return Cycles::toSeconds(stop - start)/count; |
| 1128 | } |
| 1129 | |
| 1130 | double cond_wait_for_millisecond() { |
| 1131 | int count = 100; |
no test coverage detected