示例#1
0
func BenchmarkXxhash64VeryShort(b *testing.B) {
	k := []byte("Test-key-100")
	for i := 0; i < b.N; i++ {
		N.Checksum64(k)
	}
}
示例#2
0
func TestHash64Short(t *testing.T) {
	r := N.Checksum64(in)
	if r != expected64 {
		t.Errorf("expected 0x%x, got 0x%x.", expected64, r)
	}
}
示例#3
0
func BenchmarkXxhash64(b *testing.B) {
	for i := 0; i < b.N; i++ {
		N.Checksum64(in)
	}
}