- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for BenchmarkCompareBytesIdentical (0.21 seconds)
-
src/bytes/compare_test.go
} func BenchmarkCompareBytesEmpty(b *testing.B) { b1 := []byte("") b2 := b1 for i := 0; i < b.N; i++ { if Compare(b1, b2) != 0 { b.Fatal("b1 != b2") } } } func BenchmarkCompareBytesIdentical(b *testing.B) { b1 := []byte("Hello Gophers!") b2 := b1 for i := 0; i < b.N; i++ { if Compare(b1, b2) != 0 { b.Fatal("b1 != b2") } } }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jul 13 23:11:42 GMT 2023 - 6.8K bytes - Click Count (0)