mirror of
https://github.com/weaveworks/scope.git
synced 2026-02-14 18:09:59 +00:00
add benchmarks for rendering & summarising processes-by-name
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user