Outputting the number of cycles per input byte

This commit is contained in:
Daniel Lemire 2018-04-25 22:41:28 -04:00
parent 484a6c2799
commit da7c811590
1 changed files with 1 additions and 0 deletions

View File

@ -635,6 +635,7 @@ int main(int argc, char * argv[]) {
cy2, cl2, 100. * cy2 / total, (double) cl2 / cy2);
printf("stage 3 instructions: %10lu cycles: %10lu (%.1f %%) ins/cycles: %.2f \n",
cy3, cl3, 100. * cy3 / total, (double) cl3 / cy3);
printf(" %.1f cycles per input byte.\n", (double) total / (iterations * p.second));
#endif
// colorfuldisplay(pj, p.first);
double min_result = *min_element(res.begin(), res.end());