diff --git a/src/core/MoBenchmark.cpp b/src/core/MoBenchmark.cpp index 471b754a..9b0c6433 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); }