- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkCompareBytesDifferentLength (0.36 sec)
-
src/bytes/compare_test.go
b1 := []byte("Hello Gophers!") b2 := []byte("Hello, Gophers") for i := 0; i < b.N; i++ { if Compare(b1, b2) != -1 { b.Fatal("b1 < b2 failed") } } } func BenchmarkCompareBytesDifferentLength(b *testing.B) { b1 := []byte("Hello Gophers!") b2 := []byte("Hello, Gophers!") for i := 0; i < b.N; i++ { if Compare(b1, b2) != -1 { b.Fatal("b1 < b2 failed") } } }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Jul 13 23:11:42 UTC 2023 - 6.8K bytes - Viewed (0)