You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/integration/scheduler_perf/README.md
+31-3Lines changed: 31 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,14 +31,42 @@ Currently the test suite has the following:
31
31
32
32
How To Run
33
33
------
34
+
35
+
## Density tests
36
+
34
37
```shell
35
38
# In Kubernetes root path
36
-
make generated_files
39
+
make test-integration WHAT=./test/integration/scheduler_perf KUBE_TEST_VMODULE="''" KUBE_TEST_ARGS="-alsologtostderr=true -logtostderr=true -run=." KUBE_TIMEOUT="--timeout=60m" SHORT="--short=false"
40
+
```
41
+
42
+
## Benchmark tests
43
+
44
+
```shell
45
+
# In Kubernetes root path
46
+
make test-integration WHAT=./test/integration/scheduler_perf KUBE_TEST_VMODULE="''" KUBE_TEST_ARGS="-alsologtostderr=false -logtostderr=false -run=^$$ -benchtime=1ns -bench=BenchmarkPerfScheduling"
47
+
```
48
+
49
+
The benchmark suite runs all the tests specified under config/performance-config.yaml.
37
50
38
-
cd test/integration/scheduler_perf
39
-
./test-performance.sh
51
+
Once the benchmark is finished, JSON file with metrics is available in the current directory (test/integration/scheduler_perf). Look for `BenchmarkPerfScheduling_YYYY-MM-DDTHH:MM:SSZ.json`.
52
+
You can use `-data-items-dir` to generate the metrics file elsewhere.
53
+
54
+
In case you want to run a specific test in the suite, you can specify the test through `-bench` flag:
55
+
56
+
Also, bench time is explicitly set to 1ns (`-benchtime=1ns` flag) so each test is run only once.
57
+
Otherwise, the golang benchmark framework will try to run a test more than once in case it ran for less than 1s.
58
+
59
+
```shell
60
+
# In Kubernetes root path
61
+
make test-integration WHAT=./test/integration/scheduler_perf KUBE_TEST_VMODULE="''" KUBE_TEST_ARGS="-alsologtostderr=false -logtostderr=false -run=^$$ -benchtime=1ns -bench=BenchmarkPerfScheduling/SchedulingBasic/5000Nodes/5000InitPods/1000PodsToSchedule"
0 commit comments