minikube/hack/benchmark/cpu_usage/idle_only
Tian 3cf1e63e21
build: address all lint issues by v2 (#20804)
* fix QF1011: could omit type *os.File from declaration; it will be inferred from the right-hand side

* fix QF1012: Use fmt.Fprintf(x, ...) instead of x.Write(fmt.Sprintf(...))

* fix QF1001: could apply De Morgan's law

* fix QF1003: could use tagged switch

* fix weakCond: suspicious ; nil check may not be enough, check for len (gocritic)

* fix docStub: silencing go lint doc-comment warnings is unadvised

* fix builtinShadow: shadowing of predeclared identifier: error

* fix importShadow: shadow of imported package

* fix nestingReduce: invert if cond, replace body with , move old body after the statement

* useless-break: useless break in case clause (revive)

* Clear the redundant content in golangci.yaml file
2025-05-23 17:31:28 -07:00
..
README.md Update README about cpu-benchmark 2021-04-29 01:06:27 +09:00
benchmark_local_k8s.sh divide idle only benchmark and autopause benchmark of cpu usage 2021-04-29 01:06:27 +09:00
chart.go build: address all lint issues by v2 (#20804) 2025-05-23 17:31:28 -07:00
update_summary.sh fixed CPU benchmarking typos and small formatting 2021-05-04 12:48:04 -07:00

README.md

What is these scripts

These scripts are for the benchmark of cpu usage, minikube vs kind vs k3d.

  • benchmark_local_k8s.sh: take benchmark for cpu usage. This will take long to take place
  • update_summary.sh: create one summary csv file of each drivers and products
  • chart.go: create bar chart graph as a png file

In benchmark_local_k8s.sh, we compare minikube drivers(docker, hyperkit, virtualbox) and kind, k3d, Docker for Mac Kubernetes in case of macOS.
In benchmark_local_k8s.sh, we compare minikube drivers(docker, kvm2, virtualbox) and kind, k3d in case of Linux.
benchmark_local_k8s.sh take these steps to measure idle usage after start-up.

  1. start each local kubernetes tool
  2. measure its cpu usage with cstat

How to use these scripts

cd <Top of minikube directory>
make cpu-benchmark-idle

After running make cpu-benchmark-idle, the png file of the bar chart graph will be generated.
If you update the benchmark results to our website, please commit this change.

git status
git add <Changed png file>
git commit