Skip to content

Commit

Permalink
Add flush to output
Browse files Browse the repository at this point in the history
  • Loading branch information
jesse-r-s-hines committed Mar 27, 2022
1 parent 8d86e20 commit 7eeb666
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ class Benchmark {

double avgRecordSize = (sizeRange.min + sizeRange.max) / 2.0;
if (avgRecordSize * countRange.min < (10 * GiB)) { // Skip combinations that are very large
std::cout << typeName << " : " << dataType << " : "
<< utils::prettySize(sizeRange.min) << " - " << utils::prettySize(sizeRange.max) << " : "
<< countRange.min << " - " << countRange.max << "\n";
std::cout << typeName << ", " << dataType << ", "
<< utils::prettySize(sizeRange.min) << " to " << utils::prettySize(sizeRange.max) << ", "
<< countRange.min << " to " << countRange.max << "\n";

utils::resetPeakMemUsage();

Expand Down Expand Up @@ -179,6 +179,7 @@ class Benchmark {
output << getCSVRow(typeName, "remove", pattern, removeStats);
output << getCSVRow(typeName, "memory", pattern, memoryStats);
output << getCSVRow(typeName, "space", pattern, spaceStats);
output.flush();
}
}
}
Expand Down

0 comments on commit 7eeb666

Please sign in to comment.