add benchmarks for rendering & summarising processes-by-name

This commit is contained in:
Matthias Radestock
2017-12-26 11:59:50 +00:00
parent 56a1efd38a
commit a9e5b99a74

View File

@@ -131,6 +131,10 @@ func BenchmarkRenderProcesses(b *testing.B) {
benchmarkRenderTopology(b, "processes")
}
func BenchmarkRenderProcessNames(b *testing.B) {
benchmarkRenderTopology(b, "processes-by-name")
}
func benchmarkSummarizeTopology(b *testing.B, topologyID string) {
r := getReport(b)
rc := report.RenderContext{Report: r}
@@ -160,3 +164,7 @@ func BenchmarkSummarizeContainers(b *testing.B) {
func BenchmarkSummarizeProcesses(b *testing.B) {
benchmarkSummarizeTopology(b, "processes")
}
func BenchmarkSummarizeProcessNames(b *testing.B) {
benchmarkSummarizeTopology(b, "processes-by-name")
}