Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance could be better #7

Open
kevinburke opened this issue Apr 29, 2018 · 0 comments
Open

Performance could be better #7

kevinburke opened this issue Apr 29, 2018 · 0 comments

Comments

@kevinburke
Copy link
Owner

kevinburke commented Apr 29, 2018

Probably we can be smarter with allocations and buffer growing etc. to improve performance.

$ make bench
go list ./... | grep -v vendor | xargs go test -benchtime=2s -bench=. -run='^$' 2>&1 | /Users/kevin/bin/benchstat /dev/stdin
name         time/op
Copy-4          131µs ± 0%
Writer-4        152µs ± 0%
WriterBig-4     149µs ± 0%

name         speed
Copy-4       62.4MB/s ± 0%
Writer-4     54.0MB/s ± 0%
WriterBig-4  54.8MB/s ± 0%

name         alloc/op
Copy-4         47.7kB ± 0%
Writer-4       47.2kB ± 0%
WriterBig-4    14.4kB ± 0%

name         allocs/op
Copy-4            991 ± 0%
Writer-4          985 ± 0%
WriterBig-4       984 ± 0%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant