From b97f611a3c0b14d0d140cc52f8a99f9201161ede Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Sun, 3 Mar 2024 20:53:29 -0800 Subject: [PATCH] Present gc as ratio of time in gc to time in add or gc --- RealDataBench.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RealDataBench.cpp b/RealDataBench.cpp index f2231bc..acdc564 100644 --- a/RealDataBench.cpp +++ b/RealDataBench.cpp @@ -119,8 +119,8 @@ int main(int argc, const char **argv) { close(fd); } - printf("Check: %g seconds, %g MB/s, Add: %g seconds, %g MB/s, Gc: %g " - "seconds\n", - checkTime, checkBytes / checkTime * 1e-6, addTime, - addBytes / addTime * 1e-6, gcTime); + printf( + "Check: %g seconds, %g MB/s, Add: %g seconds, %g MB/s, Gc ratio: %g%%\n", + checkTime, checkBytes / checkTime * 1e-6, addTime, + addBytes / addTime * 1e-6, gcTime / (gcTime + addTime) * 1e2); } \ No newline at end of file