Skip to content

Commit

Permalink
MoBenchmark: don't write algo_perf==0.0 items to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Spudz76 committed May 29, 2024
1 parent adb3724 commit 7a34e3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/MoBenchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ rapidjson::Value MoBenchmark::toJSON(rapidjson::Document &doc) const
Value obj(kObjectType);

for (const Algorithm a : Algorithm::all()) {
if (algo_perf[a.id()] == 0.0f) continue;
obj.AddMember(StringRef(a.name()), algo_perf[a.id()], allocator);
}

Expand Down

0 comments on commit 7a34e3f

Please sign in to comment.