mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	scheduler benchmark: allow to override bench prefix
Right now, hack/jenkins/dockerized.sh is solely utilized by scheduler perf jenkins job. There's an effort to extend the scheduler performance suite. In order to run individual subsuites separately, we need a way to select a subset of benchmark tests to be run. Golang exposes -bench option which allows to specify a prefix of benchmark tests to be run.
This commit is contained in:
		@@ -59,7 +59,7 @@ cd "${GOPATH}/src/k8s.io/kubernetes"
 | 
			
		||||
./hack/install-etcd.sh
 | 
			
		||||
 | 
			
		||||
# Run the benchmark tests and pretty-print the results into a separate file.
 | 
			
		||||
make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=. -benchmem  -alsologtostderr=false -logtostderr=false" \
 | 
			
		||||
make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=${TEST_PREFIX:-.} -benchmem  -alsologtostderr=false -logtostderr=false" \
 | 
			
		||||
  | (go run test/integration/benchmark/extractlog/main.go) \
 | 
			
		||||
  | tee \
 | 
			
		||||
   >(prettybench -no-passthrough > "${ARTIFACTS}/BenchmarkResults.txt") \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user