MoBenchmark: don't write algo_perf==0.0 items to config
This commit is contained in:
parent
adb372408a
commit
7a34e3f901
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ rapidjson::Value MoBenchmark::toJSON(rapidjson::Document &doc) const
|
||||||
Value obj(kObjectType);
|
Value obj(kObjectType);
|
||||||
|
|
||||||
for (const Algorithm a : Algorithm::all()) {
|
for (const Algorithm a : Algorithm::all()) {
|
||||||
|
if (algo_perf[a.id()] == 0.0f) continue;
|
||||||
obj.AddMember(StringRef(a.name()), algo_perf[a.id()], allocator);
|
obj.AddMember(StringRef(a.name()), algo_perf[a.id()], allocator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue