/go-benchmark

Primary LanguageGoMIT LicenseMIT

Golang benchmarks

Byte buffers

Bytes Buffer results

Buffer libs used

Launch bench

$ go test ./... -bench=. -benchmem
Buffer tests
$ 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 default
  • queue Number of goroutines; default is NumCPU (default 8)