예제 #1
0
func BenchmarkXXChecksumString64CgoShort(b *testing.B) {
	var bv uint64
	k := "Test-key-100"
	for i := 0; i < b.N; i++ {
		bv += CGO.ChecksumString64(k)
	}
}
예제 #2
0
func BenchmarkXXChecksumString64Cgo(b *testing.B) {
	var bv uint64
	for i := 0; i < b.N; i++ {
		bv += CGO.ChecksumString64(inS)
	}
}