1
0
mirror of https://github.com/golang/go synced 2024-11-23 07:20:06 -07:00

testing: use the builtin max/min function

This commit is contained in:
Muhammad Falak R Wani 2023-08-07 18:53:18 +05:30
parent 009c628b4d
commit 98dc6b1a11
No known key found for this signature in database
GPG Key ID: D323A5E0174C86DD

View File

@ -198,20 +198,6 @@ func (b *B) runN(n int) {
}
}
func min(x, y int64) int64 {
if x > y {
return y
}
return x
}
func max(x, y int64) int64 {
if x < y {
return y
}
return x
}
// run1 runs the first iteration of benchFunc. It reports whether more
// iterations of this benchmarks should be run.
func (b *B) run1() bool {