- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for makeBenchInputHard (0.13 sec)
-
src/strings/strings_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0) -
src/bytes/bytes_test.go
b.ResetTimer() for _, test := range tests { b.Run(test.name, func(b *testing.B) { for i := 0; i < b.N; i++ { ToValidUTF8(test.input, replacement) } }) } } func makeBenchInputHard() []byte { tokens := [...]string{ "<a>", "<p>", "<b>", "<strong>", "</a>", "</p>", "</b>", "</strong>", "hello", "world", } x := make([]byte, 0, 1<<20) for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 56.5K bytes - Viewed (0)