aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorMuhammad Falak R Wani <falakreyaz@gmail.com>2023-08-07 13:44:17 +0000
committerGopher Robot <gobot@golang.org>2023-08-07 18:49:54 +0000
commit215bcbc6acc84565597bfafe8adc2eb1d1d5412b (patch)
tree0b881bdb0656a344605d1361d2ca57ab33f0038e /src/testing
parent78af0bbc65a06461e05318619acdaf35b630632a (diff)
downloadgo-215bcbc6acc84565597bfafe8adc2eb1d1d5412b.tar.xz
testing: use the builtin max/min function
Change-Id: I1250b6a33f5f3509a216d307f1783ad4aa5937fc GitHub-Last-Rev: 98dc6b1a11eea8542551a368780a74c1ee2d7083 GitHub-Pull-Request: golang/go#61809 Reviewed-on: https://go-review.googlesource.com/c/go/+/516616 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/benchmark.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/testing/benchmark.go b/src/testing/benchmark.go
index 0faf075d93..e408595993 100644
--- a/src/testing/benchmark.go
+++ b/src/testing/benchmark.go
@@ -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 {