]> Cypherpunks.ru repositories - gostls13.git/commit
fmt,math/big,net/url: fixes to old Benchmarks
authorEgon Elbre <egonelbre@gmail.com>
Mon, 22 May 2023 19:40:47 +0000 (22:40 +0300)
committerGopher Robot <gobot@golang.org>
Tue, 23 May 2023 20:25:13 +0000 (20:25 +0000)
commit74af79bcf6b1efde7b91ac3e519338c6815efda9
tree05770ba58e10780ab6fd6be1f0a52e88b7578f09
parent64c95d24f0aab42b26cab0c2262274d0ea2eaa85
fmt,math/big,net/url: fixes to old Benchmarks

b.ResetTimer used to also stop the timer, however it does not anymore.
These benchmarks hadn't been fixed and as a result ended up measuring
some additional things.

Also, make some for loops more conventional.

Change-Id: I76ca68456d85eec51722a80587e5b2c9f5d836a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/496996
Run-TryBot: Damien Neil <dneil@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
src/fmt/scan_test.go
src/math/big/int_test.go
src/net/url/url_test.go