You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.5x slowdown, note that the performance hit doesn't exist on tip so that's good at least.
Result:
Go 1.7
➤ go17 version; go17 test -bench=. -benchtime=5s
go version go1.7.5 linux/amd64
testing: warning: no tests to run
BenchmarkZeroByHand-8 2000000000 2.86 ns/op
BenchmarkZeroByAssign-8 3000000000 2.58 ns/op
Go 1.8
➤ go18 version; go18 test -bench=. -benchtime=5s
go version go1.8 linux/amd64
BenchmarkZeroByHand-8 2000000000 2.80 ns/op
BenchmarkZeroByAssign-8 2000000000 4.95 ns/op
Go tip
➤ go version; go test -bench=. -benchtime=5s
go version devel +7ac2e413eb 2017-03-23 19:15:51 +0000 linux/amd64
goos: linux
goarch: amd64
BenchmarkZeroByHand-8 3000000000 2.80 ns/op
BenchmarkZeroByAssign-8 3000000000 2.51 ns/op
The text was updated successfully, but these errors were encountered:
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.7, 1.8 and tip
What operating system and processor architecture are you using (
go env
)?amd64
What did you do?
Ran https://play.golang.org/p/jAE_x1PZb_
What did you expect to see?
Same performance as 1.7.x
What did you see instead?
2.5x slowdown, note that the performance hit doesn't exist on tip so that's good at least.
Result:
Go 1.7
Go 1.8
Go tip
The text was updated successfully, but these errors were encountered: