Commit 0f2a1574 authored by Masahiro Furudate's avatar Masahiro Furudate Committed by Ian Lance Taylor
Browse files

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: default avatarIan Lance Taylor <iant@golang.org>
parent 5bd14541
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment