$ go test ./... -bench=. -benchmem
$ cd buffer/main
$ go build
$ ./main
Flags:
duration
Test duration in seconds (default 60)method
Function to run; allowed: "generic" "stack" "alloc" "sync" "bpool" "bbpool" (default "generic")out
Filename to write report; Prints into stdout by defaultqueue
Number of goroutines; default is NumCPU (default 8)