chore: clarify the labels in scheduler-perf

This commit is contained in:
Kensei Nakada
2024-09-10 23:41:56 +09:00
parent f0f7ff989a
commit 898cb15b18
7 changed files with 108 additions and 98 deletions

View File

@@ -19,11 +19,19 @@ limitations under the License.
package benchmark_test
import (
"flag"
"strings"
"testing"
benchmark "k8s.io/kubernetes/test/integration/scheduler_perf"
)
var perfSchedulingLabelFilter = flag.String("perf-scheduling-label-filter", "performance", "comma-separated list of labels which a testcase must have (no prefix or +) or must not have (-), used by BenchmarkPerfScheduling")
func BenchmarkPerfScheduling(b *testing.B) {
benchmark.RunBenchmarkPerfScheduling(b, nil)
if testing.Short() {
*perfSchedulingLabelFilter += ",+short"
}
benchmark.RunBenchmarkPerfScheduling(b, nil, strings.Split(*perfSchedulingLabelFilter, ","))
}