Skip to content

Instantly share code, notes, and snippets.

@freeformz
Created March 12, 2016 01:04
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 freeformz/a1f4064438c8125ab6af to your computer and use it in GitHub Desktop.
Save freeformz/a1f4064438c8125ab6af to your computer and use it in GitHub Desktop.
$ go test -cpu 1,4 -bench Pipe -benchmem .
PASS
BenchmarkPipeline 50 25605141 ns/op 45.76 MB/s 3263675 B/op 32618 allocs/op
BenchmarkPipeline-4 2000 1311399 ns/op 30.85 MB/s 163586 B/op 1582 allocs/op
$ git checkout remove_front_buff
Switched to branch 'remove_front_buff'
$ go test -cpu 1,4 -bench Pipe -benchmem .
PASS
BenchmarkPipeline 100 13675065 ns/op 110.69 MB/s 3564797 B/op 36274 allocs/op
BenchmarkPipeline-4 2000 501283 ns/op 57.37 MB/s 96341 B/op 952 allocs/op
ok github.com/heroku/log-shuttle 5.028s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment