From 7a34e3f90118294ddd3b7cde2b86d2f39f80dac0 Mon Sep 17 00:00:00 2001 From: Tony Butler Date: Wed, 29 May 2024 09:01:24 -0600 Subject: [PATCH] MoBenchmark: don't write algo_perf==0.0 items to config --- src/core/MoBenchmark.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/MoBenchmark.cpp b/src/core/MoBenchmark.cpp index 471b754a74..9b0c64335a 100644 --- a/src/core/MoBenchmark.cpp +++ b/src/core/MoBenchmark.cpp @@ -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); }