]> Cypherpunks repositories - gostls13.git/commit
testing: change benchmark example function
authorMasahiro Furudate <178inaba.git@gmail.com>
Thu, 20 Feb 2020 18:29:43 +0000 (03:29 +0900)
committerIan Lance Taylor <iant@golang.org>
Mon, 24 Feb 2020 01:25:54 +0000 (01:25 +0000)
commit0f2a1574b02de3fec6937e65b1bdc21106bef15c
treee95af47a682fb4035e002b1bcfc3d0175e90da17
parent5bd145413a84be1afa74a82767384d9e224f7069
testing: change benchmark example function

Change to rand.Int, a function that the compiler cannot reliably eliminate.
Fix output to actual benchmark values.

Fixes #37341

Change-Id: Ifb5bf49b826ae0bdb4bf9de5a472ad0eaa54569c
Reviewed-on: https://go-review.googlesource.com/c/go/+/220397
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/testing/testing.go