forked from weaselab/conflict-set
Present gc as ratio of time in gc to time in add or gc
This commit is contained in:
+3
-3
@@ -119,8 +119,8 @@ int main(int argc, const char **argv) {
|
|||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Check: %g seconds, %g MB/s, Add: %g seconds, %g MB/s, Gc: %g "
|
printf(
|
||||||
"seconds\n",
|
"Check: %g seconds, %g MB/s, Add: %g seconds, %g MB/s, Gc ratio: %g%%\n",
|
||||||
checkTime, checkBytes / checkTime * 1e-6, addTime,
|
checkTime, checkBytes / checkTime * 1e-6, addTime,
|
||||||
addBytes / addTime * 1e-6, gcTime);
|
addBytes / addTime * 1e-6, gcTime / (gcTime + addTime) * 1e2);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user