fasthashtest

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkHashString32

func BenchmarkHashString32(b *testing.B, name string, reference func(string) uint32, algorithm func(string) uint32)

BenchmarkHashString32 is the implementation of a benchmark suite to compare the CPU and memory efficiency of a hashing algorithm against a reference implementation.

func BenchmarkHashString64

func BenchmarkHashString64(b *testing.B, name string, reference func(string) uint64, algorithm func(string) uint64)

BenchmarkHashString64 is the implementation of a benchmark suite to compare the CPU and memory efficiency of a hashing algorithm against a reference implementation.

func TestHashBytes32 added in v1.0.2

func TestHashBytes32(t *testing.T, name string, reference func([]byte) uint32, algorithm func([]byte) uint32)

TestHashBytes32 is the implementation of a test suite to verify the behavior of a hashing algorithm.

func TestHashBytes64 added in v1.0.2

func TestHashBytes64(t *testing.T, name string, reference func([]byte) uint64, algorithm func([]byte) uint64)

TestHashBytes64 is the implementation of a test suite to verify the behavior of a hashing algorithm.

func TestHashString32

func TestHashString32(t *testing.T, name string, reference func(string) uint32, algorithm func(string) uint32)

TestHashString32 is the implementation of a test suite to verify the behavior of a hashing algorithm.

func TestHashString64

func TestHashString64(t *testing.T, name string, reference func(string) uint64, algorithm func(string) uint64)

TestHashString64 is the implementation of a test suite to verify the behavior of a hashing algorithm.

func TestHashUint32

func TestHashUint32(t *testing.T, name string, reference func(uint32) uint32, algorithm func(uint32) uint32)

TestHashUint32 is the implementation of a test suite to verify the behavior of a hashing algorithm.

func TestHashUint64

func TestHashUint64(t *testing.T, name string, reference func(uint64) uint64, algorithm func(uint64) uint64)

TestHashUint64 is the implementation of a test suite to verify the behavior of a hashing algorithm.

Types

This section is empty.

Jump to

Keyboard shortcuts

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