- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkIndexAnyUTF8 (0.1 sec)
-
src/bytes/bytes_test.go
for j := 1; j <= 64; j <<= 1 { b.Run(fmt.Sprintf("%d:%d", k, j), func(b *testing.B) { for i := 0; i < b.N; i++ { IndexAny(x[:k], cs[:j]) } }) } } } func BenchmarkIndexAnyUTF8(b *testing.B) { x := Repeat([]byte{'#'}, 2048) // Never matches set cs := "你好世界, hello world. 你好世界, hello world. 你好世界, hello world." for k := 1; k <= 2048; k <<= 4 { for j := 1; j <= 64; j <<= 1 {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0)