go/src/testing
Masahiro Furudate 0f2a1574b0 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>
2020-02-24 01:25:54 +00:00
..
internal/testdeps testing/internal/testdeps: delete didSetLogger variable 2019-05-28 16:07:50 +00:00
iotest testing/iotest: add missing tests 2019-11-05 17:57:10 +00:00
quick all: shorten some tests 2019-05-22 12:54:00 +00:00
allocs.go
allocs_test.go
benchmark.go testing: make Cleanup work for benchmarks too. 2020-02-06 17:29:53 +00:00
benchmark_test.go testing: shorten go test -short testing 2019-05-16 03:25:08 +00:00
cover.go testing/cover: improve message when a package has no statements 2019-03-13 04:11:58 +00:00
example.go testing: use conventional comments for exported internal funcs & structs 2019-12-10 21:11:20 +00:00
export_test.go testing: stop rounding b.N 2019-03-20 21:19:16 +00:00
helper_test.go
helperfuncs_test.go
match.go
match_test.go
panic_test.go testing: don't run Cleanup functions until parallel subtests complete 2020-01-16 21:32:12 +00:00
run_example.go testing: enable examples on js/wasm with non os.Pipe runExample 2019-03-11 18:59:53 +00:00
run_example_js.go testing: enable examples on js/wasm with non os.Pipe runExample 2019-03-11 18:59:53 +00:00
sub_test.go testing: make Cleanup work for benchmarks too. 2020-02-06 17:29:53 +00:00
testing.go testing: change benchmark example function 2020-02-24 01:25:54 +00:00
testing_test.go