mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
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:
commit
3b393e3d17
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user