mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-16 03:49:52 +00:00
add some more topology rendering benchmarks
This commit is contained in:
@@ -101,10 +101,22 @@ func BenchmarkTopologyHosts(b *testing.B) {
|
||||
benchmarkOneTopology(b, "hosts")
|
||||
}
|
||||
|
||||
func BenchmarkTopologyControllers(b *testing.B) {
|
||||
benchmarkOneTopology(b, "kube-controllers")
|
||||
}
|
||||
|
||||
func BenchmarkTopologyPods(b *testing.B) {
|
||||
benchmarkOneTopology(b, "pods")
|
||||
}
|
||||
|
||||
func BenchmarkTopologyContainers(b *testing.B) {
|
||||
benchmarkOneTopology(b, "containers")
|
||||
}
|
||||
|
||||
func BenchmarkTopologyProcesses(b *testing.B) {
|
||||
benchmarkOneTopology(b, "processes")
|
||||
}
|
||||
|
||||
func benchmarkOneTopology(b *testing.B, topologyID string) {
|
||||
benchmarkRender(b, func(report report.Report) {
|
||||
renderer, filter, err := topologyRegistry.RendererForTopology(topologyID, url.Values{}, report)
|
||||
|
||||
Reference in New Issue
Block a user