aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack.go
diff options
context:
space:
mode:
authoreric fang <eric.fang@arm.com>2020-05-13 06:38:39 +0000
committerIan Lance Taylor <iant@golang.org>2020-09-10 20:25:45 +0000
commita1762c2cc67822d86cb37747a56f0d4a07d24ced (patch)
tree650d0e2e6974d1aa336341f076b38979983418f0 /src/runtime/stack.go
parentd7ab277eed4d2e5ede4f3361adf42d4ad76ced8f (diff)
downloadgo-a1762c2cc67822d86cb37747a56f0d4a07d24ced.tar.xz
unicode/utf8: refactor benchmarks for FullRune function
BenchmarkFullASCIIRune tests the performance of function utf8.FullRune, which will be inlined in BenchmarkFullASCIIRune. Since the return value of FullRune is not referenced, it will be removed as dead code. This CL makes the FullRune functions return value referenced by a global variable to avoid this point. In addition, this CL adds one more benchmark to cover more code paths, and puts them together as sub benchmarks of BenchmarkFullRune. Change-Id: I6e79f4c087adf70e351498a4b58d7482dcd1ec4a Reviewed-on: https://go-review.googlesource.com/c/go/+/233979 Run-TryBot: eric fang <eric.fang@arm.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/stack.go')
0 files changed, 0 insertions, 0 deletions