My thought was the same as yours, that using the sink would avoid this, but the result below 1ns makes me think the opposite.
My setup:
goos: darwin
goarch: arm64
pkg: sdfs/headers
cpu: Apple M3 Pro
My thought was the same as yours, that using the sink would avoid this, but the result below 1ns makes me think the opposite.
My setup:
goos: darwin
goarch: arm64
pkg: sdfs/headers
cpu: Apple M3 Pro
One minor thing: the old benchmark loop range is optimizing the benchmark, using the new `b.Loop()` fixes it.
old:
BenchmarkTrimOWS/empty-11 ... 0.9915 ns/op
new:
BenchmarkTrimOWS/empty-11 ... 1.352 ns/op
One minor thing: the old benchmark loop range is optimizing the benchmark, using the new `b.Loop()` fixes it.
old:
BenchmarkTrimOWS/empty-11 ... 0.9915 ns/op
new:
BenchmarkTrimOWS/empty-11 ... 1.352 ns/op