// Bellow, alternative map encoders considered. Discarded but kept for reference & bench.
Bellow, alternative map encoders considered. Discarded but kept for reference & bench.
// Bellow alternative map encoders considered . Discarded but kept for reference & bench .
func BenchmarkDiscarded(b *testing.B) {
	b.Run("map_str_slice_prealloc", func(b *testing.B) {
		m := mapStrSlice{
			"foo": "bar",
			"hello": mapStrSlice{
				"world": mapStrSlice{
					"ok": "bye",
				},
			},
		}
		run(b, m)
	})
	b.Run("map_str_slice_noprealloc", func(b *testing.B) {
		m := mapStrSliceNoPrealloc{
			"foo": "bar",
			"hello": mapStrSliceNoPrealloc{
				"world": mapStrSliceNoPrealloc{
					"ok": "bye",
				},
			},
		}
		run(b, m)
	})
}
func BenchmarkDiscarded ( b * testing . B ) { b . Run ( " " , func ( b * testing . B ) { m := mapStrSlice { " " : " " , " " : mapStrSlice { " " : mapStrSlice { " " : " " , } , } , } run ( b , m ) } ) b . Run ( " " , func ( b * testing . B ) { m := mapStrSliceNoPrealloc { " " : " " , " " : mapStrSliceNoPrealloc { " " : mapStrSliceNoPrealloc { " " : " " , } , } , } run ( b , m ) } ) }
Bellow, alternative map encoders considered.
Bellow alternative map encoders considered .