package
0.0.2
Repository: https://github.com/sofastack/sofa-common-go.git
Documentation: pkg.go.dev

# README

batchwriter-go

batchwriter-go implements the io.Writer which batch writes (maybe writev if it's net.Conn) to writer by channel

go test -v -benchmem -run="^$" github.com/detailyang/batchwriter-go -bench "^Benchmark"
goos: darwin
goarch: amd64
pkg: github.com/detailyang/batchwriter-go
BenchmarkBatchWrite-8           	 2929246	       369 ns/op	     20997 failure	   2908249 success	     139 B/op	       1 allocs/op
BenchmarkBatchWriteParallel-8   	45410478	        35.0 ns/op	  45330196 failure	     80282 success	       0 B/op	       0 allocs/op
PASS
ok  	github.com/detailyang/batchwriter-go	3.131s