Skip to content

Commit

Permalink
Merge pull request #129 from intel/nons
Browse files Browse the repository at this point in the history
clean up benchmark summary table when no min latency collected
  • Loading branch information
harp-intel authored Dec 19, 2024
2 parents 556fbaa + 79f90a5 commit 73961ae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmd/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ func benchmarkSummaryFromTableValues(allTableValues []report.TableValues, output
{Name: "Maximum Temperature", Values: []string{getValueFromTableValues(getTableValues(allTableValues, report.CPUTemperatureTableName), "Maximum Temperature", 0)}},
{Name: "Minimum Power", Values: []string{getValueFromTableValues(getTableValues(allTableValues, report.CPUPowerTableName), "Minimum Power", 0)}},
{Name: "Memory Peak Bandwidth"},
{Name: "Memory Minimum Latency", Values: []string{getValueFromTableValues(getTableValues(allTableValues, report.MemoryLatencyTableName), "Latency (ns)", 0) + " ns"}},
{Name: "Memory Minimum Latency"},
{Name: "Microarchitecture", Values: []string{getValueFromTableValues(getTableValues(allTableValues, report.SystemSummaryTableName), "Microarchitecture", 0)}},
{Name: "Sockets", Values: []string{getValueFromTableValues(getTableValues(allTableValues, report.SystemSummaryTableName), "Sockets", 0)}},
},
Expand Down Expand Up @@ -386,6 +386,13 @@ func benchmarkSummaryFromTableValues(allTableValues []report.TableValues, output
} else {
tableValues.Fields[6].Values = []string{""}
}
// get the minimum memory latency
minLatency := getValueFromTableValues(getTableValues(allTableValues, report.MemoryLatencyTableName), "Latency (ns)", 0)
if minLatency != "" {
tableValues.Fields[7].Values = []string{minLatency + " ns"}
} else {
tableValues.Fields[7].Values = []string{""}
}
return tableValues
}

Expand Down

0 comments on commit 73961ae

Please sign in to comment.