Merge pull request #136 from Spudz76/pr-mo-algo_perf-zeros
MoBenchmark: don't write algo_perf==0.0 items to config
This commit is contained in:
commit
700ba19244
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue