Skip to content

Instantly share code, notes, and snippets.

@bmatsuo
Last active August 29, 2015 14:10
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/e1edd0a21f91f448ad31 to your computer and use it in GitHub Desktop.
Save bmatsuo/e1edd0a21f91f448ad31 to your computer and use it in GitHub Desktop.
without inlining the copyWriter struct literal
PASS
BenchmarkReaderManpage 1000000 19525 ns/op 130.60 MB/s
BenchmarkReaderManpage_buffered 1000000 19605 ns/op 130.07 MB/s
BenchmarkReaderManpageNoCopy 1000000 19686 ns/op 129.53 MB/s
BenchmarkReaderJSON 50000 314747 ns/op 77.61 MB/s
BenchmarkReaderJSON_buffered 50000 330732 ns/op 68.27 MB/s
BenchmarkReaderJSONNoCopy 50000 332856 ns/op 67.83 MB/s
BenchmarkReaderRandom 10000 1893232 ns/op 5539.91 MB/s
BenchmarkReaderRandom_buffered 10000 1842477 ns/op 5691.82 MB/s
BenchmarkReaderRandomNoCopy 10000 2765457 ns/op 3792.16 MB/s
BenchmarkReaderConstant 1000 16210969 ns/op 30.58 MB/s
BenchmarkReaderConstant_buffered 1000 16321791 ns/op 30.24 MB/s
BenchmarkReaderConstantNoCopy 1000 16937709 ns/op 29.14 MB/s
ok github.com/mreiferson/go-snappystream 245.194s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment