Skip to content

Instantly share code, notes, and snippets.

@bmatsuo
Created November 25, 2014 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmatsuo/a931d7c4b29db8895f7c to your computer and use it in GitHub Desktop.
Save bmatsuo/a931d7c4b29db8895f7c to your computer and use it in GitHub Desktop.
after inlining the copyWriter struct literal into WriteTo
PASS
BenchmarkReaderManpage 1000000 19398 ns/op 131.45 MB/s
BenchmarkReaderManpage_buffered 1000000 19347 ns/op 131.80 MB/s
BenchmarkReaderManpageNoCopy 1000000 19314 ns/op 132.02 MB/s
BenchmarkReaderJSON 50000 319364 ns/op 76.49 MB/s
BenchmarkReaderJSON_buffered 50000 333882 ns/op 67.62 MB/s
BenchmarkReaderJSONNoCopy 50000 336380 ns/op 67.12 MB/s
BenchmarkReaderRandom 10000 1870011 ns/op 5608.70 MB/s
BenchmarkReaderRandom_buffered 10000 1843386 ns/op 5689.01 MB/s
BenchmarkReaderRandomNoCopy 10000 2748211 ns/op 3815.95 MB/s
BenchmarkReaderConstant 1000 16192587 ns/op 30.61 MB/s
BenchmarkReaderConstant_buffered 1000 16193977 ns/op 30.48 MB/s
BenchmarkReaderConstantNoCopy 1000 16944641 ns/op 29.13 MB/s
ok github.com/mreiferson/go-snappystream 244.296s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment