go_checksum_benchmarks

package module
v0.0.0-...-1af54ac Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: MIT Imports: 6 Imported by: 0

README

Checksums benchmarks

This project was used for research, I want to know which checksum to use (best for all):

  • small text
  • small binary
  • encrypted data

What are we looking for:

  • very fast
  • low collision rate for small messages

We do not care about the cryptographic hashes, I only need an unique hash for each input.

Algorithms:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hex

func Hex(h Hash128) string

func NewCRC_64ECMA

func NewCRC_64ECMA() hash.Hash64

func NewCRC_64ISO

func NewCRC_64ISO() hash.Hash64

func NewFNV1_64

func NewFNV1_64() hash.Hash64

func NewFNV1_64a

func NewFNV1_64a() hash.Hash64

func NewJenkins_64

func NewJenkins_64() hash.Hash64

func NewMurmur3_64

func NewMurmur3_64() hash.Hash64

Types

type Hash128

type Hash128 interface {
	hash.Hash
	Sum128Bytes() []byte
}

Hash128 is the common interface implemented by all 128-bit hash functions.

func NewFNV1_128

func NewFNV1_128() Hash128

func NewFNV1_128a

func NewFNV1_128a() Hash128

func NewJenkins_128

func NewJenkins_128() Hash128

func NewMurmur3_128

func NewMurmur3_128() Hash128

Jump to

Keyboard shortcuts

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