MoBenchmark: don't write algo_perf==0.0 items to config

This commit is contained in:
Tony Butler 2024-05-29 09:01:24 -06:00
parent adb372408a
commit 7a34e3f901

View file

@ -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);
}