| commit | c5a3cf6e0888510922b04e978f4e30221b70aaaf | [log] [tgz] |
|---|---|---|
| author | Carlo Alberto Ferraris <cafxx@strayorange.com> | Sat Dec 06 08:39:39 2025 +0900 |
| committer | Gopher Robot <gobot@golang.org> | Wed Feb 04 15:16:43 2026 -0800 |
| tree | dfca04db0c48165b8711d9b94cb18c351a3b501c | |
| parent | 3b092b27a9490382199cf793a652d922fd457315 [diff] |
net/http: use SplitSeq in ParseCookie
goos: linux
goarch: amd64
pkg: net/http
cpu: 12th Gen Intel(R) Core(TM) i7-12700
│ master.txt │ patch.txt │
│ sec/op │ sec/op vs base │
ReadCookies/readCookies-20 1.499µ ± 1% 1.482µ ± 3% ~ (p=0.197 n=10)
ReadCookies/ParseCookie-20 1.552µ ± 2% 1.437µ ± 2% -7.44% (p=0.000 n=10)
geomean 1.525µ 1.459µ -4.34%
│ master.txt │ patch.txt │
│ B/op │ B/op vs base │
ReadCookies/readCookies-20 1.953Ki ± 0% 1.953Ki ± 0% ~ (p=1.000 n=10) ¹
ReadCookies/ParseCookie-20 2.109Ki ± 0% 1.953Ki ± 0% -7.41% (p=0.000 n=10)
geomean 2.030Ki 1.953Ki -3.77%
¹ all samples are equal
│ master.txt │ patch.txt │
│ allocs/op │ allocs/op vs base │
ReadCookies/readCookies-20 11.00 ± 0% 11.00 ± 0% ~ (p=1.000 n=10) ¹
ReadCookies/ParseCookie-20 12.00 ± 0% 11.00 ± 0% -8.33% (p=0.000 n=10)
geomean 11.49 11.00 -4.26%
¹ all samples are equal
Change-Id: I7e84d52ac8d25991595d1b0480334fe9d1a84ffb
Reviewed-on: https://go-review.googlesource.com/c/go/+/727520
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attribution license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.