Merge pull request #17725 from ComradeProgrammer/231204
feat: add docker-env containerd into image benchmarkpull/18158/head
commit
ed5eb17033
|
@ -52,6 +52,7 @@ var Environments = []string{
|
|||
"MinikubeAddonRegistryDocker",
|
||||
"MinikubeImageLoadContainerd",
|
||||
"MinikubeImageContainerd",
|
||||
"MinikubeDockerEnvContainerd",
|
||||
"MinikubeAddonRegistryContainerd",
|
||||
"MinikubeImageLoadCrio",
|
||||
"MinikubeImageCrio",
|
||||
|
@ -72,6 +73,7 @@ var RuntimeMethods = map[string][]string{
|
|||
"containerd": {
|
||||
"MinikubeImageLoadContainerd",
|
||||
"MinikubeImageContainerd",
|
||||
"MinikubeDockerEnvContainerd",
|
||||
"MinikubeAddonRegistryContainerd",
|
||||
},
|
||||
}
|
||||
|
@ -158,9 +160,9 @@ func readInLatestTestResult(latestBenchmarkPath string) ItrTestResults {
|
|||
valuesInterative := []float64{}
|
||||
valuesNonInterative := []float64{}
|
||||
// interative test results of each env are stored in the following columns
|
||||
indicesInterative := []int{1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49}
|
||||
indicesInterative := []int{1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53}
|
||||
// non-interative test results of each env are stored in the following columns
|
||||
indicesNonInterative := []int{3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51}
|
||||
indicesNonInterative := []int{3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55}
|
||||
|
||||
for _, i := range indicesInterative {
|
||||
if line[i] == "NaN" {
|
||||
|
@ -261,7 +263,7 @@ func createChart(record Records, itr string, imageName string, runtime string, c
|
|||
for i := 0; i < len(record.Records); i++ {
|
||||
for _, method := range RuntimeMethods[runtime] {
|
||||
// for invalid values(<0) this point is dropped
|
||||
if record.Records[i].Results[itr][imageName][method] >= 0 {
|
||||
if v, ok := record.Records[i].Results[itr][imageName][method]; ok && v > 0 {
|
||||
point := plotter.XY{
|
||||
X: float64(record.Records[i].Date.Unix()),
|
||||
Y: record.Records[i].Results[itr][imageName][method],
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 32d98100979ac0a30ce4ee6994a52a8d0faec1a7
|
||||
Subproject commit f8e2d0ff39bc0bfc027357e1a2eb13e3d5363232
|
|
@ -27,7 +27,7 @@ run_benchmark() {
|
|||
( cd ./hack/benchmark/image-build/minikube-image-benchmark &&
|
||||
git submodule update --init &&
|
||||
make &&
|
||||
./out/benchmark --runs=4 --memory="1800m" --images="buildpacksFewLargeFiles" --iters="iterative" --bench-methods="image load docker,image build docker,docker-env docker,registry docker,image load containerd,image build containerd,registry containerd")
|
||||
./out/benchmark --runs=4 --memory="1800m" --images="buildpacksFewLargeFiles" --iters="iterative" --bench-methods="image load docker,image build docker,docker-env docker,registry docker,image load containerd,image build containerd,registry containerd,docker-env containerd")
|
||||
}
|
||||
|
||||
generate_chart() {
|
||||
|
|
Loading…
Reference in New Issue