- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for BenchmarkToValidUTF8 (0.1 seconds)
-
src/bytes/bytes_test.go
} for _, test := range tests { b.Run(test.name, func(b *testing.B) { for i := 0; i < b.N; i++ { TrimSpace(test.input) } }) } } func BenchmarkToValidUTF8(b *testing.B) { tests := []struct { name string input []byte }{ {"Valid", []byte("typical")}, {"InvalidASCII", []byte("foo\xffbar")}, {"InvalidNonASCII", []byte("日本語\xff日本語")},Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Dec 23 23:54:14 GMT 2025 - 62.9K bytes - Click Count (0)