Created
August 19, 2016 09:36
-
-
Save mantyr/3f952a9252b30635beef81dac1eee856 to your computer and use it in GitHub Desktop.
Сравниваем бенчмарки в Golang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go test -run NONE -bench . -gcflags -ssa=0 > nossa.txt | |
testing: warning: no tests to run | |
$ go test -run NONE -bench . -gcflags -ssa=1 > ssa.txt | |
testing: warning: no tests to run | |
$ benchcmp nossa.txt ssa.txt | |
benchmark old ns/op new ns/op delta | |
BenchmarkAdd-4 2.45 11.4 +365.31% | |
https://github.com/golang/go/issues/15925 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment