Skip to content

Instantly share code, notes, and snippets.

@sagivo
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagivo/a7f8604dea189b7c4d3f to your computer and use it in GitHub Desktop.
Save sagivo/a7f8604dea189b7c4d3f to your computer and use it in GitHub Desktop.
benchmarking results
$ go test -bench=. -cpu 4 -benchtime 10s mergesort_test.go
testing: warning: no tests to run
PASS
BenchmarkMSAsync-4 10 1450210929 ns/op
ok command-line-arguments 20.887s
$ go test -bench=. -cpu 4 -benchtime 10s quicksort_test.go
testing: warning: no tests to run
PASS
BenchmarkQS-4 5 2101334470 ns/op
ok command-line-arguments 35.437s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment