- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkMarshalMap (0.24 sec)
-
src/encoding/json/bench_test.go
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() m := map[string]int{ "key3": 3, "key2": 2, "key1": 1, } b.RunParallel(func(pb *testing.PB) { for pb.Next() { if _, err := Marshal(m); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:00:17 UTC 2024 - 12.5K bytes - Viewed (0)