Merge pull request #82330 from draveness/feature/remove-additional-cost-in-the-scheduler-benchmark

fix(scheduler): remove the defer function cost
This commit is contained in:
Kubernetes Prow Robot 2019-09-11 15:26:23 -07:00 committed by GitHub
commit 3b393e3d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -408,6 +408,9 @@ func benchmarkScheduling(numNodes, numExistingPods, minPods int,
// Since the total amount of time is relatively large, it might not be a concern.
time.Sleep(100 * time.Millisecond)
}
// Note: without this line we're taking the overhead of defer() into account.
b.StopTimer()
}
// makeBasePodWithSecrets creates a Pod object to be used as a template.