Closed
Description
What version of Go are you using (go version
)?
$ go version go version devel go1.18-91abe4be0e Sat Nov 20 08:47:36 2021 +0000 linux/amd64
What did you do?
https://play.golang.org/p/HM5X5crNSr4
What did you expect to see?
Similar performance,
What did you see instead?
Tip is much slower for both of the benchmarks.
The following is the benchstat results:
_CreateOnOneLargeBlock-4 4.78µs ± 4% 7.50µs ± 8% +56.85% (p=0.000 n=10+10)
_CreateOnManySmallBlocks-4 17.5µs ±11% 21.9µs ± 1% +25.13% (p=0.000 n=10+10)
This could be also verified by run go test -bench=. -benchmem slice_test.go
in the src/runtime
dir.
Most benchmarks spend more time than v1.17.3, except several ones like BenchmarkAppend*/*.