]> Cypherpunks repositories - gostls13.git/commit
strings,bytes: make benchmark work deterministic
authorKeith Randall <khr@golang.org>
Wed, 14 May 2025 19:46:28 +0000 (12:46 -0700)
committerKeith Randall <khr@golang.org>
Thu, 15 May 2025 21:24:16 +0000 (14:24 -0700)
commita88f093aaa35ae18aa02389624822101cbf231c0
treed0fb43316339ff49e5d43eee7b92d0f54ce35933
parent19f05770b05ef2a12692f522056ffb3bc23583ea
strings,bytes: make benchmark work deterministic

It's hard to compare two different runs of a benchmark if they
are doing different amounts of work.

Change-Id: I5d6845f3d11bb10136f745e6207d5f683612276d
Reviewed-on: https://go-review.googlesource.com/c/go/+/672895
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/bytes/bytes_test.go
src/strings/strings_test.go