mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![]() These two cases did not actually read the same content with each iteration of the benchmark. After the first read, the buffer was consumed. This patch corrects this by using a bytes.Reader and seeking to the beginning of the buffer at the beginning of each iteration. Unfortunately, this benchmark was not actually as fast as we believed. But the new results do bring its results closer to those of the other benchmarks. Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn) |
||
---|---|---|
.. | ||
testdata | ||
fileinfosums.go | ||
fileinfosums_test.go | ||
MAINTAINERS | ||
tarsum.go | ||
tarsum_test.go | ||
versioning.go | ||
versioning_test.go | ||
writercloser.go |