- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkMarshalBytesError (0.22 sec)
-
src/encoding/json/bench_test.go
// allocate and avoid the slower base64.NewEncoder. b.Run("256", benchMarshalBytes(256)) // 4096 is large enough that we want to avoid allocating for it. b.Run("4096", benchMarshalBytes(4096)) } func BenchmarkMarshalBytesError(b *testing.B) { b.ReportAllocs() // 32 fits within encodeState.scratch. b.Run("32", benchMarshalBytesError(32)) // 256 doesn't fit in encodeState.scratch, but is small enough to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:00:17 UTC 2024 - 12.5K bytes - Viewed (0)