go-benchmark

module
v0.0.0-...-449c051 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2016 License: MIT

README

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)

Directories

Path Synopsis
see https://github.com/mailru/easyjson/blob/master/buffer/pool.go I need Reset() method to test, bu private functions prevents to embed Buffer
see https://github.com/mailru/easyjson/blob/master/buffer/pool.go I need Reset() method to test, bu private functions prevents to embed Buffer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL