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