Skip to content

Commit

Permalink
fix: only print benchmark results if any are produced
Browse files Browse the repository at this point in the history
  • Loading branch information
SGSSGene committed Jul 31, 2024
1 parent bcfbb40 commit 2700686
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test_fmindex-collection/rankvector/checkRankVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,9 @@ struct Bench : ankerl::nanobench::Bench {
;
}
~Bench() {
std::cout << output.str() << '\n';
if (output.str().size() > 0) {
std::cout << output.str() << '\n';
}
}
};

Expand Down

0 comments on commit 2700686

Please sign in to comment.