Skip to content

Instantly share code, notes, and snippets.

@mantyr
Created August 19, 2016 09:36
Show Gist options
  • Save mantyr/3f952a9252b30635beef81dac1eee856 to your computer and use it in GitHub Desktop.
Save mantyr/3f952a9252b30635beef81dac1eee856 to your computer and use it in GitHub Desktop.
Сравниваем бенчмарки в Golang
$ 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