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: hack/benchmark/cpu_usage/auto_pause/README.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,24 @@ These scripts are for the benchmark of cpu usage, minikube vs kind vs k3d.
7
7
8
8
In `benchmark_local_k8s.sh`, we compare minikube drivers(hyperkit, virtualbox, docker, docker with auto-pause) and kind, k3d, Docker for Mac Kubernetes in case of macOS.
9
9
In `benchmark_local_k8s.sh`, we compare minikube drivers(kvm2, virtualbox, docker, docker with auto-pause) and kind, k3d in case of Linux.
10
+
`benchmark_local_k8s.sh` take these steps to measure `auto-pause` vs. `non auto-pause`.
11
+
12
+
1. start each local kubernetes tool
13
+
2. deploy sample application(nginx deployment)
14
+
3. wait 1 minute without anything
15
+
4. measure No.3 idle CPU usage with [cstat](https://github.com/tstromberg/cstat)
16
+
5. enable auto-pause addons(only if tool is minikube)
17
+
6. wait 3 minute without anything
18
+
7. measure No.6 idle CPU usage with [cstat](https://github.com/tstromberg/cstat)
10
19
11
20
# How to use these scripts
12
21
13
22
```
14
23
cd <Top of minikube directory>
15
-
make cpu-benchmark
24
+
make cpu-benchmark-benchmark-autopause
16
25
```
17
26
18
-
After running `make cpu-benchmark`, the png file of the bar chart graph will be generated.
27
+
After running `make cpu-benchmark-autopause`, the png file of the bar chart graph will be generated.
19
28
If you update the benchmark results to [our website](https://minikube.sigs.k8s.io/docs/benchmarks/), please commit this change.
Copy file name to clipboardExpand all lines: hack/benchmark/cpu_usage/idle_only/README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,21 @@ These scripts are for the benchmark of cpu usage, minikube vs kind vs k3d.
5
5
*`update_summary.sh`: create one summary csv file of each drivers and products
6
6
*`chart.go`: create bar chart graph as a png file
7
7
8
-
In `benchmark_local_k8s.sh`, we compare minikube drivers(hyperkit, virtualbox, docker, docker with auto-pause) and kind, k3d, Docker for Mac Kubernetes in case of macOS.
9
-
In `benchmark_local_k8s.sh`, we compare minikube drivers(kvm2, virtualbox, docker, docker with auto-pause) and kind, k3d in case of Linux.
8
+
In `benchmark_local_k8s.sh`, we compare minikube drivers(docker, hyperkit, virtualbox) and kind, k3d, Docker for Mac Kubernetes in case of macOS.
9
+
In `benchmark_local_k8s.sh`, we compare minikube drivers(docker, kvm2, virtualbox) and kind, k3d in case of Linux.
10
+
`benchmark_local_k8s.sh` take these steps to measure idle usage after start-up.
11
+
12
+
1. start each local kubernetes tool
13
+
2. measure its cpu usage with [cstat](https://github.com/tstromberg/cstat)
10
14
11
15
# How to use these scripts
12
16
13
17
```
14
18
cd <Top of minikube directory>
15
-
make cpu-benchmark
19
+
make cpu-benchmark-idle
16
20
```
17
21
18
-
After running `make cpu-benchmark`, the png file of the bar chart graph will be generated.
22
+
After running `make cpu-benchmark-idle`, the png file of the bar chart graph will be generated.
19
23
If you update the benchmark results to [our website](https://minikube.sigs.k8s.io/docs/benchmarks/), please commit this change.
0 commit comments