Skip to content
Snippets Groups Projects
Commit b01483b5 authored by Bouillaguet Charles's avatar Bouillaguet Charles
Browse files

more verbose benchmark

parent c637ebed
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,7 @@ int main() { ...@@ -76,6 +76,7 @@ int main() {
double t = wtime() - t1; double t = wtime() - t1;
printf("Durée benchmark = %.2fs\n", t); printf("Durée benchmark = %.2fs\n", t);
printf("Itérations/s = %.1fM/s\n", WORK_FACTOR / t / 1e6);
printf("Concrètement = %d tasks of size %.1f h-CPU\n", 1 << known_low, printf("Concrètement = %d tasks of size %.1f h-CPU\n", 1 << known_low,
t / WORK_FACTOR * (1ull << (nbiter * known_up + known_low - 1)) / 3600); t / WORK_FACTOR * (1ull << (nbiter * known_up + known_low - 1)) / 3600);
printf("Attaque complète = %.0fK h-CPU\n", t / WORK_FACTOR * (1ull << (nbiter * known_up + 2*known_low - 1)) / 3600 / 1e3); printf("Attaque complète = %.0fK h-CPU\n", t / WORK_FACTOR * (1ull << (nbiter * known_up + 2*known_low - 1)) / 3600 / 1e3);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment