- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkMarshalBytes (0.25 sec)
-
src/encoding/json/bench_test.go
b.Fatalf("Marshal error: %v", err) } if _, err := Marshal(dummy); err == nil { b.Fatal("Marshal error: got nil, want non-nil") } } } } func BenchmarkMarshalBytes(b *testing.B) { b.ReportAllocs() // 32 fits within encodeState.scratch. b.Run("32", benchMarshalBytes(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)