mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #78777 from tedyu/preempt-bench
Use no-priority best-effort pod as the preemptor in BenchmarkGetPodsToPreempt
This commit is contained in:
commit
ec02afb46e
@ -194,7 +194,7 @@ func BenchmarkGetPodsToPreempt(t *testing.B) {
|
|||||||
inputPods = append(inputPods, allPods[tinyBurstable])
|
inputPods = append(inputPods, allPods[tinyBurstable])
|
||||||
}
|
}
|
||||||
for n := 0; n < t.N; n++ {
|
for n := 0; n < t.N; n++ {
|
||||||
getPodsToPreempt(nil, inputPods, admissionRequirementList([]*admissionRequirement{
|
getPodsToPreempt(allPods[bestEffort], inputPods, admissionRequirementList([]*admissionRequirement{
|
||||||
{
|
{
|
||||||
resourceName: v1.ResourceCPU,
|
resourceName: v1.ResourceCPU,
|
||||||
quantity: parseCPUToInt64("110m"),
|
quantity: parseCPUToInt64("110m"),
|
||||||
|
Loading…
Reference in New Issue
Block a user