pkg/tarsum
Josh Hawn 985d3bd404 Correct TarSum benchmarks: 9kTar and 9kTarGzip
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)
2014-12-03 10:44:05 -08:00
..
testdata tarsum: name collision fix 2014-09-17 14:37:46 -04:00
fileinfosums.go tarsum: name collision fix 2014-09-17 14:37:46 -04:00
fileinfosums_test.go tarsum: name collision fix 2014-09-17 14:37:46 -04:00
MAINTAINERS pkg/tarsum: add maintainers & add missing s 2014-11-26 00:44:16 +02:00
tarsum.go pkg/tarsum: actually init the TarSum struct 2014-11-19 15:46:03 -05:00
tarsum_test.go Correct TarSum benchmarks: 9kTar and 9kTarGzip 2014-12-03 10:44:05 -08:00
versioning.go Finalize TarSum Version 1 w/ refactor 2014-11-04 21:38:52 -08:00
versioning_test.go Finalize TarSum Version 1 w/ refactor 2014-11-04 21:38:52 -08:00
writercloser.go TarSum: versioning 2014-09-10 15:41:52 -04:00