Skip to content

Commit a981e81

Browse files
committed
Update README about cpu-benchmark
1 parent 67da2c8 commit a981e81

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

hack/benchmark/cpu_usage/auto_pause/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,24 @@ These scripts are for the benchmark of cpu usage, minikube vs kind vs k3d.
77

88
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.
99
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)
1019

1120
# How to use these scripts
1221

1322
```
1423
cd <Top of minikube directory>
15-
make cpu-benchmark
24+
make cpu-benchmark-benchmark-autopause
1625
```
1726

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.
1928
If you update the benchmark results to [our website](https://minikube.sigs.k8s.io/docs/benchmarks/), please commit this change.
2029

2130
```

hack/benchmark/cpu_usage/idle_only/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,21 @@ These scripts are for the benchmark of cpu usage, minikube vs kind vs k3d.
55
* `update_summary.sh`: create one summary csv file of each drivers and products
66
* `chart.go`: create bar chart graph as a png file
77

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)
1014

1115
# How to use these scripts
1216

1317
```
1418
cd <Top of minikube directory>
15-
make cpu-benchmark
19+
make cpu-benchmark-idle
1620
```
1721

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.
1923
If you update the benchmark results to [our website](https://minikube.sigs.k8s.io/docs/benchmarks/), please commit this change.
2024

2125
```

0 commit comments

Comments
 (0)