// BenchmarkNoop should demonstrate that visitations are allocation-free.
BenchmarkNoop should demonstrate that visitations are allocation-free.
// BenchmarkNoop should demonstrate that visitations are allocation - free .
func BenchmarkNoop(b *testing.B) {
	tcs := []struct {
		valuePtrs bool
		topLevel  bool
	}{
		{false, false},
		{false, true},
		{true, false},
		{true, true},
	}
	for _, tc := range tcs {
		b.Run(fmt.Sprintf("%+v", tc), func(b *testing.B) {
			x, _ := demo.NewContainer(tc.valuePtrs)
			bench(b, x, tc.topLevel)
		})
	}
}
func BenchmarkNoop ( b * testing . B ) { tcs := [ ] struct { valuePtrs bool topLevel bool } { { false , false } , { false , true } , { true , false } , { true , true } , } for _ , tc := range tcs { b . Run ( fmt . Sprintf ( " " , tc ) , func ( b * testing . B ) { x , _ := demo . NewContainer ( tc . valuePtrs ) bench ( b , x , tc . topLevel ) } ) } }
BenchmarkNoop should demonstrate that visitations are allocation-free.
BenchmarkNoop should demonstrate that visitations are allocation - free .