Documentation
¶
Index ¶
- func BenchmarkHashString32(b *testing.B, name string, reference func(string) uint32, ...)
- func BenchmarkHashString64(b *testing.B, name string, reference func(string) uint64, ...)
- func TestHashBytes32(t *testing.T, name string, reference func([]byte) uint32, ...)
- func TestHashBytes64(t *testing.T, name string, reference func([]byte) uint64, ...)
- func TestHashString32(t *testing.T, name string, reference func(string) uint32, ...)
- func TestHashString64(t *testing.T, name string, reference func(string) uint64, ...)
- func TestHashUint32(t *testing.T, name string, reference func(uint32) uint32, ...)
- func TestHashUint64(t *testing.T, name string, reference func(uint64) uint64, ...)
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.
Types ¶
This section is empty.