bench

package
v0.0.0-...-3b59326 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlockSize = 1024 * 1024

Functions

func BenchmarkCompress

func BenchmarkCompress(b *testing.B)

func BenchmarkDecompress

func BenchmarkDecompress(b *testing.B)

func Compress

func Compress(b *testing.B, src []byte)

func Decompress

func Decompress(b *testing.B, src []byte)

func GzipLevel

func GzipLevel(level compression.Level) int

func Rand

func Rand(p []byte)

func SetLevel

func SetLevel(level compression.Level)

SetLevel update the compression level.

NOTE: this function must only be called during initialization time (i.e. in an init() function), and is not thread-safe.

func Zero

func Zero(p []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL