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:
parent
009c628b4d
commit
98dc6b1a11
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user