Lines Matching refs:b
736 func BenchmarkUnpackProperties(b *testing.B) {
737 run := func(b *testing.B, props []interface{}, input string) {
738 b.ReportAllocs()
739 b.StopTimer()
743 b.Errorf("test case: %s", input)
744 b.Errorf("unexpected parse errors:")
746 b.Errorf(" %s", err)
748 b.FailNow()
751 for i := 0; i < b.N; i++ {
763 b.StartTimer()
765 b.StopTimer()
767 b.Errorf("unexpected unpack errors:")
769 b.Errorf(" %s", err)
776 b.Run("basic", func(b *testing.B) {
791 run(b, props, bp)
794 b.Run("interface", func(b *testing.B) {
811 run(b, props, bp)
814 b.Run("many", func(b *testing.B) {
832 b: "b",
843 run(b, props, bp)
846 b.Run("deep", func(b *testing.B) {
881 run(b, props, bp)
884 b.Run("mix", func(b *testing.B) {
915 run(b, props, bp)