Skip to content

dragmz/iocpb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

io.Copy vs io.CopyBuffer benchmark; run with:

go test -bench .

Results:

> go test -bench .
goos: windows
goarch: amd64
pkg: iocpb
BenchmarkIoCopy-4                         200000              8295 ns/op
BenchmarkIoCopyBufferWithPool-4          2000000               609 ns/op
BenchmarkIoCopyBuffer-4                  3000000               534 ns/op
PASS
ok      iocpb   5.786s

Related:

About

Go io.Copy vs io.CopyBuffer benchmark

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages